Skip to content

Commit 2627695

Browse files
committed
Accommodate for yet another change on GitHub's backend
As of very recent, the webhooks triggered by completed Check Runs no longer report the `gitforwindowshelper[bot]` as the sender, if that bot completed the Check Run, but `ghost`. That is incorrect, of course, but there is nothing we can do about it except what we always do when GitHub changes the way their platform behaves: We adapt. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent a4e3ff8 commit 2627695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GitForWindowsHelper/cascading-runs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ const cascadingRuns = async (context, req) => {
115115
const checkRunRepo = req.body.repository.name
116116
const checkRun = req.body.check_run
117117
const name = checkRun.name
118-
const sender = req.body.sender.login
118+
const sender = req.body.sender.login === 'ghost' && checkRun?.app?.slug === 'gitforwindowshelper'
119+
? 'gitforwindowshelper[bot]' : req.body.sender.login
119120

120121
if (action === 'completed') {
121122
if (name === 'tag-git') {

0 commit comments

Comments
 (0)