Title: feat: update bot comment when Jenkins finishes by mmarchini · Pull Request #259 · nodejs/github-bot · GitHub
Open Graph Title: feat: update bot comment when Jenkins finishes by mmarchini · Pull Request #259 · nodejs/github-bot
X Title: feat: update bot comment when Jenkins finishes by mmarchini · Pull Request #259 · nodejs/github-bot
Description: Note: this is a rough draft of a implementation of the "Edit Comment" feature described in #251. I haven't set up my machine to test the bot yet, so this code is completely untested at this point, but it reflects what I'm thinking.
I'm looking for comments on the flow instead of the code (since the code wasn't tested yet). The flow is as follow:
When a Jenkins job starts, the bot will leave a comment on the respective PR
The comment will have two placeholders created using html comments
One placeholder next to the CI url, for the build status
One placeholder below the CI url, for a summary of failures when the build fails
The placeholders will hold the build ID so that the bot can identify the respective comment later
When a Jenkins job finishes, the bot will:
Fetch all comments for the respective PR
Find the respective comment (if it can't find, skip the next steps)
Replace the first placeholder with the build status
If the build failed:
Run ncu-ci to get a summary of changes, in markdown format
Wrap the output with
Open Graph Description: Note: this is a rough draft of a implementation of the "Edit Comment" feature described in #251. I haven't set up my machine to test the bot yet, so this code is completely untested a...
X Description: Note: this is a rough draft of a implementation of the "Edit Comment" feature described in #251. I haven't set up my machine to test the bot yet, so this code is completel...
Opengraph URL: https://github.com/nodejs/github-bot/pull/259
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a854c009-4886-07b9-2cc4-f24765a94f4c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DC9E:5105D:1EC17A7:2A59161:6A4ECBE6 |
| html-safe-nonce | dd3585c9ed64b88409e8a32a930eff33a1d8689190669d4c7b64750838c85212 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzlFOjUxMDVEOjFFQzE3QTc6MkE1OTE2MTo2QTRFQ0JFNiIsInZpc2l0b3JfaWQiOiIyMjg0ODE3OTA5MTMyNzQxNjA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 52bcbaaa4f6259e3c1cd7194c121a2e641e29d059b14cb972623154242a7b721 |
| hovercard-subject-tag | pull_request:404840657 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/github-bot/pull/259/files |
| twitter:image | https://avatars.githubusercontent.com/u/4048656?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4048656?s=400&v=4 |
| og:image:alt | Note: this is a rough draft of a implementation of the "Edit Comment" feature described in #251. I haven't set up my machine to test the bot yet, so this code is completely untested a... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/github-bot git https://github.com/nodejs/github-bot.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 55435270 |
| octolytics-dimension-repository_nwo | nodejs/github-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 55435270 |
| octolytics-dimension-repository_network_root_nwo | nodejs/github-bot |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width