Skip to content

Commit Improvements #328

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 6 commits into from
Dec 5, 2024
Merged

Commit Improvements #328

merged 6 commits into from
Dec 5, 2024

Conversation

GrantBirki
Copy link
Member

@GrantBirki GrantBirki commented Dec 5, 2024

This pull request adds an extra safety check to ensure that the commit returned from the graphql query is the same commit that we originally fetch when looking at the pr.data.head.ref. If these values differ, then we reject the deployment as the commit can not be properly validated. This could occur if there are errors with the PR branch's timeline, someone pushed a commit in-between these two API calls, etc.

This PR also updates logging so that the commit hash which users should deploy in subsequent workflow steps is visible in the logs.

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine
…rom the graphql query are the same

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine
@GrantBirki GrantBirki added the enhancement New feature or request label Dec 5, 2024
@GrantBirki GrantBirki self-assigned this Dec 5, 2024

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine
@GrantBirki GrantBirki merged commit 597c245 into main Dec 5, 2024
4 checks passed
@GrantBirki GrantBirki deleted the commit-improvements branch December 5, 2024 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants