Skip to content

Remove duplicate @ prefix from issueAuthor in GitOps#34834

Merged
kubaflo merged 2 commits into
dotnet:mainfrom
akoeplinger:fix-issueauthor-mentions-20260406
May 29, 2026
Merged

Remove duplicate @ prefix from issueAuthor in GitOps#34834
kubaflo merged 2 commits into
dotnet:mainfrom
akoeplinger:fix-issueauthor-mentions-20260406

Conversation

@akoeplinger
Copy link
Copy Markdown
Member

Description of Change

https://github.com/GitOps-microsoft/GitOps.PullRequestIssueManagement/pull/262 (internal Microsoft link) changed the ${issueAuthor} placeholder to include the @ character.

Remove the one we added so we don't duplicate it.

https://github.com/GitOps-microsoft/GitOps.PullRequestIssueManagement/pull/262 (internal Microsoft link) changed the `${issueAuthor}` placeholder to include the `@` character.

Remove the one we added so we don't duplicate it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 6, 2026 18:39
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 6, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 34834

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 34834"

Copy link
Copy Markdown
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

Updates the GitOps issue/PR management policy replies to avoid duplicating the @ prefix now that ${issueAuthor} includes it, keeping automated messages correctly formatted.

Changes:

  • Removed the hardcoded @ preceding ${issueAuthor} in multiple reply templates.
  • Kept existing reply text/formatting otherwise unchanged.

Comment thread .github/policies/resourceManagement.yml Outdated
Comment thread .github/policies/resourceManagement.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@akoeplinger akoeplinger requested a review from PureWeen May 7, 2026 11:04
@kubaflo
Copy link
Copy Markdown
Contributor

kubaflo commented May 24, 2026

/review -b feature/refactor-copilot-yml

@MauiBot MauiBot added s/agent-review-incomplete s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels May 24, 2026
@akoeplinger
Copy link
Copy Markdown
Member Author

@kubaflo this won't trigger AzDO builds, can you please force merge it?

@kubaflo kubaflo enabled auto-merge (squash) May 26, 2026 20:29
@kubaflo
Copy link
Copy Markdown
Contributor

kubaflo commented May 26, 2026

@rmarinho can you please merge this?

@kubaflo
Copy link
Copy Markdown
Contributor

kubaflo commented May 28, 2026

/review -b feature/refactor-copilot-yml

@MauiBot
Copy link
Copy Markdown
Collaborator

MauiBot commented May 28, 2026

🤖 AI Summary

👋 @akoeplinger — new AI review results are available. Please review the latest session below.

📊 Review Session3bd8565 · Apply suggestions from code review · 2026-05-28 15:01 UTC
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ SKIPPED

No tests were detected in this PR.

Recommendation: Add tests to verify the fix using the write-tests-agent.


🧪 UI Tests

No UI test categories needed for this PR (no UI-relevant changes).


🔍 Regression Cross-Reference

🟢 No implementation files modified — skipping regression cross-reference.


🔍 Pre-Flight — Context & Validation

Issue: N/A - No linked GitHub issue found in PR description
PR: #34834 - Remove duplicate @ prefix from issueAuthor in GitOps
Platforms Affected: GitHub/GitOps policy automation only; no Android runtime path despite requested test platform
Files Changed: 1 implementation/configuration, 0 test

Key Findings

  • PR updates .github/policies/resourceManagement.yml automated reply text to stop composing @${issueAuthor} now that GitOps reports ${issueAuthor} with the mention prefix included.
  • Prior inline review comments requested two user-facing text fixes; the current PR branch includes both wording corrections.
  • Gate was already skipped before this run because no tests were detected. The only observed PR check directly related to the file, GitOps/YmlSchemaValidation, is green on GitHub.
  • No UI test categories are impacted; uitests/ai-categories.md is NONE.

Code Review Summary

Verdict: LGTM
Confidence: medium
Errors: 0 | Warnings: 0 | Suggestions: 0

Key code review findings:

  • Code review found no issues. It noted the internal GitOps behavior change could not be independently inspected, so confidence is medium.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #34834 Remove hardcoded @ before ${issueAuthor} in affected GitOps replies and fix two wording typos ⏳ PENDING (Gate skipped: no tests detected) .github/policies/resourceManagement.yml Original PR

🔬 Code Review — Deep Analysis

Code Review — PR #34834

Independent Assessment

What this changes: Removes literal @ before ${issueAuthor} in GitOps resource-management replies and fixes two user-facing text typos in .github/policies/resourceManagement.yml.
Inferred motivation: Avoid duplicated mentions if ${issueAuthor} now expands with @.

Reconciliation with PR Narrative

Author claims: GitOps changed ${issueAuthor} to include @; this removes the extra prefix.
Agreement/disagreement: Matches the code. Similar no-@ usage exists in dotnet/aspnetcore. YAML validation passed.

Findings

No ❌ / ⚠️ / 💡 findings.

Devil's Advocate

