mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
workflows/dismissed-review: drop
This doesn't work, because it doesn't have the required permissions to make any modifications.
This commit is contained in:
parent
3ac76b8cc7
commit
7bcf9ade60
1 changed files with 0 additions and 30 deletions
30
.github/workflows/dismissed-review.yml
vendored
30
.github/workflows/dismissed-review.yml
vendored
|
@ -1,30 +0,0 @@
|
||||||
name: Dismissed Review
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_review:
|
|
||||||
types: [dismissed]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# The check-cherry-picks workflow creates review comments,
|
|
||||||
# that should sometimes be manually dismissed.
|
|
||||||
# When a CI-generated review is dismissed, this job automatically
|
|
||||||
# minimizes it, to prevent it from cluttering the PR.
|
|
||||||
minimize:
|
|
||||||
name: Minimize as resolved
|
|
||||||
if: github.event.review.user.login == 'github-actions[bot]'
|
|
||||||
runs-on: ubuntu-24.04-arm
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
await github.graphql(`mutation($node_id:ID!) {
|
|
||||||
minimizeComment(input: {
|
|
||||||
classifier: RESOLVED,
|
|
||||||
subjectId: $node_id
|
|
||||||
})
|
|
||||||
{ clientMutationId }
|
|
||||||
}`, { node_id: context.payload.review.node_id })
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue