Skip to content

georgettica/gogitmail

Repository files navigation

Gogitmail

gogitmail

Why

this tool is written in golang for learning purposes.

this tool was supposed to answer a couple of criteria:

  • Work with an API and ingest some data from it

  • Marshal/UnMarshal Json objects

  • use gomock as mocking package (see here)

  • use ginkgo as the testing framework (see here)

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

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

Use it in local development

then when you should use it via the command source env.source

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published