Skip to content

Commit 67c366e

Browse files
committed
cascading-run: check the correct app attribute
Turns out that the `check_run` event does not have a top-level `app` attribute... Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7dc3f8b commit 67c366e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitForWindowsHelper/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = async function (context, req) {
6666
try {
6767
const { cascadingRuns, handlePush } = require('./cascading-runs.js')
6868
if (req.headers['x-github-event'] === 'check_run'
69-
&& req.body.app?.slug === 'gitforwindowshelper'
69+
&& req.body.check_run?.app?.slug === 'gitforwindowshelper'
7070
&& req.body.repository.full_name === 'git-for-windows/git'
7171
&& req.body.action === 'completed') return ok(await cascadingRuns(context, req))
7272

0 commit comments

Comments
 (0)