From 166295824992e9c860040cc3f40ba96d3b178f5a Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Fri, 25 Aug 2023 13:09:28 +0900 Subject: [PATCH] Add line-openapi-update label if line-openapi is updated (#509) * NO-ISSUE Add line-openapi-update label if line-openapi is updated * NO-ISSUE Add label for renovate --- .github/release.yml | 24 ++++++++++++++++++++++++ .github/workflows/bump-minor-version.yml | 2 +- renovate.json | 9 ++++++++- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..fe1b7dc87 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,24 @@ +# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes +changelog: + categories: + - title: Breaking Changes + labels: + - breaking-change + - title: line-openapi updates + labels: + - line-openapi-update + - title: New Features + labels: + - new-features + - title: Bug fix + labels: + - bug-fix + - title: Dependency updates + labels: + - dependency upgrade + exclude: + labels: + - line-openapi-update + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/bump-minor-version.yml b/.github/workflows/bump-minor-version.yml index ab7c8132d..bd5a79e6a 100644 --- a/.github/workflows/bump-minor-version.yml +++ b/.github/workflows/bump-minor-version.yml @@ -33,6 +33,6 @@ jobs: git commit -m "Bump version to $VERSION" git push origin bump-version-to-$VERSION - gh pr create -B ${{ github.ref_name }} --title "Bump version to $VERSION" --body "" --label "auto-generated-code" + gh pr create -B ${{ github.ref_name }} --title "Bump version to $VERSION" --body "" --label "line-openapi-update" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/renovate.json b/renovate.json index b9fb375d5..7dac1bf1a 100644 --- a/renovate.json +++ b/renovate.json @@ -7,5 +7,12 @@ "platformAutomerge": true, "git-submodules": { "enabled": true - } + }, + "labels": [ "dependency upgrade" ], + "packageRules": [ + { + "matchPackagePatterns": ["^line-openapi$"], + "labels": ["dependency upgrade", "line-openapi-update"] + } + ] }