1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-25 12:52:49 +03:00
git-cliff/.github/fixtures
Paul Iyobo 6d86e2c942
feat(config): allow overriding the remote API URL via config (#896)
* Added api_url configuration to RemoteConfig

* Added api_url remote config parameter to the documentation

* Fmt

* Readded use statement erroneously removed

* chore: bring back https in gitlab link

* docs(website): add missing dot to remote docs

* refactor(remote): clean up constant handling

* fix: fix the behavior and add fixture test

* docs: add example of api_url

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-11-19 20:12:52 +03:00
..
new-fixture-template feat(changelog): make changelog.header a template (#698) 2024-06-17 20:43:00 +03:00
test-always-render docs(website): add highlights for 2.6.0 (#873) 2024-09-22 09:08:44 +03:00
test-always-render-unreleased feat(config): add changelog.render_always option (#859) 2024-09-21 21:06:27 +03:00
test-bitbucket-integration fix(remote): preserve first time contributors (#925) 2024-10-21 23:49:46 +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-conventional-commit fix(changelog): fix missing commit fields in context (#837) (#920) 2024-10-17 10:56:41 +03:00
test-custom-remote-api-url feat(config): allow overriding the remote API URL via config (#896) 2024-11-19 20:12:52 +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-from-context-does-not-discard-fields fix(changelog): fix missing commit fields in context (#837) (#920) 2024-10-17 10:56:41 +03:00
test-gitea-integration fix(remote): preserve first time contributors (#925) 2024-10-21 23:49:46 +03:00
test-github-integration fix(remote): preserve first time contributors (#925) 2024-10-21 23:49:46 +03:00
test-gitlab-integration fix(remote): preserve first time contributors (#925) 2024-10-21 23:49:46 +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 fix(changelog): include the root commit when --latest is used with one tag (#901) 2024-10-05 12:43:59 +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
test-unchanged-tag-date fix(changelog): do not change the tag date if tag already exists (#861) 2024-09-21 20:47:03 +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(remote): preserve first time contributors (#925) 2024-10-21 23:49:46 +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