-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(azure): small improvements for PR assignees and reviewers (corre… #5601
feat(azure): small improvements for PR assignees and reviewers (corre… #5601
Conversation
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.
LGTM
@@ -128,6 +129,7 @@ If you need any further assistance then you can also [request help here](${confi | |||
useDefaultBranch, | |||
}); | |||
logger.info({ pr: pr.displayNumber }, 'Onboarding PR created'); | |||
await addAssigneesReviewers(config, pr); |
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.
@rarkins I think this should be done in separate pr.
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.
Yes, please separate this to another PR
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.
Updates related to second change removed with this commit. New PR opened for it here.
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.
Forgot about the second change
…ctly assign when display name format is used)
@viceice Needs your approval |
…ctly assign when display name format is used; also add assignees and reviewers for onboarding PR if assigness/reviewers have been provided as command line arguments)
For Azure PR assignees are added by doing a mention in a PR comment. Currently when the assignee is given by its "displayName" instead of its "uniqueName" the mention will not work correctly. For reviewers it is possible to configure the reviewers by both their "displayName" and "uniqueName", so the code change of this pull request applies the same logic for reviewers also to assignees. Being able to specify assignees by display name can be useful because Azure Devops pipelines provide the display name as an environment variable in a running pipeline, but not the unique name.