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

open/close github issues on behalf of developper #96

Open
romainfrancois opened this issue Dec 3, 2013 · 2 comments
Open

open/close github issues on behalf of developper #96

romainfrancois opened this issue Dec 3, 2013 · 2 comments

Comments

@romainfrancois
Copy link
Contributor

Scenario:

I'm pushing some code to github that I think will fix a bug I'm tracking with github issues. I'd like the ability to embed the information that this push will maybe fix the bug. Something like:

git commit -m " #maybe_fixes #124"

We can imagine that e.g. using testthat, we can have the issue in the title of the test, e.g.

test_that( "this works #213", {
   ...
} )

Then, if the test passes and the issue is open, we close it.
And, if the test fails, but the issue is closed. we reopen it.

I'm pretty sure we can use github api for that (ping @cscheid). I guess this would need a user token.

@cscheid
Copy link

cscheid commented Dec 3, 2013

This would be fantastic! I'd love to help make it work.

I don't know how credential management works with travis, but I've found it nontrivial to test rgithub itself in the past because I don't know how to distribute a test suite that uses the nonpublic parts of the github API, but not distribute the user tokens or client id/client secrets.

@romainfrancois
Copy link
Contributor Author

This http://about.travis-ci.org/docs/user/encryption-keys/ is quite useful.

If you have some private stuff (e.g. a github token), then you go in the repo you're dealing with and you use travis encrypt VARIABLE=VALUE

It generates something you can put in your .travis.yml so that the rest of the world does not see your actual key, but travis can use it on your behalf. I've used it with Dropbox.

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

No branches or pull requests

2 participants