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
7 changes: 7 additions & 0 deletions .github/workflows/dev-lead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ on:

permissions: {}

# One run per PR/issue at a time; cancel superseded runs to stay within
# Claude API quota and prevent the .gitignore dirty-checkout failure that
# occurs when the reusable workflow tries to branch-switch mid-run.
Comment on lines +40 to +42
concurrency:
group: dev-lead-${{ github.event.pull_request.number || github.event.issue.number || github.sha }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid cross-event cancellation in concurrency group

Using ${{ github.sha }} as the fallback makes unrelated check_run/repository_dispatch runs share the same concurrency key and cancel each other. In this workflow, those events are enabled, and GitHub documents their GITHUB_SHA as the last commit on the default branch, so two independent failures dispatched close together can preempt one another and silently skip handling for one PR/issue. Use an event-specific unique fallback (for example github.run_id, github.event.check_run.id, or a payload identifier) instead of github.sha.

Useful? React with 👍 / 👎.

cancel-in-progress: true

jobs:
dev-lead:
uses: petry-projects/.github-private/.github/workflows/dev-lead-reusable.yml@2f97e6911c81cea268eff6cc62e11f414bb0c983 # main
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -430,5 +430,3 @@ Thumbs.db
# End of TalkTerm additions
# ============================================================================
.dev-lead/
.dev-lead/
.dev-lead/