Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/dotbot-act.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
pull_request_review_comment:
types: [created]

concurrency:
group: dotbot-act-${{ github.event.issue.number || github.event.pull_request.number || github.ref }}
cancel-in-progress: false

jobs:
act:
name: Act on /dotbot comments
Expand All @@ -25,6 +21,15 @@ jobs:
)
) &&
github.actor != 'dependabot[bot]'
# Job-level, not workflow-level: every comment on the repo starts this
# workflow, and a workflow-level group is joined even when the job below is
# skipped. A skipped run would then cancel a waiting /dotbot run. A job
# skipped by `if:` never joins the group. queue: max keeps back-to-back
# /dotbot requests queued instead of dropping all but the newest.
concurrency:
group: dotbot-act-${{ github.event.issue.number || github.event.pull_request.number || github.ref }}
cancel-in-progress: false
queue: max
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
github_approval_token: ${{ secrets.DOTBOT_GITHUB_USER_PAT }}
```


### Automatic PR Approval

If the `DOTBOT_GITHUB_USER_PAT` secret is set (passed via the
Expand Down Expand Up @@ -70,9 +71,6 @@ permissions:
workflows: write # needed if /dotbot may edit .github/workflows/*
pull-requests: write
issues: write
concurrency:
group: dotbot-act-${{ github.event.issue.number || github.event.pull_request.number || github.ref }}
cancel-in-progress: false
jobs:
act:
name: Act on /dotbot comments
Expand All @@ -88,6 +86,14 @@ jobs:
)
) &&
github.actor != 'dependabot[bot]'
# Job-level, not workflow-level: every comment starts this workflow, and a
# workflow-level group is joined even when the job is skipped, so an
# ordinary comment would cancel a waiting /dotbot run. queue: max keeps
# back-to-back /dotbot requests queued.
concurrency:
group: dotbot-act-${{ github.event.issue.number || github.event.pull_request.number || github.ref }}
cancel-in-progress: false
queue: max
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Loading