Uh oh!
There was an error while loading. Please reload this page.
Use GitHub Status API - #15
Conversation
| repo: options.repoName, | ||
| sha: options.lastSha, | ||
| target_url: `https://travis-ci.org/${options.owner}/${options.repoName}/builds/${travisId}`, | ||
| context: "Travis CI via nodejs-github-bot", |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
e34cfd3 to
4363a1cCompareFishrock123
commented
Apr 8, 2016
Fixes: #14 |
7be5ef6 to
dd117b5CompareFishrock123
commented
Apr 8, 2016
rebased |
williamkapke
commented
Apr 9, 2016
LGTM |
phillipj
commented
Apr 9, 2016
You mentioned on IRC that we should be polling SHA for all repos. Any reason you haven't deleted IIRC this means we would do status updates for readable-stream, but still do comments on nodejs.org and citgm. |
phillipj
commented
Apr 9, 2016
Have you tested updates on PRs and how that affects previously set statuses? Could we end up with misleading success status on a PR if the first build succeeded, but new commits/pushed rebase results in brokens builds? |
Fishrock123
commented
Apr 9, 2016
@phillipj I left that because I wasn't sure if it was still necessary. Afaik statuses tie to commits, so if the commits are updated GitHub automatically resets it. |
Fishrock123
commented
Apr 9, 2016
I'll give it a test when I get home later though. |
| return createGhStatus('failure', lastBuildForCommit.id, 'build failure') | ||
| } else if (~['created', 'started'].indexOf(lastState)) { | ||
| console.log(`* ${prInfo} "${lastState}" build found, will do check #${checkNumber + 1} in 30 seconds`) | ||
| if (checkNumber === 1) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dd117b5 to
10cf185CompareFishrock123
commented
Apr 10, 2016
Hmmm, looks like this no-longer works after being rebased on #8. Investigating. |
Fishrock123
commented
Apr 10, 2016
Got it working. My bad. Looks like this doesn't actually handle PR updates, working on it. (Example: TestOrgPleaseIgnore/test-github-bot#17) |
10cf185 to
8bb7182CompareFishrock123
commented
Apr 10, 2016
Updated, now works for PR updates: TestOrgPleaseIgnore/test-github-bot#17 |
8bb7182 to
1c11bb3CompareFishrock123
commented
Apr 10, 2016
going to open a new PR for some of the other bits |
Discussion in nodejs#15
Here's a test of a success status, and a failure status.
cc @williamkapke & @phillipj