-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (31 loc) · 1.12 KB
/
auto-feature-pr.yml
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
33
34
35
name: Auto PR from develop branch to a feature branch
on:
pull_request:
types:
- closed
branches:
- develop
env:
TARGET_BRANCH: feature/ashrae-9012022 #define the target branch when in parallel developing a feature
jobs:
create-pr:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Create Pull Request to Feature Branch
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.AUTO_PAT }}
commit-message: Update feature branch
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
base: develop
branch: ${{ env.TARGET_BRANCH }}
title: "Auto PR: Sync develop -> ${{ env.TARGET_BRANCH }}"
body: "This PR is automatically created to sync the latest changes from develop branch"
labels: automated
assignees: weilixu
reviewers: weilixu
draft: false