Skip to content

Commit

Permalink
Add backport CI job (grafana#2359)
Browse files Browse the repository at this point in the history
### Summary of changes

**Why is the change needed, what does it improve?**

Adds automatic backporting of PRs with the `backport <release branch>` label.

This means that we can add the `backport release-2.2` to a PR and
after merging the PR grafanabot will open a new PR with the merge commit
 cherry-picked to the `release-2.2` branch.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
  • Loading branch information
dimitarvdimitrov authored Jul 11, 2022
1 parent 9c101c2 commit 6d38b69
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Backport PR Creator
on:
pull_request_target:
types:
- closed
- labeled

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v3
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run backport
uses: ./actions/backport
with:
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
labelsToAdd: "backport"
title: "[{{base}}] {{originalTitle}}"

0 comments on commit 6d38b69

Please sign in to comment.