-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Comparing changes
Open a pull request
base repository: tailcallhq/forgecode
base: main
head repository: tailcallhq/forgecode
compare: bounty-scripts
- 6 commits
- 16 files changed
- 3 contributors
Commits on Mar 24, 2026
-
feat(bounty): replace per-issue sync with bulk sync-all-issues
Instead of triggering sync-issue.ts once per event with a specific issue number, introduce sync-all-issues.ts which fetches all open issues carrying any 'bounty' label prefix in a single pass and reconciles each one. Changes: - Add listIssuesWithLabelPrefix() to GitHubApi interface and GitHubRestApi (paginates /issues?state=open automatically) - New sync-all-issues.ts: planAllIssues / syncAllIssues with full test coverage (sync-all-issues.test.ts) - Replace sync_issue_job with sync_all_issues_job in forge_ci; update bounty workflow to add a daily schedule (02:00 UTC) in addition to the existing issues/label events - Regenerate .github/workflows/bounty.yml - Add bounty:sync-all-issues npm script Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Configuration menu - View commit details
-
Copy full SHA for faa95ca - Browse repository at this point
Copy the full SHA faa95caView commit details -
Configuration menu - View commit details
-
Copy full SHA for beff4db - Browse repository at this point
Copy the full SHA beff4dbView commit details -
fix(bounty): add html_url to Issue and title to PullRequest in test f…
…ixtures Update makeIssue helpers in sync-pr.test.ts and sync-all-issues.test.ts to include the html_url field (now required on Issue) and add the title field to makePr (now required on PullRequest), matching the enriched LabelOp metadata threading added for plan output. Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Configuration menu - View commit details
-
Copy full SHA for 445dc1b - Browse repository at this point
Copy the full SHA 445dc1bView commit details -
feat(bounty): show issue/PR title and clickable URL in plan output
- Add html_url to Issue and title to PullRequest interface fields - Add optional title and url fields to LabelOp for display metadata - Thread title/url through diff() helper via meta parameter - Enrich all LabelOps in computeIssuePatch and computePrPatch with title and html_url from the source issue/PR objects - Update printPlan to render: '#N — <title>\n <url>' so operators can click directly to the issue or PR Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Configuration menu - View commit details
-
Copy full SHA for 78c4485 - Browse repository at this point
Copy the full SHA 78c4485View commit details -
chore(bounty): use chalk for coloured plan/apply output
Replace hand-rolled ANSI escape helpers with chalk (v5, pure ESM). Colours applied: - ✔ green — successful add / already-in-sync - ✖ red — removal - ✉ yellow — comment posted - cyan — issue/PR reference (#N) - green — added label names - red — removed label names - blue/dim — clickable URL - dim — footer hint chalk automatically disables colours when stdout is not a TTY (e.g. CI log capture), so no NO_COLOR handling needed. Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Configuration menu - View commit details
-
Copy full SHA for ff8b0dd - Browse repository at this point
Copy the full SHA ff8b0ddView commit details -
feat(bounty): add sync-all-prs bulk sync script
Instead of processing one PR per event, sync-all-prs.ts fetches all open PRs carrying any 'bounty' label prefix in a single pass, resolves their linked issues, and applies the full PR rules (label propagation + rewarded lifecycle) for each. Changes: - Add listPrsWithLabelPrefix() to GitHubApi interface and GitHubRestApi (paginates /pulls?state=open automatically) - New sync-all-prs.ts: planAllPrs / syncAllPrs - 8 new tests in sync-all-prs.test.ts - Update mock stubs in sync-issue/sync-pr/sync-all-issues tests to implement the new interface method - Replace sync_pr_job (per-event, single PR) with sync_all_prs_job (bulk) in forge_ci; add if-condition guard so it only fires on pull_request / pull_request_target / schedule events - Regenerate .github/workflows/bounty.yml - Add bounty:sync-all-prs npm script Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Configuration menu - View commit details
-
Copy full SHA for 03839b9 - Browse repository at this point
Copy the full SHA 03839b9View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...bounty-scripts