Skip to content

Change how commit SHA is obtained#4540

Merged
gewarren merged 1 commit intodotnet:mainfrom
gewarren:statuscheck-sha
Apr 19, 2021
Merged

Change how commit SHA is obtained#4540
gewarren merged 1 commit intodotnet:mainfrom
gewarren:statuscheck-sha

Conversation

@gewarren
Copy link
Copy Markdown
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
Copy Markdown
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