Repository navigation
feat: forgejo issue write ops — create with labels, comment, comments, close zombie check (#16) - #21
Merged
Conversation
…, close zombie check #16 - forgejo_issue_create: label names → ids (repo + org) before POST; unknown label aborts, nothing created - forgejo_issue_comment / forgejo_issue_comments (one line per comment) - forgejo_issue_close: comment now optional; reports PRs referencing the issue - fix: getForgejoRepo parsed https remotes as host/owner/repo — every forgejo_* tool failed on https origins; now repoFromRemoteUrl (https, ssh, scp, subpath) - forgejoApiAll pagination helper; shared fetch-mock test helpers - Tool count 22 → 25, docs updated, 0.3.0
…mbie scan 500 PRs #16 - forgejoApiAll: a failed later page fails the call instead of returning a partial list that looks complete - resolveLabelIds: only a 404 on org labels means "no org"; other failures are reported instead of calling org labels unknown - forgejo_issue_close: zombie check scans 500 PRs and says so when none match - tests: pagination, failed page, org-label errors, API error paths, comment-then-close, not-configured for every new tool
|
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 (11)
✨ 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
…, close zombie check (#16) (#21) * feat: forgejo issue write ops — create with labels, comment, comments, close zombie check #16 - forgejo_issue_create: label names → ids (repo + org) before POST; unknown label aborts, nothing created - forgejo_issue_comment / forgejo_issue_comments (one line per comment) - forgejo_issue_close: comment now optional; reports PRs referencing the issue - fix: getForgejoRepo parsed https remotes as host/owner/repo — every forgejo_* tool failed on https origins; now repoFromRemoteUrl (https, ssh, scp, subpath) - forgejoApiAll pagination helper; shared fetch-mock test helpers - Tool count 22 → 25, docs updated, 0.3.0 * fix: review findings — no partial pages, org-label errors surface, zombie scan 500 PRs #16 - forgejoApiAll: a failed later page fails the call instead of returning a partial list that looks complete - resolveLabelIds: only a 404 on org labels means "no org"; other failures are reported instead of calling org labels unknown - forgejo_issue_close: zombie check scans 500 PRs and says so when none match - tests: pagination, failed page, org-label errors, API error paths, comment-then-close, not-configured for every new tool
four-bytes-robby
added a commit
that referenced
this pull request
Oct 5, 2026
…, close zombie check (#16) (#21) * feat: forgejo issue write ops — create with labels, comment, comments, close zombie check #16 - forgejo_issue_create: label names → ids (repo + org) before POST; unknown label aborts, nothing created - forgejo_issue_comment / forgejo_issue_comments (one line per comment) - forgejo_issue_close: comment now optional; reports PRs referencing the issue - fix: getForgejoRepo parsed https remotes as host/owner/repo — every forgejo_* tool failed on https origins; now repoFromRemoteUrl (https, ssh, scp, subpath) - forgejoApiAll pagination helper; shared fetch-mock test helpers - Tool count 22 → 25, docs updated, 0.3.0 * fix: review findings — no partial pages, org-label errors surface, zombie scan 500 PRs #16 - forgejoApiAll: a failed later page fails the call instead of returning a partial list that looks complete - resolveLabelIds: only a 404 on org labels means "no org"; other failures are reported instead of calling org labels unknown - forgejo_issue_close: zombie check scans 500 PRs and says so when none match - tests: pagination, failed page, org-label errors, API error paths, comment-then-close, not-configured for every new tool
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 #16 · replaces #19 (closed when its stacked base was deleted)
forgejo_issue_create: label names → ids (repo + org) before POST; unknown label aborts, nothing createdforgejo_issue_comment/forgejo_issue_comments(one line per comment, newest N)forgejo_issue_close: comment arg now optional; reports PRs referencing the issuegetForgejoRepoparsed https remotes ashost/owner/repo— everyforgejo_*tool failed on https origins; replaced byrepoFromRemoteUrlGates: tsc clean · 279 tests pass · build ok · local review 95% (after fix commit 57e76ef: no partial pages, org-label errors surface, zombie scan 500 PRs, error-path tests)
Summary by cubic
Adds Forgejo issue write tools — create with labels, comment, and list comments — plus a zombie check on close, and fixes the remote parsing bug that broke every forgejo_* tool on https origins.
forgejo_issue_createresolves label names against repo and org labels before POSTing; unknown labels abort with nothing created.forgejo_issue_commentsshows one line per comment with newest N;forgejo_issue_closemakes the comment optional and reports linked PRs referencing the issue (scans the 500 most recently updated).repoFromRemoteUrlhandles https, ssh, scp-style, and subpath remotes. Pagination and label failures now surface: a failed page fails the whole list call, and only a 404 on org labels counts as "no org".Written for commit 57e76ef. Summary will update on new commits.