-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automatically create pullrequests upon main changes
- Loading branch information
Pierre Delpy
committed
Aug 27, 2024
1 parent
b9f0bf7
commit c4999dd
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Backport to Feature Branch | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
backport: | ||
name: Backport PR | ||
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Backport Action | ||
uses: sorenlouv/backport-github-action@v9.5.1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
auto_backport_label_prefix: backport-to-feature/pilot-projects | ||
branches: 'feature/pilot-projects' | ||
#branches: 'feature/pilot-projects, another-branch' | ||
title: 'Automated Backport from main' | ||
labels: 'backport' | ||
body: 'This PR automatically backports changes from the main branch to this feature branch after a PR was merged into main.' | ||
reviewers : 'PierreDelpy' | ||
|
||
- name: Info log | ||
if: ${{ success() }} | ||
run: cat ~/.backport/backport.info.log | ||
|
||
- name: Debug log | ||
if: ${{ failure() }} | ||
run: cat ~/.backport/backport.debug.log |