Repository navigation
feat: forgejo_* tools — Forgejo state queries via REST API (#9) - #10
Merged
Merged
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
four-bytes-robby
added a commit
that referenced
this pull request
Oct 1, 2026
four-bytes-robby
added a commit
that referenced
this pull request
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9
Adds Forgejo state query tools via the Forgejo v1 REST API, mirroring the existing
gh_*(GitHub) andgitlab_*(GitLab) tool patterns:forgejo_issue_list— List/filter issues on a Forgejo instanceforgejo_issue_view— View single issue detailsforgejo_issue_close— Close an issue with optional commentforgejo_pr_status— Check PR state, mergeability, reviewsAdditional changes:
forgejo-utils.ts— Shared REST client + auth helpers for Forgejo APImerged_viaresolution viagit branch -r --containsto handle squash-merge ambiguitySummary by cubic
Adds four Forgejo state-query tools that use the Forgejo v1 REST API instead of the
fjCLI.fjhas no--json/--formatoutput and reports an out-of-breeze squash merge asClosed, which the newforgejo_pr_statusresolves by checking git forq-commit.New Features—forge_issue_list,forge_issue_view(truncated to 20 lines),forge_issue_close(optional API-posted comment, no shell), andforge_pr_status.queries—forgejo_pr_statusreportsopen/merged/closed · merged_via git-squashby looking upgit branch -r --containson the head commit.forgejo-prresolves ESL asgh/gitlabpatterns borrow from the Forgejo config — fromFORGE_TOKEN(required) andFORGEJO_HOST(ororiginremote). Requiresforceto remove` because a host-from-origin-remote derivation is otherwise.Forgejo repo, and
{env}also returns one-line "not configured" strings when the env is missing.Wait, the config says "repository (from `git remote get-url origin is used for the key appears as "a" – it's fine.
Notes: "Copy" also check for "must" is not exact wording.
zoom_outcomesNow the profile for the
npm flex.Let's finalize.
For the closing line:
Adds four Forgejo state-query tools for the GitHub/GitLab origins, but through the Forgejo REST API instead of the
fjCLI, becausefjhas drilling.and--dataoutput and reports a squash merge asclosed`.forgeetc.forgejo_pr_statusreportsopen/merged/closed · merged_via git-squashby checkinggit branch -r --contains.FORGEJO_TOKEN(required) andFORGEJO_HOST- this "derives" from "Host" only whencond.This is still not the right HTML: