1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 13:32:20 +03:00
git-cliff/.github/fixtures
Marco Ieni 87e2c1d0dd
feat(core): add remote to commit and deprecate fields (#822)
* feat(core): add `remote` field to commit

* refactor

* fmt

* deprecate old fields

* serialize remote field

* fix

* fix typo

* allow deprecated

* move warn

* move filename

* docs

* docs

* fix

* fmt

* chore(fixtures): use remote instead of platform name for template variables

* remove useless method

* update docs

* use contains_variable

* fix no-default-features

* chore(remote): update template varibles for platforms

* set commit.remote

* chore(release): update unit tests for new remote field

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-15 20:28:56 +03:00
..
new-fixture-template feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-bitbucket-integration feat(core): add remote to commit and deprecate fields (#822) 2024-09-15 20:28:56 +03:00
test-bump-initial-tag feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-bump-initial-tag-cli-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-bump-initial-tag-default feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-bump-unreleased-with-tag-message-arg feat(changelog): add tag message to release context (#713) 2024-06-22 13:29:49 +03:00
test-bump-version feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-bump-version-custom-minor feat(bump): support bumping based on configurable custom pattern (#725) 2024-06-21 23:38:52 +03:00
test-bump-version-keep-zerover feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-bump-version-major feat(bump): support bumping to a specific semver type (#744) 2024-07-31 08:48:03 +03:00
test-bump-version-minor feat(bump): support bumping to a specific semver type (#744) 2024-07-31 08:48:03 +03:00
test-bump-version-patch feat(bump): support bumping to a specific semver type (#744) 2024-07-31 08:48:03 +03:00
test-bumped-version feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-cli-arg-ignore-tags feat(args): add --ignore-tags argument (#696) 2024-06-17 20:47:14 +03:00
test-commit-footers feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-commit-preprocessors feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-configure-from-cargo-toml feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-custom-scope feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-custom-tag-pattern feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-date-order feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-footer-filter feat(changelog): support parsing commits by footer (#569) 2024-06-16 19:32:39 +03:00
test-footer-template feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-from-context feat(cli): generate changelog from JSON context (#784) 2024-08-23 15:39:27 +03:00
test-gitea-integration feat(core): add remote to commit and deprecate fields (#822) 2024-09-15 20:28:56 +03:00
test-github-integration feat(core): add remote to commit and deprecate fields (#822) 2024-09-15 20:28:56 +03:00
test-gitlab-integration feat(core): add remote to commit and deprecate fields (#822) 2024-09-15 20:28:56 +03:00
test-header-template feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-ignore-tags feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-invert-ignore-tags feat(changelog): support count_tags option (#599) 2024-08-13 12:22:54 +03:00
test-keep-a-changelog-links feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-current-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-latest-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-no-tags feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-one-tag feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-one-tag-bump-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-tag-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-keep-a-changelog-links-unreleased-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-latest-with-one-tag feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-limit-commits feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-no-exec feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-regex-label-grouping feat(parser): allow whole commit context to be used in commit parsers (#758) 2024-08-08 22:30:36 +03:00
test-regex-replace-parser feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-skip-breaking-changes feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-skip-commits feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-split-commits feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-tag-message feat(changelog): add tag message to release context (#713) 2024-06-22 13:29:49 +03:00
test-topo-order feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-topo-order-arg feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
README.md docs(fixtures): add instructions for adding new fixtures 2023-12-06 21:25:17 +03:00
test-fixtures-locally.sh fix(fixture): support running fixtures on mingw64 (#708) 2024-06-15 21:47:41 +03:00

Fixtures

Test fixtures are a way of testing the git-cliff's functionality against a configuration file (cliff.toml) and asserting the output (expected.md).

They are being run as a part of the GitHub Actions and the workflow file can be viewed here.

Adding new fixtures

  1. Copy the new-fixture-template as test-<functionality>.
  2. Update the files accordingly to the function that is being tested.
  3. Run the fixture locally. (see below)
  4. Add the fixture to test-fixtures.yml matrix.
    • If you need to specify custom arguments to git-cliff for the fixture test, you can do it here with using command.
  5. Commit your changes.

See this commit as an example.

Running locally

To run the fixtures locally:

./test-fixtures-locally.sh <fixture_name>

See also