Skip to content

Commit 1e2d911

Browse files
committed
feat: add inactivity bot phase 2 (stale PR detection)
Signed-off-by: Akshat Kumar <akshat230405@gmail.com>
1 parent 9c921c7 commit 1e2d911

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/bot-inactivity-unassign-phase1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
env:
3535
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
REPO: ${{ github.repository }}
37-
DAYS: 0
37+
DAYS: 21
3838
run: bash .github/scripts/inactivity_unassign_phase2.sh

.github/workflows/bot-inactivity-unassign-phase2.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020

2121
- name: Harden the runner
2222
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2
23+
with:
24+
egress-policy: audit
2325

2426
- name: Unassign stale PR contributors (Phase 2)
2527
env:
2628
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2729
REPO: ${{ github.repository }}
28-
DAYS: 0
30+
DAYS: 21
2931
run: bash .github/scripts/inactivity_unassign_phase2.sh

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
77
## [Unreleased]
88

99
### Added
10+
- Phase 2 of the inactivity-unassign bot:Automatically detects stale open pull requests (no commit activity for 21+ days), comments with a helpful InactivityBot message, closes the stale PR, and unassigns the contributor from the linked issue.
1011
- Added a github template for good first issues
1112
- Added `.github/workflows/bot-assignment-check.yml` to limit non-maintainers to 2 concurrent issue assignments.
1213
- Add examples/tokens/token_create_transaction_pause_key.py example demonstrating token pause/unpause behavior and pause key usage (#833)

0 commit comments

Comments
 (0)