Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix api breaking of google/go-github #268

Merged
merged 1 commit into from
Feb 21, 2017
Merged

fix api breaking of google/go-github #268

merged 1 commit into from
Feb 21, 2017

Conversation

nightvisi0n
Copy link
Contributor

@nightvisi0n nightvisi0n commented Feb 21, 2017

google/go-github broke the api of their functions with google/go-github@23d6cb9
This PR adds the context context.TODO() to the call of gh.Repositories.ListReleases which is meant to be used "when it's unclear which Context to use or it is not yet available (because the surrounding function has not yet been extended to accept a Context parameter)" (citing https://godoc.org/context)
I chose this way because AFAIK we don't have much use of the context package.

fixes #267

google/go-github broke the api of their functions with google/go-github@23d6cb9
This commit adds the context `context.TODO()` to the call of `gh.Repositories.ListReleases` which is meant to be used "when it's unclear which Context to use or it is not yet available (because the surrounding function has not yet been extended to accept a Context parameter)" (citing https://godoc.org/context)

Signed-off-by: julian <dev@jneureuther.de>
@nightvisi0n
Copy link
Contributor Author

@matejkramny I would propose to do at least a hotfix release (2.1.1) after this is merged in order to have a release that builds.
The hotfix release could just contain this commit (cherry-pick) if you don't yet want to release all the other commits since 8d2e741.

@matejkramny matejkramny merged commit d6f1225 into semaphoreui:master Feb 21, 2017
@matejkramny
Copy link
Contributor

Thanks Julian.

I'll produce a release in the next 48hrs

@nightvisi0n
Copy link
Contributor Author

I'll produce a release in the next 48hrs

Thank you! This will be really helpful for everyone that uses semaphore by builting the latest release from source. 🙂

@matejkramny
Copy link
Contributor

Sure, I might try to automate it as it's a little tedious.. There's also another PR which should be merged

@nightvisi0n nightvisi0n deleted the fix_go-github-api-break branch February 21, 2017 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants