sociomantic-tsunami / neptune

Sociomantic library versioning definitions, guides, and tools
Boost Software License 1.0
1 stars 15 forks source link

Support generating a GitHub oauth token directly #119

Open joseph-wakeling-sociomantic opened 7 years ago

joseph-wakeling-sociomantic commented 7 years ago

Currently neptune offers to copy the git-hub oauth token, but doesn't offer support for creating a fresh token from scratch.

Since neptune users may not be git-hub users, it would be helpful if it supported generating a token itself without reference to any other tool, which automatically requests the required permissions/scopes. This could also be useful if e.g. there is a need for different permissions for neptune tokens versus git-hub tokens.

(Partial motivation: some time spent wondering why I was getting "bad credentials" errors despite copying the git-hub oauth token, only to find that on the GitHub side that token had been removed.)

nemanja-boric-sociomantic commented 7 years ago

It looks like the neptune-release will ask you to create a fresh config, if you don't choose the git-hub's existing token: https://github.com/sociomantic-tsunami/neptune/blob/fecd0d3db5ff61e20e2ee8a4d45b11a73b32544b/src/release/api.d#L109

joseph-wakeling-sociomantic commented 7 years ago

Ah. Well, maybe it should make that clear when it's asking the question about whether to use the git-hub token ;-)

It could also handle a bad-credentials result by asking if you want to generate a fresh neptune token.