diff --git a/.github/workflows/bump-spring.yml b/.github/workflows/bump-spring.yml index ea0ab68..cbd1368 100644 --- a/.github/workflows/bump-spring.yml +++ b/.github/workflows/bump-spring.yml @@ -43,22 +43,8 @@ jobs: with: version: ${{ needs.latest-version.outputs.spring-boot }} compare-to: ${{ needs.current-version.outputs.spring-boot }} - # 依 Spring Boot 升級幅度決定 PR 的 conventional commit 類型: 中版號 (或主版號) 升級用 feat, 僅升小版號用 fix - - name: Resolve commit type - id: commit-type - env: - CURRENT: ${{ needs.current-version.outputs.spring-boot }} - LATEST: ${{ needs.latest-version.outputs.spring-boot }} - run: | - # 去掉修訂號, 只比 major.minor - if [ "${CURRENT%.*}" = "${LATEST%.*}" ]; then - echo "type=fix" >> "$GITHUB_OUTPUT" - else - echo "type=feat" >> "$GITHUB_OUTPUT" - fi outputs: comparison-result: ${{ steps.semver-compare.outputs.comparison-result }} - commit-type: ${{ steps.commit-type.outputs.type }} bump-spring: runs-on: ubuntu-latest @@ -90,8 +76,8 @@ jobs: uses: peter-evans/create-pull-request@v8 with: token: ${{ steps.app-token.outputs.token }} - commit-message: "${{ needs.compare-version.outputs.commit-type }}: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}" - title: "${{ needs.compare-version.outputs.commit-type }}: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}" + commit-message: "chore: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}" + title: "chore: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}" committer: bot 👾 author: bot 👾 body: >- diff --git a/.release-please-config.json b/.release-please-config.json index db99449..e68bc89 100644 --- a/.release-please-config.json +++ b/.release-please-config.json @@ -7,7 +7,20 @@ "changelog-path": "CHANGELOG.md", "include-v-in-tag": false, "include-component-in-tag": false, - "skip-snapshot": true + "skip-snapshot": true, + "changelog-sections": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "perf", "section": "Performance Improvements"}, + {"type": "revert", "section": "Reverts"}, + {"type": "chore", "section": "Miscellaneous Chores"}, + {"type": "refactor", "section": "Code Refactoring"}, + {"type": "docs", "section": "Documentation", "hidden": true}, + {"type": "style", "section": "Styles", "hidden": true}, + {"type": "test", "section": "Tests", "hidden": true}, + {"type": "build", "section": "Build System", "hidden": true}, + {"type": "ci", "section": "Continuous Integration", "hidden": true} + ] } } }