Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailcallhq/forgecode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: tailcallhq/forgecode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bounty-scripts
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 16 files changed
  • 3 contributors

Commits on Mar 24, 2026

  1. 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>
    tusharmath and forge-code-agent committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    faa95ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    beff4db View commit details
    Browse the repository at this point in the history
  3. 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>
    tusharmath and forge-code-agent committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    445dc1b View commit details
    Browse the repository at this point in the history
  4. 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>
    tusharmath and forge-code-agent committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    78c4485 View commit details
    Browse the repository at this point in the history
  5. 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>
    tusharmath and forge-code-agent committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    ff8b0dd View commit details
    Browse the repository at this point in the history
  6. 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>
    tusharmath and forge-code-agent committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    03839b9 View commit details
    Browse the repository at this point in the history
Loading