mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Delete CarbonInfraBot comments with no replies when they become outdated. (#3982)
This commit is contained in:
@@ -60,3 +60,19 @@ jobs:
|
||||
cat ./diff | \
|
||||
GITHUB_EVENT_PATH=./event \
|
||||
reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review
|
||||
|
||||
delete-stale-suggestions:
|
||||
if: github.event.workflow_run.event == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Delete stale suggestions
|
||||
uses: Ardiannn08/resolve-outdated-comment@3b3cf4b2651a84fac2d6a94c2aeca9ac7c05ac5f # v1.3
|
||||
with:
|
||||
token: ${{ secrets.CARBON_INFRA_BOT_FOR_REVIEWDOG }}
|
||||
filter-user: 'CarbonInfraBot'
|
||||
mode: 'delete'
|
||||
|
||||
Reference in New Issue
Block a user