-
Notifications
You must be signed in to change notification settings - Fork 849
Assign authors only on PR creation #7083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Prevents policies from re-assigning it when value is changed later
There was a problem hiding this 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 attempts to restrict the automatic assignment of pull request authors to only occur when PRs are first created (opened), rather than on every PR update. However, the implementation contains a critical bug.
Key Issues
- The
isAction: action: Openedcondition was added to the wrong policy rule, breaking the intended functionality
| - isAction: | ||
| action: Opened |
Copilot
AI
Nov 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The isAction: action: Opened condition is added to the wrong rule. This is part of the Issue_Comment rule (lines 159-170) that removes the 'waiting-author-feedback' label, not the Pull_Request rule (lines 154-158) that assigns PRs to authors.
To fix this issue and achieve the PR's goal of "assign authors only on PR creation", move these two lines to be part of the previous rule. The corrected structure should be:
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
then:
- assignTo:
author: True
description: Assign PRs to authors
Prevents policies from re-assigning it when value is changed later
Microsoft Reviewers: Open in CodeFlow