Skip to content

Commit

Permalink
Remove script for portablility (openbao#754)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Scheel <[email protected]>
  • Loading branch information
cipherboy authored Nov 23, 2024
1 parent f22cc04 commit 72a1c59
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .github/scripts/verify-commits.jq

This file was deleted.

22 changes: 21 additions & 1 deletion .github/workflows/verify-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/openbao/openbao/pulls/${{ github.event.pull_request.number }}/commits | \
jq -f .github/scripts/verify-commits.jq
jq '[
# Iterate over all commits
.[] |
# select maintainer commits
select(
.author.login == "JanMa" or
.author.login == "cipherboy" or
.author.login == "DanGhita" or
.author.login == "naphelps"
) |
# select any unsigned commits
select(.commit.verification.verified == false)
] |
# check if there are unsigned commits
if (. | length) != 0 then
# return error
("Pr contains unsigned maintainer commits!\n" | halt_error(1))
else
# return success
"All maintainer commits are signed"
end'
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 72a1c59

Please sign in to comment.