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

Adding authenticated user details as author while creating commit #783

Open
wants to merge 3 commits into
base: azure_changes
Choose a base branch
from

Conversation

milind009
Copy link
Collaborator

In ADO, certain repos have Commit author email validation policy enabled which only allow accounts/identities having certain email regexes like *@microsoft.com, *@linkedin.com, etc. to create a commit in the repo (if the policy is enabled for the repo)

For certain identities in ADO like framework identities (which do not have an email id associated with them), this policy does not allow these identities to create a commit even after adding their name in the property of allowed identities for this policy.

To prevent this, we need to pass the identity details in the "author" property while sending a create commit request. This PR gets the details for the authenticated user and adds them in the "author" property for the create_commit ADO request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant