Skip to content

Remove event-triggered Type label reminders to fix race condition on issue creation - #14993

Draft
nkolev92 with Copilot wants to merge 3 commits into
devfrom
copilot/fix-label-reminder-bot-issue
Draft

Remove event-triggered Type label reminders to fix race condition on issue creation#14993
nkolev92 with Copilot wants to merge 3 commits into
devfrom
copilot/fix-label-reminder-bot-issue

Conversation

Copilot AI commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

When an issue is created with a Type label via the GitHub web UI, the Opened webhook fires before the label events arrive. Tasks [20-30] and [20-40] evaluated label state against this incomplete payload, causing missing-required-type and a false-positive reminder comment to be added to correctly-labeled issues — with no automatic cleanup path.

Changes

  • Removed [20-30] — event responder that triggered on Opened to remind issue authors to add a Type label
  • Removed [20-40] — event responder that triggered on Reopened/Assigned/Closed to remind assignees to add a Type label
  • Retained [20-10] — daily scheduled search, which checks fully-settled label state and is immune to the race condition
  • Retained [20-20] — cleanup responder that removes missing-required-type when a Type label is later applied

Copilot AI changed the title [WIP] Fix label reminder bot adding missing-required-type incorrectly Remove event-triggered Type label reminders to fix race condition on issue creation Jul 13, 2026
Copilot AI requested a review from nkolev92 July 13, 2026 22:56
then:
- removeLabel:
label: missing-required-type
- description: '[20-30] Remind NuGet Client member (issue author) to add Type label'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@copilot You were supposed toc hange this to a scheduled search.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. [20-30] is now a daily scheduled search (scheduledSearches) with the same Type-label guards and the @${issueAuthor} mention. The isNotLabeledWith: missing-required-type guard ensures it only fires once per issue (same dedup mechanism as [20-10]).

[20-40] (assignee notification) was omitted — it triggered on Reopened/Assigned/Closed events where ${assignees} has meaningful context, but as a scheduled search there is no equivalent filter to target only assigned issues or to avoid pinging empty assignee lists daily.

Copilot AI requested a review from nkolev92 July 13, 2026 23:26
reply: Issue is missing Type label, remember to add a [Type label](https://github.com/NuGet/Client.Engineering/blob/main/designs/nuget-issues-approach.md#issue-type)
- addLabel:
label: missing-required-type
- description: '[20-30] Remind NuGet Client member (issue author) to add Type label'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is really just about issue author isn't it?

Not client team member.

Isn't this duplicating [20-10] ?

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.

Label reminder bot incorrectly adds missing-required-type to issues that have a Type label at creation time

2 participants