github-tools / github-release-notes

Node module to create a release or a changelog from a tag and uses issues or commits to creating the release notes.
https://github-tools.github.io/github-release-notes/
GNU General Public License v3.0
883 stars 324 forks source link

configure multiple tokens? #225

Closed mattnworb closed 4 years ago

mattnworb commented 4 years ago

Hi, is it possible to configure multiple tokens, i.e. one for github.com and another for GHE?

From what I can tell, it looks like the token can only be configured in an environment variable named GREN_GITHUB_TOKEN (or --token). For people working on repos that are a mixture of github.com repos and private GHE repos, it'd be great if there was a way to have two tokens configured.

alexcanessa commented 4 years ago

@mattnworb interesting. What kind of API did you have in mind?

mattnworb commented 4 years ago

@alexcanessa good question. On second thought, I'm not really sure that there would be any easy way for gren to know which token or which environment variable I want to use 😀

alexcanessa commented 4 years ago

@mattnworb yeh it's a bit difficult, I'll close it for now, until we have an idea for a nice API