Skip to content

Conversation

@Lacah
Copy link
Contributor

@Lacah Lacah commented Oct 6, 2025

Details

  • Adds .github/workflows/pr-auto-unassign-stale.yml.
  • Runs every 15 minutes (or manually via Run workflow).
  • Unassigns users who:
    • Have been assigned for longer than MAX_ASSIGN_AGE_MINUTES (default: 60).
    • Haven’t commented, reviewed, or left file feedback.
    • The PR remains open.
  • Posts a short comment when unassigning.
  • Includes config switches:
    • ENABLED → turn the automation on/off.
    • DRY_RUN → preview without changing assignees.

Purpose

Prevents stalled reviews by automatically freeing inactive assignees.

Resolves #1885.

Copy link
Contributor

@wiz0floyd wiz0floyd left a comment

Choose a reason for hiding this comment

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

Looks good to me

@wiz0floyd wiz0floyd self-assigned this Oct 6, 2025
Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

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

Looks good to me - have you done much testing?

@Lacah
Copy link
Contributor Author

Lacah commented Oct 7, 2025

Looks good to me - have you done much testing?

Can't say I did, was too lazy to open PRs against my own main hehe. But that's why I have built in the dry run and on/off switches. Testing in prod #yolo

@SapphicFire
Copy link
Contributor

image

@wiz0floyd wiz0floyd merged commit 5bdc638 into ServiceNowDevProgram:main Oct 7, 2025
2 checks passed
@Lacah Lacah deleted the P1-SLA branch October 9, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unassign inactive reviewers on pull requests

3 participants