Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
dacbd committed Nov 12, 2022
1 parent 517899c commit c6e618f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/bot-minimizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Hide Bot Comment
on:
issue_comment:
types: [created]

jobs:
pr_commented:
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- name: Minimize bot Comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api graphql -F reason='RESOLVED' -F node_id='${{ github.event.comment.node_id }}' -f query='
mutation {
minimizeComment(input: {classifier: $reason, subjectId: $node_id}) {
minimizedComment {
isMinimized
}
}
}
'

2 comments on commit c6e618f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

Please sign in to comment.