Replies: 5 comments 11 replies
-
Hey! Sure, that sounds reasonable. What kind of a commit/PR do you have in mind for adding there? |
Beta Was this translation helpful? Give feedback.
-
Hey @orhun , thanks! For the commit/PR examples, I think it would be great to include at least the four basic combinations:
Also, it would be ideal if the examples align with the commit parsers shown in the git-cliff docs. Specifically, I’d love to see examples that reflect all of the label patterns demonstrated in this snippet:
So ideally, we’d have at least one example PR title for each of the following labels:
|
Beta Was this translation helpful? Give feedback.
-
Hi @orhun, Regarding the commit/PR history, I propose this one. The goal is to validate the following configuration:
The expected output from
The structure of PRs and the associated commits: PR #5: Initial featuresIncluded Commits:
Labels:
PR #4: Bugfix and choreIncluded Commits:
Labels:
PR #3: Refactor and breaking changesIncluded Commits:
Labels:
PR #2: Documentation updatesIncluded Commits:
Labels:
PR #1: Initial commitIncluded Commits:
Labels:
All PRs in this test repository are merged using "Rebase and merge" to keep a linear history and ensure clean commit separation. |
Beta Was this translation helpful? Give feedback.
-
Hey @orhun, I created this repository for testing a commit parser assuming PR-based development: https://github.com/ognis1205/git-cliff-readme-example-pull-requests I tested using it and noticed one thing. In this repository, I used "rebase and merge" for merging PRs (to keep a linear commit history). In that case, the logic implemented in this line: git-cliff/git-cliff-core/src/remote/mod.rs Line 353 in dc458ea works well for squash merges and similar, but with rebase merges, the PR information is only associated with the last commit in the PR — not with all the commits included in the PR. Is this the intended behavior? Or do you think this might require a feature enhancement? |
Beta Was this translation helpful? Give feedback.
-
Hey @orhun , I've created two repositories: one links multiple commits to a single PR, and the other links one commit per PR:
I've submitted transfer requests for both, so please check them when you have time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
To help test features like the one introduced in orhun/git-cliff#1163 more smoothly, I’d like to propose adding a few PRs with various labels to the git-cliff-readme-example repository.
This could serve as a sandbox for validating label-based changelog generation and help contributors understand how different labels affect the output.
Would it be okay to start adding some example PRs to that repository for this purpose?
Happy to coordinate if needed!
Thanks 🙌
Beta Was this translation helpful? Give feedback.
All reactions