From 3f86d6eb16da8eb5e1a34f04dcac2962449dbe20 Mon Sep 17 00:00:00 2001 From: Songmu Date: Sat, 17 Sep 2022 21:01:02 +0900 Subject: [PATCH 1/2] adjust label convention --- tagpr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagpr.go b/tagpr.go index b21738b..214a75f 100644 --- a/tagpr.go +++ b/tagpr.go @@ -263,9 +263,9 @@ func (tp *tagpr) Run(ctx context.Context) error { for _, issue := range prIssues { for _, l := range issue.Labels { switch l.GetName() { - case "tagpr:minor", "tagpr/minor", "minor": + case "minor": nextMinor = true - case "tagpr:major", "tagpr/major", "major": + case "major": nextMajor = true } } From 8d34cd98dc457138d2ea22af0133fe545e81b3d7 Mon Sep 17 00:00:00 2001 From: Songmu Date: Sat, 17 Sep 2022 21:03:00 +0900 Subject: [PATCH 2/2] fix workflow --- .github/workflows/tagpr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tagpr.yaml b/.github/workflows/tagpr.yaml index 4e44179..232f4a1 100644 --- a/.github/workflows/tagpr.yaml +++ b/.github/workflows/tagpr.yaml @@ -23,7 +23,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_PAT }} - uses: haya14busa/action-update-semver@v1 - if: "!steps.tagpr.outputs.tag != ''" + if: "steps.tagpr.outputs.tag != ''" with: tag: ${{ steps.tagpr.outputs.tag }} major_version_tag_only: true