Skip to content

test: add CodeBounty webhook fixture#117

Open
TJCurnutte wants to merge 1 commit into
CodeBountyOrg:mainfrom
TJCurnutte:tjcurnutte/bounty-42-codebounty-webhook-fixture
Open

test: add CodeBounty webhook fixture#117
TJCurnutte wants to merge 1 commit into
CodeBountyOrg:mainfrom
TJCurnutte:tjcurnutte/bounty-42-codebounty-webhook-fixture

Conversation

@TJCurnutte
Copy link
Copy Markdown

Summary

Fixes #42.

Adds a deterministic CodeBounty webhook fixture and validator for the webhook test issue.

Changes

  • adds test-fixtures/codebounty-webhook-issue-42.json for a bounty.available event tied to CodeBountyOrg/BountyTestRepository#42
  • adds scripts/validate-codebounty-webhook.mjs, a dependency-free Node.js validator for the required webhook fields
  • documents the validation flow in bounty-notes/issue-42-webhooks-test.md

Validation

  • node --check scripts/validate-codebounty-webhook.mjs
  • node scripts/validate-codebounty-webhook.mjs test-fixtures/codebounty-webhook-issue-42.json
  • Python assertions for normalized output, Fixes #42 linkage, fixture issue number, and $150 bounty amount
  • git diff --check

Collision check

Checked immediately before this PR:

@TJCurnutte TJCurnutte mentioned this pull request May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webhooks test

1 participant