Skip to content

Commit

Permalink
update the text that gets returned when a commit verification fails
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Dec 16, 2024
1 parent 1c7b2cc commit 6a4ed7b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/functions/commit-safety-checks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ test('checks a commit and finds that it is not safe (verification time) even tho
}

expect(await commitSafetyChecks(context, data)).toStrictEqual({
message: `### ⚠️ Cannot proceed with deployment\n\nThe latest commit is not safe for deployment. The commit signature was verified after the trigger comment was created.`,
message: `### ⚠️ Cannot proceed with deployment\n\nThe latest commit is not safe for deployment. The commit signature was verified after the trigger comment was created. Please try again if you recently pushed a new commit.`,
status: false,
isVerified: true
})
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/functions/commit-safety-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function commitSafetyChecks(context, data) {
isTimestampOlder(comment_created_at, commit?.verification?.verified_at)
) {
return {
message: `### ⚠️ Cannot proceed with deployment\n\nThe latest commit is not safe for deployment. The commit signature was verified after the trigger comment was created.`,
message: `### ⚠️ Cannot proceed with deployment\n\nThe latest commit is not safe for deployment. The commit signature was verified after the trigger comment was created. Please try again if you recently pushed a new commit.`,
status: false,
isVerified: isVerified
}
Expand Down

0 comments on commit 6a4ed7b

Please sign in to comment.