CI: mark /build and /nightly command comment resolved when done (#31734)
This commit is contained in:
parent
4ec3a30941
commit
64bdbced0e
2 changed files with 20 additions and 0 deletions
10
.github/workflows/command-pr-build.yml
vendored
10
.github/workflows/command-pr-build.yml
vendored
|
|
@ -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 }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue