Skip to content

Change how commit SHA is obtained #4540

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

Merged
merged 1 commit into from
Apr 19, 2021
Merged

Conversation

gewarren
Copy link
Contributor

@gewarren gewarren commented Apr 19, 2021

Getting the last commit from the commits array was not reliable - e.g. see dotnet/docs#23766. This changes how we get the commit SHA, depending on if the action is PR open/reopen or a new commit was pushed.

Reference: https://frontside.com/blog/2020-05-26-github-actions-pull_request/

@gewarren gewarren requested a review from IEvangelist April 19, 2021 18:10
@gewarren gewarren requested a review from a team as a code owner April 19, 2021 18:10
Copy link
Member

@IEvangelist IEvangelist left a comment

Choose a reason for hiding this comment

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

Looks good to me, :shipit: when you're ready.

@gewarren gewarren merged commit e96ceb7 into dotnet:main Apr 19, 2021
@gewarren gewarren deleted the statuscheck-sha branch April 19, 2021 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants