Skip to content

ci: remove the assignees when an issue closes - #41

Merged
NoNamer777 merged 1 commit into
mainfrom
ci/remove-assignees-on-close
Oct 9, 2026
Merged

NoNamer777 merged 1 commit into
mainfrom
ci/remove-assignees-on-close

Conversation

@NoNamer777

Copy link
Copy Markdown
Member

Why

Every issue in the dnd-mapp org gets assigned to the account that works on it, and the assignee should come off once the issue closes. Today that is a manual step during the cleanup after a merge, and it is easy to forget. A closed issue that keeps its assignee clutters every search by assignee. dnd-mapp/api-content piloted a workflow that removes the assignees automatically, and this repository is one of the 14 that now adopt it.

What

A new issue-closed.yaml workflow runs when an issue closes and removes all its assignees with one gh issue edit --remove-assignee call. It is a byte-for-byte copy of the file that dnd-mapp/api-content#44 merged, so every repository behaves the same and a later change can be copied the same way. It removes the assignees whatever the close reason, and it skips issues without assignees, such as the Dependency Dashboard of Renovate, so they start no runner. It needs only issues: write from GITHUB_TOKEN, unlike issue-opened.yaml, which needs a GitHub App token to write to the org project. It changes nothing that this repository publishes, so it needs no changelog entry.

Test plan

Notes

The workflow only runs once it is on main, so the last step of the test plan can only be followed after the merge. The pilot already proved the workflow in production on dnd-mapp/api-content#41.

Closes #39

Assignees stay on an issue after it closes unless someone removes them
by hand, and closed issues that keep their assignee clutter every
search by assignee. A workflow on the closed event of issues now
removes them, whatever the close reason. It skips issues without
assignees, so no runner starts for them.

The workflow is an unchanged copy of the one that dnd-mapp/api-content
piloted, so every dnd-mapp repository handles closed issues the same
way.

Closes #39
@NoNamer777
NoNamer777 requested a review from a team as a code owner October 9, 2026 10:51
@NoNamer777
NoNamer777 enabled auto-merge October 9, 2026 10:51
@NoNamer777
NoNamer777 merged commit 28756c1 into main Oct 9, 2026
4 checks passed
@NoNamer777
NoNamer777 deleted the ci/remove-assignees-on-close branch October 9, 2026 10:54
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.

Remove the assignees when an issue closes

2 participants