Remove duplicate @ prefix from issueAuthor in GitOps#11082
Remove duplicate @ prefix from issueAuthor in GitOps#11082akoeplinger wants to merge 1 commit intodotnet:mainfrom
Conversation
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>
There was a problem hiding this comment.
Pull request overview
This PR updates the GitOps.PullRequestIssueManagement policy configuration to avoid double-mentioning issue authors now that ${issueAuthor} includes the @ prefix upstream.
Changes:
- Remove the hardcoded
@before${issueAuthor}in the inactivity auto-close reply - Remove the hardcoded
@before${issueAuthor}in theneed-infolabel auto-reply
| actions: | ||
| - addReply: | ||
| reply: Hi @${issueAuthor}. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you. | ||
| reply: Hi ${issueAuthor}. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you. |
There was a problem hiding this comment.
This edited line appears to have a different line ending (LF-only) compared to the rest of the file (CRLF shown on surrounding lines in this diff). Please normalize the file’s line endings to avoid mixed EOLs in the same YAML file.
| then: | ||
| - addReply: | ||
| reply: Hi @${issueAuthor}. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. | ||
| reply: Hi ${issueAuthor}. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
There was a problem hiding this comment.
This edited line appears to have a different line ending (LF-only) compared to the rest of the file (CRLF shown on surrounding lines in this diff). Please normalize the file’s line endings to avoid mixed EOLs in the same YAML file.
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.