From c6e618f6c82bcca4caec10406636a126a4917728 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 12 Nov 2022 14:44:41 -0800 Subject: [PATCH] init --- .github/workflows/bot-minimizer.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/bot-minimizer.yml diff --git a/.github/workflows/bot-minimizer.yml b/.github/workflows/bot-minimizer.yml new file mode 100644 index 000000000..f4cb9acb8 --- /dev/null +++ b/.github/workflows/bot-minimizer.yml @@ -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 + } + } + } + '