- Add skills/gitea-pr/SKILL.md (61 lines) adhering to skeleton structure - Add references/pr-lifecycle.md defining PR states, synthesis template, and triage - Add references/tea-pulls.md documenting verified tea CLI pull request subroutines
2.6 KiB
2.6 KiB
Verified Tea CLI Pull Request Subroutines
Reference for gitea-pr. Canonical, verified syntax for managing pull requests and review threads via tea.
1. Inspecting Pull Requests
List Pull Requests
- List open PRs:
tea pulls list - List all PRs including closed:
tea pulls list --state all
View Pull Request Details
- View basic PR details:
tea pulls <index> - Inspect mergeability and CI status:
tea pulls <index> --fields index,title,state,mergeable,ci,base,head
2. Creating and Updating Pull Requests
Create a Pull Request
- Create standard PR with multi-line description via heredoc:
tea pulls create --title "<title>" --base "<base-branch>" --head "<feature-branch>" --description-file - <<'EOF' Closes #<issue-index> ## Summary of Changes ... EOF - Create as a Draft / WIP PR:
tea pulls create --title "WIP: <title>" --draft --base "<base-branch>" --head "<feature-branch>" --description-file - <<'EOF' ... EOF - Assign milestone or labels:
tea pulls create --title "<title>" --base "<base>" --milestone "<milestone-name>" --labels "<label1,label2>" --description-file -
Edit a Pull Request
- Update title or milestone:
tea pulls edit <index> --title "<new-title>" --milestone "<milestone-name>"
3. Review Comments and Discussions
List Review Comments
- View all inline review comments:
tea pulls review-comments <index> - View general PR comments:
tea comments list <index>
Reply to Review Comments
- Reply to an inline review comment:
tea pulls reply <index> <comment-id> "<reply-text>" - Add a top-level comment to the PR:
tea comment <index> "<comment-text>"
Resolve Review Comments
- Mark an inline review comment as resolved:
tea pulls resolve <comment-id> - Unresolve a comment if follow-up is needed:
tea pulls unresolve <comment-id>
4. Closing and Merging Pull Requests
Close or Reopen PR
- Close without merging:
tea pulls close <index> - Reopen closed PR:
tea pulls reopen <index>
Merge Pull Request (Human Release Authorization Required)
- Merge using specified merge style (
merge,rebase,squash,rebase-merge):tea pulls merge <index> --style rebase --title "<commit-title>" --message "<commit-body>" - Operator Safety Rule: Skills report merge readiness. Only execute
tea pulls mergewhen the human owner has explicitly authorized merging.