Skip to content

Commit

Permalink
test: update bitbucket fixture to include pr test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwarman committed Oct 6, 2024
1 parent 22db698 commit fca1819
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/fixtures/test-bitbucket-integration/cliff.toml
Original file line number Diff line number Diff line change
@@ -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 %}
Expand All @@ -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 -%}
Expand Down
2 changes: 1 addition & 1 deletion .github/fixtures/test-bitbucket-integration/commit.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/fixtures/test-bitbucket-integration/expected.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## What's Changed
* feat(config): support multiple file formats by @orhun <[email protected]>
* feat(cache): use cache while fetching pages by @orhun <[email protected]>
* feat(ci): add pipeline config by @mcwarman <[email protected]> in #1

## What's Changed in v1.0.1
* refactor(parser): expose string functions by @orhun <[email protected]>
Expand Down

0 comments on commit fca1819

Please sign in to comment.