Repository navigation
Conversation
…n new pull requests.
🤖 Review by GROQ Agent✅ What's solid
🧪 Tests
Suggested test snippet (Bats)#!/usr/bin/env bats
setup() {
export GITHUB_REPOSITORY="owner/repo"
export GITHUB_TOKEN="dummy-token"
export GITHUB_EVENT_PATH="$(mktemp)"
export CURL_CMD="$(pwd)/mock_curl.sh"
cat > mock_curl.sh <<'EOF'
#!/usr/bin/env bash
printf "%s\n" "$@" >> curl_log.txt
EOF
chmod +x mock_curl.sh
rm -f curl_log.txt
}
teardown() {
rm -f "$GITHUB_EVENT_PATH" mock_curl.sh curl_log.txt
}
@test "posts correct quote for PR #7" {
cat > "$GITHUB_EVENT_PATH" <<'EOF'
{ "pull_request": { "number": 7 } }
EOF
run bash ../src/entrypoint.sh
[ "$status" -eq 0 ]
grep -q '"body":"Keep calm and code on."' curl_log.txt
}🔒 Security
🧩 Docs/DX
🧱 Mocks/Fakes
Overall, the utility is well‑scoped, easy to understand, and includes a functional test harness. The suggestions above aim to tighten security, broaden test coverage, and improve developer experience for future contributors. |
🤖 Review by GEMINI Agent✅ What's solid
🧪 Tests
🔒 Security
🧩 Docs/DX
🧱 Mocks/Fakes
|
Implementation Summary
github-actions/nightly-nightly-pr-quote-commenterRationale
Why safe to merge
github-actions/nightly-nightly-pr-quote-commenter.Test Plan
github-actions/nightly-nightly-pr-quote-commenter/README.mdgithub-actions/nightly-nightly-pr-quote-commenter/tests/Links
Mock Justification