diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 79a2bba..3112716 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,8 +7,6 @@ updates: interval: "weekly" labels: - "dependencies" - commit-message: - prefix: "build(deps)" # Maintain GitHub Actions in your workflows - package-ecosystem: "github-actions" @@ -18,5 +16,3 @@ updates: labels: - "dependencies" - "ci" - commit-message: - prefix: "ci(github-actions)" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16620a6..6acf35f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,43 +1,42 @@ name: Release on: - push: - tags: - - "v*" + push: + tags: + - "v*" permissions: - contents: write + contents: write jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - with: - fetch-depth: 0 + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version: "1.25" + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: "1.25" - - name: Generate Release Notes - uses: orhun/git-cliff-action@v4 - with: - config: cliff.toml - args: --latest --strip header - env: - OUTPUT: ${{ runner.temp }}/release-notes.md - GITHUB_REPO: ${{ github.repository }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Generate Release Notes + uses: orhun/git-cliff-action@v4 + with: + config: cliff.toml + args: --latest --strip header --github-repo ${{ github.repository }} + env: + OUTPUT: ${{ runner.temp }}/release-notes.md + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v7 - with: - distribution: goreleaser - version: "~> v2" - args: release --clean --release-notes=${{ runner.temp }}/release-notes.md - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v7 + with: + distribution: goreleaser + version: "~> v2" + args: release --clean --release-notes=${{ runner.temp }}/release-notes.md + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} diff --git a/cliff.toml b/cliff.toml index 3748d39..ba5026e 100644 --- a/cliff.toml +++ b/cliff.toml @@ -1,3 +1,7 @@ +[remote.github] +owner = "DylanDevelops" +repo = "tmpo" + [changelog] body = """ ## What's Changed @@ -6,13 +10,13 @@ body = """ ### {{ group | striptags | trim }} {% for commit in commits -%} {% set commit_title = commit.message | split(pat="\\n") | first -%} -{% if commit.remote.pr_number -%} - {% set pr_str = " (#" ~ commit.remote.pr_number ~ ")" -%} +{% if commit.github.pr_number -%} + {% set pr_str = " (#" ~ commit.github.pr_number ~ ")" -%} {% set commit_title = commit_title | replace(from=pr_str, to="") -%} {% endif -%} - {% if commit.breaking %}[breaking] {% endif %}{{ commit_title | upper_first }}\ -{% if commit.remote.username %} by @{{ commit.remote.username }}{% endif %}\ -{% if commit.remote.pr_number %} in [#{{ commit.remote.pr_number }}](https://github.com/DylanDevelops/tmpo/pull/{{ commit.remote.pr_number }}){% endif %} +{% if commit.github.username %} by @{{ commit.github.username }}{% endif %}\ +{% if commit.github.pr_number %} in [#{{ commit.github.pr_number }}](https://github.com/DylanDevelops/tmpo/pull/{{ commit.github.pr_number }}){% endif %} {% endfor %} {% endfor %} @@ -24,7 +28,6 @@ body = """ {% endfor %} {% endif %} - {% if previous.version %} **Full Changelog**: https://github.com/DylanDevelops/tmpo/compare/{{ previous.version }}...{{ version }} {% else %} @@ -38,12 +41,12 @@ conventional_commits = true filter_unconventional = true filter_commits = true commit_parsers = [ - { message = "^feat", group = "โœจ Features" }, - { message = "^fix", group = "๐Ÿ› Bug Fixes" }, - { message = "^perf", group = "๐Ÿš€ Performance Improvements" }, - { message = "^refactor", group = "๐Ÿ› ๏ธ Refactoring" }, - { message = "^docs?", group = "๐Ÿ“š Documentation" }, - { message = "^(build|ci)", group = "๐Ÿ”ง Build & Dependencies" }, - { message = "^chore", group = "๐Ÿงน Maintenance" }, - { message = "^Merge ", skip = true }, + { message = "^feat", group = "โœจ Features" }, + { message = "^fix", group = "๐Ÿ› Bug Fixes" }, + { message = "^perf", group = "๐Ÿš€ Performance Improvements" }, + { message = "^refactor", group = "๐Ÿ› ๏ธ Refactoring" }, + { message = "^docs?", group = "๐Ÿ“š Documentation" }, + { message = "^(build|ci)", group = "๐Ÿ”ง Build & Dependencies" }, + { message = "^chore", group = "๐Ÿงน Maintenance" }, + { message = "^Merge ", skip = true }, ] \ No newline at end of file