Changelog PR to default branch and add label (#296)

* Changelog PR to default branch and add label
* CHANGELOG.md: add notes for #296 

Co-authored-by: Alexandre Boyer <nggalien@gmail.com>
Co-authored-by: Jakub Chrzanowski <jakub.chrzanowski@jetbrains.com>
This commit is contained in:
Alexandre Boyer
2022-09-19 12:12:57 +02:00
committed by GitHub
parent f345bcdb33
commit ba4a334414
2 changed files with 24 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ jobs:
run: |
VERSION="${{ github.event.release.tag_name }}"
BRANCH="changelog-update-$VERSION"
LABEL="release changelog"
git config user.email "action@github.com"
git config user.name "GitHub Action"
@@ -84,9 +85,13 @@ jobs:
git checkout -b $BRANCH
git commit -am "Changelog update - $VERSION"
git push --set-upstream origin $BRANCH
gh label create "$LABEL" \
--description "Pull requests with release changelog update" \
|| true
gh pr create \
--title "Changelog update - \`$VERSION\`" \
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
--base main \
--label "$LABEL" \
--head $BRANCH