-
Notifications
You must be signed in to change notification settings - Fork 263
32 lines (28 loc) · 1.09 KB
/
cherry-pick-command.yaml
File metadata and controls
32 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Cherry Pick Command Workflow
#
# This workflow is triggered by the /cherry-pick slash command from the slash.yml workflow.
# It automatically cherry-picks merged PRs to the specified target branches.
#
# Usage: Comment `/cherry-pick <target-branch> [<target-branch> ...]` on a merged pull request
# Example: `/cherry-pick release-v0.42.x`
# Example: `/cherry-pick release-v0.42.x release-v0.43.x`
#
# Security Notes:
# - Only users with "write" permission can trigger this command (enforced in slash.yml)
# - Works safely with PRs from forks because it only cherry-picks already-merged commits
# - Uses CHATOPS_TOKEN to create PRs and push to branches
# - The action creates a new branch from the target branch, not from the fork
name: Cherry Pick Command
on:
repository_dispatch:
types: [cherry-pick-command]
permissions:
contents: write
pull-requests: write
issues: write
jobs:
cherry-pick:
name: Cherry Pick Actions
uses: tektoncd/plumbing/.github/workflows/_cherry-pick-command.yaml@4b57443b85569e5bb7d9ee440bf5cae99cb642cb
secrets:
CHATOPS_TOKEN: ${{ secrets.CHATOPS_TOKEN }}