From af333659f10f1ab65748c9ed117e2aed9f9dddf0 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:28:01 +0900 Subject: [PATCH 1/4] feat: sync labels --- .github/workflows/export-labels.yml | 43 +++++++++++++++++++++++++++++ .github/workflows/sync-labels.yml | 25 +++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/export-labels.yml create mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/workflows/export-labels.yml b/.github/workflows/export-labels.yml new file mode 100644 index 0000000..da644c0 --- /dev/null +++ b/.github/workflows/export-labels.yml @@ -0,0 +1,43 @@ +name: Export label + +on: + label: + types: [created, edited, deleted] + workflow_dispatch: + +permissions: + issues: read + contents: write + pull-requests: write + +jobs: + export_labels: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: EndBug/export-label-config@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + create_pull_request: + runs-on: ubuntu-latest + timeout-minutes: 5 + needs: + - export_labels + steps: + - uses: actions/checkout@v3 + with: + ref: main + - uses: actions/download-artifact@v3 + with: + name: Label config + - run: cp labels.yaml .github/labels.yaml + - uses: peter-evans/create-pull-request@v5 + with: + commit-message: Update labels + delete-branch: true + title: Update labels + committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + branch: create-pull-request/patch-export-label + add-paths: | + .github/labels.yaml diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000..7699439 --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -0,0 +1,25 @@ +name: Sync labels + +on: + push: + branches: + - main + paths: + - ".github/labels.yaml" + workflow_dispatch: + +permissions: + issues: write + contents: read + +jobs: + label_sync: + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - uses: actions/checkout@v3 + - uses: EndBug/label-sync@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config-file: .github/labels.yaml + delete-other-labels: true From b14ee8b007d996c210dcd57de1498b59f6a79b9b Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:28:56 +0900 Subject: [PATCH 2/4] feat: update release --- .github/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/release.yml b/.github/release.yml index f65ff95..71e7fa4 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -7,14 +7,23 @@ changelog: authors: - octocat categories: + - title: ":boom: Type: Breaking Change" + labels: + - "Type: Breaking Change" - title: ":bug: Type: Bug" labels: + - "Type: Bug" - "bug" + - title: ":house: Refactoring" + labels: + - "Type: Refactoring" - title: ":memo: Documentation" labels: + - "Type: Documentation" - "documentation" - title: ":rocket: Type: Feature" labels: + - "Type: Feature" - "enhancement" - title: Other Changes labels: From 371546c92044f7aa0108a0d4c347fabbcbc55fac Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:30:06 +0900 Subject: [PATCH 3/4] fix: build only push --- .github/workflows/secretlint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/secretlint.yml b/.github/workflows/secretlint.yml index c07306e..584cab2 100644 --- a/.github/workflows/secretlint.yml +++ b/.github/workflows/secretlint.yml @@ -1,12 +1,12 @@ name: Secretlint -on: [push, pull_request] +on: push permissions: contents: read jobs: test: name: "Secretlint" runs-on: ubuntu-latest - container: secretlint/secretlint:v8.0.0 + container: secretlint/secretlint:v8 steps: - name: checkout uses: actions/checkout@v4 From 30fda9530ec3a296168cf8973372f1bd2c0a3374 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:57:32 +0900 Subject: [PATCH 4/4] fix: pin version --- .github/workflows/secretlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secretlint.yml b/.github/workflows/secretlint.yml index 584cab2..de35d4a 100644 --- a/.github/workflows/secretlint.yml +++ b/.github/workflows/secretlint.yml @@ -6,7 +6,7 @@ jobs: test: name: "Secretlint" runs-on: ubuntu-latest - container: secretlint/secretlint:v8 + container: secretlint/secretlint:v8.1.0 steps: - name: checkout uses: actions/checkout@v4