File tree Expand file tree Collapse file tree 2 files changed +41
-3
lines changed
Expand file tree Collapse file tree 2 files changed +41
-3
lines changed Original file line number Diff line number Diff line change 1+ # Cherry Pick Command Workflow
2+ #
3+ # This workflow is triggered by the /cherry-pick slash command from the slash.yml workflow.
4+ # It automatically cherry-picks merged PRs to the specified target branches.
5+ #
6+ # Usage: Comment `/cherry-pick <target-branch> [<target-branch> ...]` on a merged pull request
7+ # Example: `/cherry-pick release-v1.0.x`
8+ # Example: `/cherry-pick release-v1.0.x release-v1.1.x`
9+ #
10+ # Security Notes:
11+ # - Only users with "write" permission can trigger this command (enforced in slash.yml)
12+ # - Works safely with PRs from forks because it only cherry-picks already-merged commits
13+ # - Uses CHATOPS_TOKEN to create PRs and push to branches
14+ # - The action creates a new branch from the target branch, not from the fork
15+
16+ name : Cherry Pick Command
17+
18+ on :
19+ repository_dispatch :
20+ types : [cherry-pick-command]
21+
22+ permissions :
23+ contents : write
24+ pull-requests : write
25+ issues : write
26+
27+ jobs :
28+ cherry-pick :
29+ name : Cherry Pick Actions
30+ uses : tektoncd/plumbing/.github/workflows/_cherry-pick-command.yaml@4b57443b85569e5bb7d9ee440bf5cae99cb642cb
31+ secrets :
32+ CHATOPS_TOKEN : ${{ secrets.CHATOPS_TOKEN }}
Original file line number Diff line number Diff line change 1212# named <command>-command which must exist in the repository.
1313#
1414# Supported commands:
15- # - /land: invokes the land-command workflow, to land (merge) PRs
16- # stacked through ghstack
15+ # - /retest: re-trigger workflows that failed on a given PR
16+ # - /cherry-pick <branch>: cherry-picks the merged PR to the specified branch
1717#
1818# When a command is recognised, the rocket and eyes emojis are added
1919
3636 "command": "retest",
3737 "permission": "write",
3838 "issue_type": "pull-request",
39- "repository": "tektoncd/pipeline"
39+ "repository": "tektoncd/mcp-server"
40+ },
41+ {
42+ "command": "cherry-pick",
43+ "permission": "write",
44+ "issue_type": "pull-request",
45+ "repository": "tektoncd/mcp-server"
4046 }
4147 ]
You can’t perform that action at this time.
0 commit comments