feat(pull-requests): open native Gitea revert pull requests - #15
feat(pull-requests): open native Gitea revert pull requests#15kalvenschraut wants to merge 1 commit into
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughGitea now detects native pull-request revert support, exposes the revert action only to eligible viewers, and sends the native revert request when supported. Tests cover supported servers and stock Gitea behavior. ChangesGitea native revert support
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Eligible Gitea users can now create native revert pull requests when their server supports the capability, while unsupported servers and users without write access do not receive the action. No current merge-blocking risk remains. Sequence Diagram(s)sequenceDiagram
participant Viewer
participant GiteaPullRequestProvider
participant GiteaPullRequestApi
participant GiteaServer
Viewer->>GiteaPullRequestProvider: request pull-request permissions
GiteaPullRequestProvider->>GiteaServer: fetch feature list
GiteaServer-->>GiteaPullRequestProvider: return pull-revert support
GiteaPullRequestProvider-->>Viewer: expose revert for eligible viewer
Viewer->>GiteaPullRequestApi: request revert action
GiteaPullRequestApi->>GiteaServer: POST pull request revert endpoint
GiteaServer-->>Viewer: return created revert pull request
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
b70a0f9 to
10005f8
Compare
|
@coderabbitai review Please review this PR at its exact current head in stack pingdotgg#6. Verify correctness, regressions, security boundaries, and focused coverage against its current base, and report any actionable findings with file references. |
|
Oops, something went wrong! Please try again later. 🐰 💔 |
Merged Gitea pull requests can open a native revert PR through T3’s existing action menu. The action is available only when the server advertises native revert support and the viewer can write to the repository. Stock servers omit it.
Uses the companion Gitea revert endpoint RTVision/gitea#12, which creates a new branch and PR while preserving the target branch. Focused cases cover feature discovery and native endpoint dispatch. Final integrated focused tests, server typecheck, and targeted lint pass.
Final stack validation at
256fd6fe5: 228 focused tests passed, followed by 61 API/workflow cases and the final team-recovery regression; server typecheck and targeted lint passed. The live settle-on-merge E2E previously passed with fixture cleanup. Companion Gitea backend and focused integration tests passed, including native revert across all five merge styles.Model: GPT-6 Astra. Harness: Codex; reviewed with Fable 5.1.
Summary by CodeRabbit