Skip to content
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

Merged
merged 3 commits into from
Mar 25, 2020
Merged

feat(azure): small improvements for PR assignees and reviewers (corre… #5601

merged 3 commits into from
Mar 25, 2020

Conversation

kroonprins
Copy link
Contributor

@kroonprins kroonprins commented Feb 29, 2020

…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.

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

LGTM

lib/platform/azure/index.ts Outdated Show resolved Hide resolved
@@ -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);
Copy link
Member

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.

Copy link
Collaborator

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

Copy link
Contributor Author

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.

@viceice viceice self-requested a review February 29, 2020 21:28
Copy link
Member

@viceice viceice left a 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

@JamieMagee
Copy link
Contributor

@viceice Needs your approval

@rarkins rarkins merged commit c5851be into renovatebot:master Mar 25, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants