Skip to content

Commit 4c3b80e

Browse files
committed
one line fomratting
Signed-off-by: exploreriii <133720349+exploreriii@users.noreply.github.com>
1 parent ac78ee2 commit 4c3b80e

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

.github/workflows/bot-verified-commits.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,10 @@ jobs:
3131
echo "Unverified commits: $UNVERIFIED_COUNT"
3232
3333
if [ "$UNVERIFIED_COUNT" -gt 0 ]; then
34-
COMMITS_URL="https://github.com/$REPO/pull/$PR_NUMBER/commits"
34+
COMMITS_URL="https://github.com/$REPO/pull/$PR_NUMBER/commits"; COMMENT="Hi, I'm VerificationBot. Your pull request has commits that are **not verified**. For your PR to be merged, all commits must achieve verified status. 🔍 You can view your commit verification status here: [$COMMITS_URL]($COMMITS_URL) To resolve this, please read: - [Signing guide](https://github.com/hiero-sdk-python/hiero_sdk_python/blob/main/docs/sdk_developers/signing.md) - [README](https://github.com/hiero-sdk-python/hiero_sdk_python/blob/main/README.md) - [Discord](https://github.com/hiero-sdk-python/hiero_sdk_python/blob/main/docs/discord.md) Remember, you require a GPG key and each commit must be signed with: \`git commit -S -s -m \"Your message here\"\` Thank you for contributing!"
3535
36-
COMMENT=$(cat <<EOF
37-
Hi, I'm VerificationBot. Your pull request has commits that are **not verified**.
38-
For your PR to be merged, all commits must achieve verified status.
39-
40-
🔍 You can view your commit verification status here: [$COMMITS_URL]($COMMITS_URL)
41-
42-
To resolve this, please read:
43-
- [Signing guide](https://github.com/exploreriii/hiero_sdk_python/blob/main/docs/sdk_developers/signing.md)
44-
- [README](https://github.com/exploreriii/hiero_sdk_python/blob/main/README.md)
45-
- [Discord](https://github.com/exploreriii/hiero_sdk_python/blob/main/docs/discord.md)
46-
47-
Remember, you require a GPG key and each commit must be signed with:
48-
\`git commit -S -s -m "Your message here"\`
49-
50-
Thank you for contributing!
51-
EOF
52-
)
53-
54-
gh pr view $PR_NUMBER --repo $REPO --json comments --jq '.comments[].body' | grep -F "VerificationBot" >/dev/null || \
55-
(gh pr comment $PR_NUMBER --repo $REPO --body "$COMMENT" && echo "Comment added to PR #$PR_NUMBER")
56-
else
57-
echo "All commits in PR #$PR_NUMBER are verified."
58-
fi
36+
gh pr view $PR_NUMBER --repo $REPO --json comments --jq '.comments[].body' | grep -F "PythonBot" >/dev/null || \
37+
(gh pr comment $PR_NUMBER --repo $REPO --body "$COMMENT" && echo "Comment added to PR #$PR_NUMBER")
38+
else
39+
echo "All commits in PR #$PR_NUMBER are verified."
40+
fi

0 commit comments

Comments
 (0)