Skip to content

Add PR comment bot announcing prediction markets#9

Open
krandder wants to merge 1 commit into
core/apifrom
feature/pr-comment-bot
Open

Add PR comment bot announcing prediction markets#9
krandder wants to merge 1 commit into
core/apifrom
feature/pr-comment-bot

Conversation

@krandder

Copy link
Copy Markdown
Contributor

Summary

  • Adds id: create-market and GITHUB_OUTPUT writes to existing market creation step
  • New "Comment on PR with market link" step posts a markdown comment via gh pr comment
  • Comment includes: market question, 50/50 starting prices table, dashboard link, CLI trade examples
  • Posted by github-actions[bot] — no extra accounts needed
  • Skips gracefully when secrets are not configured (market creation was skipped)
  • Adds permissions: pull-requests: write to the job

Test plan

  • Open a test PR on the repo
  • github-actions[bot] comments with market link
  • Link goes to https://api.futarchy.ai/#/market/{id}
  • No comment if secrets are missing (graceful skip)

🤖 Generated with Claude Code

When a market is created on PR open, github-actions[bot] posts a comment
with the market question, starting prices, dashboard link, and CLI
trade examples. Skips gracefully when secrets are not configured.
krandder added a commit that referenced this pull request Feb 27, 2026
- Market names drop the deadline: "Will PR #9 '...' merge?" (not "...by DATE")
- Metadata carries market_type:"conditional" and resolution_rules
- Dashboard shows purple "Conditional" badge on cards and detail view
- Detail view shows resolution rules box: YES=merged, NO=closed, VOID=expired
- Voided markets show amber "VOID — positions refunded" bar (not red NO)
- Cards show "Closes Feb 28" for open markets instead of raw ISO timestamps
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.

1 participant