Could not inspect the internal GitOps PR directly, so expansion behavior depends on the service claim. CI schema validation passes; no failed checks observed, but some checks are pending/neutral.

Verdict: LGTM

Confidence: medium
Summary: The changes are narrow, syntactically valid, and fix the intended duplicate-mention behavior plus wording issues. Wrote CustomAgentLogsTmp/PRState/34834/PRAgent/inline-findings.json as []; no GitHub comments posted.


🔧 Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 try-fix Replace personalized ${issueAuthor} greetings with neutral greetings, removing the placeholder dependency entirely ❌ FAIL .github/policies/resourceManagement.yml YAML parsed and duplicate @${issueAuthor} pattern was gone, but the candidate lost explicit author mention/notification behavior.
2 try-fix Use a hypothetical raw-login placeholder, @${issueAuthorLogin}, to preserve mention formatting without relying on ${issueAuthor} including @ ❌ FAIL .github/policies/resourceManagement.yml YAML parsed, but the placeholder is unsupported/speculative in this repo context and risks literal or invalid GitOps output.
PR PR #34834 Remove hardcoded @ before the known ${issueAuthor} placeholder and fix two wording typos ⚠️ Gate skipped (no tests detected); GitOps/YmlSchemaValidation check observed green on PR .github/policies/resourceManagement.yml Original PR; best supported minimal fix.

Cross-Pollination

Model Round New Ideas? Details
claude-opus-4.6 2 No NO NEW IDEAS: PR's surgical fix is the correct minimal change; alternatives are speculative or out of scope.
claude-opus-4.7 2 No NO NEW IDEAS: Given repo-supported placeholders, using ${issueAuthor} without hardcoded @ is the only robust fix.
gpt-5.3-codex 2 No NO NEW IDEAS: Bare ${issueAuthor} preserves explicit mention and avoids @@username; other options lose functionality or add complexity.
gpt-5.5 2 No NO NEW IDEAS: PR fix is the minimal supported correction; alternatives lose notification behavior or rely on unsupported placeholders.

Exhausted: Yes
Selected Fix: PR's fix — It preserves the known GitOps ${issueAuthor} placeholder, removes only the now-incorrect literal @, includes requested wording fixes, and avoids unsupported placeholder or behavior changes.


📋 Report — Final Recommendation

Comparative Candidate Report — PR #34834

Candidates Compared

Rank Candidate Regression Result Summary
1 pr ⚠️ Gate skipped; GitOps/YmlSchemaValidation previously observed green Removes only the now-incorrect literal @ before the known ${issueAuthor} placeholder and fixes the two wording mistakes. Preserves author mention behavior without relying on unsupported tokens.
2 pr-plus-reviewer ⚠️ Gate skipped; no reviewer changes needed Equivalent to pr; the expert reviewer produced no actionable inline findings and no sandbox changes. Ranked behind pr only because it adds no improvement over the raw PR fix.
3 try-fix-1 ❌ Fail Replaces personalized greetings with neutral text. This removes duplicate mentions, but regresses explicit author mention/notification behavior that the PR preserves.
4 try-fix-2 ❌ Fail Uses @${issueAuthorLogin}, which would preserve mention shape only if that placeholder exists. No repository-local schema/docs establish it as supported, so it risks literal output or GitOps failure.

Analysis

The pr and pr-plus-reviewer candidates are functionally identical because expert review found no actionable changes to apply. Both keep the known ${issueAuthor} placeholder in every affected reply and remove only the duplicated literal @, which directly addresses the reported GitOps behavior change while preserving author notification/personalization.

Both try-fix candidates failed regression probes and must rank below the PR-based candidates. try-fix-1 avoids the duplicate mention by removing the placeholder entirely, but that loses the explicit author mention. try-fix-2 keeps an explicit mention shape but depends on an unsupported/speculative ${issueAuthorLogin} placeholder.

Winner

Winning candidate: pr

pr wins because it is the minimal supported fix, preserves the existing GitOps placeholder contract, avoids the failed regressions in both try-fix alternatives, and requires no additional expert-review changes.


@akoeplinger
Copy link
Copy Markdown
Member Author

/azp run maui-pr-uitests,maui-pr-devicetests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@kubaflo kubaflo merged commit 7a1a319 into dotnet:main May 29, 2026
7 of 8 checks passed
@akoeplinger akoeplinger deleted the fix-issueauthor-mentions-20260406 branch May 29, 2026 09:07
@github-actions github-actions Bot added this to the .NET 10.0 SR8 milestone May 29, 2026
devanathan-vaithiyanathan pushed a commit to devanathan-vaithiyanathan/maui that referenced this pull request Jun 1, 2026
### Description of Change


https://github.com/GitOps-microsoft/GitOps.PullRequestIssueManagement/pull/262
(internal Microsoft link) changed the `${issueAuthor}` placeholder to
include the `@` character.

Remove the one we added so we don't duplicate it.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants