Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto unassigner #8744

Merged
merged 10 commits into from
Jan 24, 2024
Merged

Auto unassigner #8744

merged 10 commits into from
Jan 24, 2024

Conversation

jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Jan 22, 2024

Closes #8704

Creates GitHub action workflow that automatically removes assignees from issues if they have been assigned for too long without opening a linked pull request. A comment is left on the issue thread whenever an assignee is removed.

This workflow is scheduled to run 30 minutes before the new comment update, so we should have visibility on issues that have been automatically updated.

Important

This action only reads and modifies issues in the repository that triggered the action.

Technical

General flow of script:

  1. Parse command-line arguments.
  2. Fetch all open issues that have assignees.
  3. Filter out unaffected issues, and flag excluded assignees.
  4. Remove non-excluded assignees from the remaining filtered issues.

Script makes use of the octokit/action.js API client, which automatically handles authentication in GitHub workflows.

Testing

Screenshot

Stakeholders

@jimchamp jimchamp marked this pull request as draft January 22, 2024 18:34
@jimchamp jimchamp force-pushed the auto-unassigner branch 2 times, most recently from d17324e to 84168a5 Compare January 23, 2024 16:40
@jimchamp jimchamp force-pushed the auto-unassigner branch 6 times, most recently from 71bd656 to 77cebdb Compare January 23, 2024 21:50
@jimchamp jimchamp marked this pull request as ready for review January 23, 2024 23:41
@mekarpeles mekarpeles merged commit 6617494 into internetarchive:master Jan 24, 2024
3 checks passed
@jimchamp jimchamp deleted the auto-unassigner branch April 24, 2024 00:09
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.

Create Github Project Management Bot
2 participants