Add support for 'merge pull request' #54
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/OpenSpec
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
RFC - Request For Comments
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
approved
area:client-host
area:item-interaction
area:meta-tooling
area:operator-dev-loop
area:repository-hygiene
area:typescript-sdk
area:website
blocked
bug
castra:bot-active
castra:human
change
checker:tobi
close-suggested
code
copilot-conflict
deferred
dependencies
docs-ok
enhancement
fast-track
groom:close-suggested
hermes-attempted
hermes-needs-clarification
hermes-ready
hermes-review
hermes-wip
human
human-required
intake
merge
merge-conflict
needs-scope
no-concept-doc
no-demo
plan-approved
plan-needs-revision
portfolio:infrastructure
portfolio:mixed
portfolio:product
portfolio:unknown
prioritize
prioritized
priority:high
priority:low
priority:medium
propose
ready
retro
retro-proposal
review
stage:backlog
stage:blocked
stage:code
stage:done
stage:intake
stage:merge
stage:propose
stage:review
stage:waiting
status:waiting
tracker
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
agentic-forges/forgejo-mcp#54
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thx for this great mcp tool!
It would be great if you could add the API endpoint that allows the AI to merge a pull request.
I think it should be
/repos/{owner}/{repo}/pulls/{index}/mergeHi @c6sepl6p, thanks for the feature request!
I've started working on this. Here's the proposal — does this match what you had in mind?
Proposal:
merge_pull_requestMCP toolWhat it does: Adds a new
merge_pull_requesttool that wraps the Forgejo API endpointPOST /repos/{owner}/{repo}/pulls/{index}/merge.Exposed options:
Impact: Additive change only — no modifications to existing tools. The forgejo SDK already supports this endpoint, so it's straightforward to implement.
The full proposal is tracked in
openspec/changes/merge-pull-request/proposal.mdon themainbranch.Let me know if this covers your use case or if you'd want anything adjusted!
thx, i looked into the
openspec/changes/merge-pull-request/proposal.md, looks good to me!merge_pull_requesttool — now availableHey @c6sepl6p, the
merge_pull_requesttool has been implemented. Here's a quick how-to:Parameters
ownerrepoindexstylemerge,rebase,rebase-merge, orsquashtitlemessagedelete_branch_after_mergeforce_mergemerge_when_checks_succeedExamples
Simple merge:
Squash with custom message and branch cleanup:
Auto-merge when CI passes:
Would you mind giving it a try and letting us know if it works for your use case? Available in the next release.
Hey, didn't come to test it until now. Wanted to thank you for the great implementation!