Categorygithub.com/georgettica/gogitmail
modulepackage
0.1.0
Repository: https://github.com/georgettica/gogitmail.git
Documentation: pkg.go.dev

# README

= Gogitmail

image:https://goreportcard.com/badge/github.com/georgettica/gogitmail[link="https://goreportcard.com/report/github.com/georgettica/gogitmail"]

== Why this tool is written in golang for learning purposes.

this tool was supposed to answer a couple of criteria:

== Purpose this repo holds a tool to configure your email depending of your git provider

the resoning is that each provider (github/gitlab) can have a hidden email that doesn't expose your email outside.

this means that each repo has to have a local setting of user.email

== Setup To setup your system is to get tokens for github and gitlab, also we need to set the gitlab hostname to do that copy the file

include::env.source.sample[]

=== Make your own env you should copy it via the command cp env.source.sample env.source and set your environment with the correct values

==== Get token from gitlab refer to https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html and choose the read_user permission

==== Get token from github refer to https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token and choose the read_user permission

=== Use it in local development then when you should use it via the command source env.source

== resources on private emails

=== gitlab the private email is written in this link https://docs.gitlab.com/ee/user/profile/notifications.html and also https://docs.gitlab.com/ee/user/admin_area/settings/email.html#custom-hostname-for-private-commit-emails

=== github https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address

# Packages

No description provided by the author

# Functions

NewGogitmailConfig allows easy creation of the resource.

# Structs

GogitmailConfig holds all of the data required to run operations it holds these members also to allow for easier mocking.