From fca1819fa420779cf4adcfe0d2e865e175cc3840 Mon Sep 17 00:00:00 2001 From: Matthew Warman Date: Sun, 6 Oct 2024 22:32:32 +0100 Subject: [PATCH] test: update bitbucket fixture to include pr test --- .github/fixtures/test-bitbucket-integration/cliff.toml | 8 ++++++-- .github/fixtures/test-bitbucket-integration/commit.sh | 2 +- .github/fixtures/test-bitbucket-integration/expected.md | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/fixtures/test-bitbucket-integration/cliff.toml b/.github/fixtures/test-bitbucket-integration/cliff.toml index 9ad05d1aff..9e9690ad05 100644 --- a/.github/fixtures/test-bitbucket-integration/cliff.toml +++ b/.github/fixtures/test-bitbucket-integration/cliff.toml @@ -1,11 +1,15 @@ [remote.bitbucket] -owner = "orhunp" +owner = "mcwarman-playground" repo = "git-cliff-readme-example" [changelog] # template for the changelog body # https://keats.github.io/tera/docs/#introduction body = """ +{%- macro remote_url() -%} + https://bitbucket.org/{{ remote.bitbucket.owner }}/{{ remote.bitbucket.repo }} +{%- endmacro -%} + ## What's Changed {%- if version %} in {{ version }}{%- endif -%} {% for commit in commits %} @@ -21,7 +25,7 @@ body = """ {% for contributor in bitbucket.contributors | filter(attribute="is_first_time", value=true) %} * @{{ contributor.username }} made their first contribution {%- if contributor.pr_number %} in \ - [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull-requests/{{ contributor.pr_number }}) \ {%- endif %} {%- endfor -%} {% raw %}\n\n{% endraw -%} diff --git a/.github/fixtures/test-bitbucket-integration/commit.sh b/.github/fixtures/test-bitbucket-integration/commit.sh index 5bb810071b..7bed941a15 100755 --- a/.github/fixtures/test-bitbucket-integration/commit.sh +++ b/.github/fixtures/test-bitbucket-integration/commit.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -e -git remote add origin https://bitbucket.org/orhunp/git-cliff-readme-example +git remote add origin https://bitbucket.org/mcwarman-playground/git-cliff-readme-example git pull origin master git fetch --tags diff --git a/.github/fixtures/test-bitbucket-integration/expected.md b/.github/fixtures/test-bitbucket-integration/expected.md index 0c72638ad1..219e015a51 100644 --- a/.github/fixtures/test-bitbucket-integration/expected.md +++ b/.github/fixtures/test-bitbucket-integration/expected.md @@ -1,6 +1,7 @@ ## What's Changed * feat(config): support multiple file formats by @orhun * feat(cache): use cache while fetching pages by @orhun +* feat(ci): add pipeline config by @mcwarman <7236500+mcwarman@users.noreply.github.com> in #1 ## What's Changed in v1.0.1 * refactor(parser): expose string functions by @orhun