Skip to content

Conversation

@kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Jan 28, 2026

Adds automatic PR label management to the verify-tests-fail-without-fix skill. After test verification completes, the skill now updates labels on the PR to indicate verification status.

New Labels:

  • s/ai-reproduction-confirmed - Tests correctly FAIL without fix
  • s/ai-reproduction-failed - Tests PASS without fix

Files Changed:

  • SKILL.md - Added PR Labels documentation section
  • verify-tests-fail.ps1 - Added Update-VerificationLabels function

Enhances the verification process by automatically adding or removing PR labels (`s/ai-reproduction-confirmed` and `s/ai-reproduction-failed`) based on test outcomes. Updates documentation to describe label behavior and integrates label updates into both quick and full verification modes.
Copilot AI review requested due to automatic review settings January 28, 2026 14:38
@kubaflo
Copy link
Contributor Author

kubaflo commented Jan 28, 2026

📋 PR Finalization Review

Review 1: Initial finalization check ⚠️ Needs Update

Title ✅ Good

Current: Add PR label management to test verification skill


Description ⚠️ Needs Update

Good summary paragraph but missing required sections

Missing Elements

NOTE block at top,Description of Change section content,Issues Fixed section content

✨ Suggested PR Description

Click to see proposed description

Adds automatic PR label management to the verify-tests-fail-without-fix skill. After test verification completes, the skill now updates labels on the PR to indicate verification status.

New Labels:

  • s/ai-reproduction-confirmed - Tests correctly FAIL without fix
  • s/ai-reproduction-failed - Tests PASS without fix

Files Changed:

  • SKILL.md - Added PR Labels documentation section
  • verify-tests-fail.ps1 - Added Update-VerificationLabels function

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the test verification skill by adding automated PR label management based on verification outcomes. The skill now adds s/ai-reproduction-confirmed when tests correctly fail without a fix (proving they catch the bug) or s/ai-reproduction-failed when tests pass without a fix (indicating they don't catch the bug).

Changes:

  • Implemented label management function that updates PR labels based on test verification results
  • Integrated label updates into both quick verification mode (test-only) and full verification mode (test + fix)
  • Added comprehensive documentation explaining label behavior, colors, and when each label is applied

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1 Added Update-VerificationLabels function and integrated it at all verification result points (both success and failure paths in quick and full modes)
.github/skills/verify-tests-fail-without-fix/SKILL.md Added PR Labels section documenting the two labels, their colors, when they're applied, and their behavior during re-verification

Comment on lines 164 to 168
if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Labels updated successfully" -ForegroundColor Green
} else {
Write-Host "⚠️ Failed to update labels (may not have permission)" -ForegroundColor Yellow
}
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The $LASTEXITCODE check on line 164 only reflects the exit code of the last gh pr edit command (line 162 - adding the label), not the gh pr edit command on line 157 (removing the label). If removing the label fails but adding succeeds, the function will report success even though the removal may have failed.

Consider checking $LASTEXITCODE after the remove operation as well, or tracking both operations separately to provide accurate feedback.

Copilot uses AI. Check for mistakes.
@kubaflo kubaflo added the area-ai-agents Copilot CLI agents, agent skills, AI-assisted development label Jan 28, 2026
Address Copilot review feedback - track success of both DELETE and POST
operations separately. If the DELETE fails but POST succeeds, report
partial failure instead of full success to avoid misleading logs and
potential conflicting label state.
@PureWeen PureWeen merged commit e8f0031 into dotnet:main Jan 29, 2026
2 of 3 checks passed
rmarinho pushed a commit that referenced this pull request Jan 29, 2026
Adds automatic PR label management to the verify-tests-fail-without-fix
skill. After test verification completes, the skill now updates labels
on the PR to indicate verification status.

**New Labels:**
- s/ai-reproduction-confirmed - Tests correctly FAIL without fix
- s/ai-reproduction-failed - Tests PASS without fix

**Files Changed:**
- SKILL.md - Added PR Labels documentation section
- verify-tests-fail.ps1 - Added Update-VerificationLabels function

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
kubaflo added a commit to kubaflo/maui that referenced this pull request Feb 2, 2026
Adds automatic PR label management to the verify-tests-fail-without-fix
skill. After test verification completes, the skill now updates labels
on the PR to indicate verification status.

**New Labels:**
- s/ai-reproduction-confirmed - Tests correctly FAIL without fix
- s/ai-reproduction-failed - Tests PASS without fix

**Files Changed:**
- SKILL.md - Added PR Labels documentation section
- verify-tests-fail.ps1 - Added Update-VerificationLabels function

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai-agents Copilot CLI agents, agent skills, AI-assisted development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants