Skip to content

Add visible warning when label addition fails during issue escalation#147

Merged
DimaBir merged 2 commits intodimabir/github_bot_respond_wikifrom
copilot/sub-pr-144-another-one
Feb 11, 2026
Merged

Add visible warning when label addition fails during issue escalation#147
DimaBir merged 2 commits intodimabir/github_bot_respond_wikifrom
copilot/sub-pr-144-another-one

Conversation

Copy link

Copilot AI commented Feb 11, 2026

Addresses feedback on #144 about silent label addition failures. When the bot escalates an issue but can't add the needs-maintainer label, users and maintainers had no visibility into the failure.

Changes:

  • Move label addition before comment posting to enable failure detection
  • Track label addition failures with labelAdditionFailed flag
  • Append visible warning to escalation comments when labels can't be added

Example output when label addition fails:

<details><summary>🏷️ Escalated to maintainers</summary>

A maintainer will review this issue. No further bot responses will be sent.

⚠️ **Note:** Unable to automatically add the `needs-maintainer` label. Please add it manually to ensure proper triage.

[Wiki](https://github.com/microsoft/security-devops-action/wiki) · [FAQ](https://github.com/microsoft/security-devops-action/wiki/FAQ)
</details>

Workflow continues gracefully on label API failures while ensuring visibility for manual triage.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: DimaBir <28827735+DimaBir@users.noreply.github.com>
Copilot AI changed the title [WIP] Update issue assistant workflow based on review comments Add visible warning when label addition fails during issue escalation Feb 11, 2026
Copilot AI requested a review from DimaBir February 11, 2026 07:13
@DimaBir DimaBir marked this pull request as ready for review February 11, 2026 07:17
@DimaBir DimaBir merged commit 4d86d86 into dimabir/github_bot_respond_wiki Feb 11, 2026
1 check passed
@DimaBir DimaBir deleted the copilot/sub-pr-144-another-one branch February 11, 2026 07:18
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.

2 participants