From 10b6cba91930397ea84469e778a793a6e397d7fa Mon Sep 17 00:00:00 2001 From: kannoixia Date: Wed, 11 Dec 2024 19:16:24 +0900 Subject: [PATCH 01/13] feat: add auto release feature --- .github/release-drafter.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/release.yml | 19 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..0b9d9bcb --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,28 @@ +name-template: 'Release $RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' + +categories: + - title: 📖 Translated Documents + labels: + - konjacbot + +change-template: '- $TITLE (#$NUMBER)' +change-title-escapes: '\<*_&' +no-changes-template: '- No changes listed' + +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch + +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..27a6fb81 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release Workflow +on: + pull_request: + types: + - closed +jobs: + release: + if: > + github.event.pull_request.merged == true && + contains(github.event.pull_request.title, 'konjacbot') + name: Create Release note + runs-on: ubuntu-latest + steps: + - name: Run Release Drafter + uses: release-drafter/release-drafter@v5 + with: + config-name: .github/release-drafter.yml + publish: false + commitish: main From 10fbc9b0d49d7a726c89b51475942b7a5dce4ba8 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Wed, 11 Dec 2024 19:17:20 +0900 Subject: [PATCH 02/13] feat: add auto release feature --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27a6fb81..c8a8c514 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,3 +17,5 @@ jobs: config-name: .github/release-drafter.yml publish: false commitish: main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 3b4f3198596fdb894a8af798071ec8f2c30e4668 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Wed, 11 Dec 2024 19:28:03 +0900 Subject: [PATCH 03/13] feat: add auto release feature --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8a8c514..35089859 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ on: pull_request: types: - closed + workflow_dispatch: jobs: release: if: > From 8377256bc1bc6ad112f7ec8e98defd6192e30099 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Wed, 11 Dec 2024 19:34:02 +0900 Subject: [PATCH 04/13] feat: create release note test --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35089859..fcb5b4d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,14 @@ name: Release Workflow on: - pull_request: - types: - - closed + # pull_request: + # types: + # - closed workflow_dispatch: jobs: release: - if: > - github.event.pull_request.merged == true && - contains(github.event.pull_request.title, 'konjacbot') + # if: > + # github.event.pull_request.merged == true && + # contains(github.event.pull_request.title, 'konjacbot') name: Create Release note runs-on: ubuntu-latest steps: From 2ad379a631e8face84ebbc2be8e1cbae9f445f63 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Wed, 11 Dec 2024 19:38:58 +0900 Subject: [PATCH 05/13] =?UTF-8?q?feat:=20=E6=88=BB=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcb5b4d1..35089859 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,14 @@ name: Release Workflow on: - # pull_request: - # types: - # - closed + pull_request: + types: + - closed workflow_dispatch: jobs: release: - # if: > - # github.event.pull_request.merged == true && - # contains(github.event.pull_request.title, 'konjacbot') + if: > + github.event.pull_request.merged == true && + contains(github.event.pull_request.title, 'konjacbot') name: Create Release note runs-on: ubuntu-latest steps: From 92ed3bf11d07437ff5921904ec613c53cef1355f Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:12:07 +0900 Subject: [PATCH 06/13] fix: change name of actions name --- .github/workflows/{release.yml => release-note.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{release.yml => release-note.yml} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release-note.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/release-note.yml From 091bb888fd54d3ff603e0b37bfd438c34f5d78bf Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:18:42 +0900 Subject: [PATCH 07/13] fix: change name of actions name --- .github/workflows/release-note.yml | 2 +- .github/workflows/test-workflow.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-workflow.yml diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 35089859..92343439 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -1,4 +1,4 @@ -name: Release Workflow +name: Create Release Note Workflow on: pull_request: types: diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml new file mode 100644 index 00000000..05f5a32b --- /dev/null +++ b/.github/workflows/test-workflow.yml @@ -0,0 +1,22 @@ +name: Test Workflow +on: + schedule: + - cron: '30 1 * * *' + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 30 + days-before-issue-close: 14 + stale-issue-label: 'stale' + stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.' + close-issue-message: 'This issue was closed because it has been inactive for 14 days since being marked as stale.' + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }} From ee6aec2881fad0246a0338ff0a641d4868569833 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:30:58 +0900 Subject: [PATCH 08/13] fix: change with test actions --- .github/workflows/release-note.yml | 13 ++++++++----- .github/workflows/test-workflow.yml | 22 ---------------------- 2 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/test-workflow.yml diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 92343439..8734596d 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -1,9 +1,12 @@ name: Create Release Note Workflow on: - pull_request: - types: - - closed - workflow_dispatch: + on: + pull_request: + branches: + - feature/#264-add-release-feature # マージ先ブランチを feature に限定 + types: + - closed + workflow_dispatch: # 手動実行用トリガー jobs: release: if: > @@ -17,6 +20,6 @@ jobs: with: config-name: .github/release-drafter.yml publish: false - commitish: main + commitish: feature/#264-add-release-feature env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml deleted file mode 100644 index 05f5a32b..00000000 --- a/.github/workflows/test-workflow.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Test Workflow -on: - schedule: - - cron: '30 1 * * *' - -jobs: - close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v5 - with: - days-before-issue-stale: 30 - days-before-issue-close: 14 - stale-issue-label: 'stale' - stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.' - close-issue-message: 'This issue was closed because it has been inactive for 14 days since being marked as stale.' - days-before-pr-stale: -1 - days-before-pr-close: -1 - repo-token: ${{ secrets.GITHUB_TOKEN }} From 2892a1de4045a8e31ca005dcff85e1a2285208f3 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:33:12 +0900 Subject: [PATCH 09/13] fix: some error --- .github/workflows/release-note.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 8734596d..f5394602 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -1,12 +1,11 @@ name: Create Release Note Workflow on: - on: - pull_request: - branches: - - feature/#264-add-release-feature # マージ先ブランチを feature に限定 - types: - - closed - workflow_dispatch: # 手動実行用トリガー + pull_request: + branches: + - feature/#264-add-release-feature # マージ先ブランチを feature に限定 + types: + - closed + workflow_dispatch: # 手動実行用トリガー jobs: release: if: > From 8768074c80cdb3ec105eb4dd182a848e5dd89727 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:38:45 +0900 Subject: [PATCH 10/13] feat: test actions --- .github/workflows/release-note.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index f5394602..1e51fee1 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -1,4 +1,9 @@ name: Create Release Note Workflow +# on: +# pull_request: +# types: +# - closed +# workflow_dispatch: on: pull_request: branches: From 2d1aa4b968a8d9936a623b663efe49479c440a6e Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:46:47 +0900 Subject: [PATCH 11/13] feat: test actions --- .github/workflows/release-note.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 1e51fee1..322b0dd8 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -24,6 +24,6 @@ jobs: with: config-name: .github/release-drafter.yml publish: false - commitish: feature/#264-add-release-feature + commitish: main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c8409ca2f0cf368c36f44e4ff36b1522cc71296d Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:55:55 +0900 Subject: [PATCH 12/13] feat: test actions --- .github/workflows/release-note.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 322b0dd8..4e42af80 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -7,10 +7,10 @@ name: Create Release Note Workflow on: pull_request: branches: - - feature/#264-add-release-feature # マージ先ブランチを feature に限定 + - feature/#264-add-release-feature types: - closed - workflow_dispatch: # 手動実行用トリガー + workflow_dispatch: jobs: release: if: > From dbe8f6d1ab8781058719b9b6f4345f871da8a1c5 Mon Sep 17 00:00:00 2001 From: kannoixia Date: Tue, 14 Jan 2025 16:59:15 +0900 Subject: [PATCH 13/13] feat: test actions --- .github/workflows/release-note.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 4e42af80..2f71131d 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -22,7 +22,7 @@ jobs: - name: Run Release Drafter uses: release-drafter/release-drafter@v5 with: - config-name: .github/release-drafter.yml + config-name: release-drafter.yml publish: false commitish: main env: