CI: mark /build and /nightly command comment resolved when done (#31734)

This commit is contained in:
andig 2026-07-12 18:40:47 +02:00 • committed by GitHub
parent 4ec3a30941
commit 64bdbced0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -181,3 +181,13 @@ jobs:
const body = [`Test binaries for the fix in #${num} are ready to test:`, '', ...artifacts].join('\n');
await github.rest.issues.createComment({ owner, repo, issue_number, body });
}
- name: Resolve command comment
uses: actions/github-script@v8
with:
script: |
// collapse the /build comment as resolved now that the build is done
await github.graphql(
`mutation($id:ID!){minimizeComment(input:{subjectId:$id,classifier:RESOLVED}){minimizedComment{isMinimized}}}`,
{ id: context.payload.comment.node_id }
);