Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New empty branch appears to report #30

Open
dmitryuk opened this issue Jun 25, 2021 · 1 comment
Open

New empty branch appears to report #30

dmitryuk opened this issue Jun 25, 2021 · 1 comment

Comments

@dmitryuk
Copy link
Contributor

Hello. I found a bug, that new empty not-merged-master branch appears in the changelog report
Steps to reproduce

git init
git checkout -b master
# commit 2 files to master
touch file1.txt file2.txt
git add file1.txt && git commit -m "test_file_1"
git add file2.txt && git commit -m "test_file_2"
# checkout new branch
git checkout -b KEY-5890
# Take difference between first commit to master and master branch
jira-changelog --range $(git show :/test_file_1 --format='format:%H' | head -n 1)...master

Result

Jira Tickets
---------------------
  * <Technical> - TITLE HERE
    [KEY-5890] LINK_HERE
@mrmeyers99
Copy link

mrmeyers99 commented Mar 12, 2024

This appears to happen because by default git log shows the tags and branches at each commit. If jira-changelog customized the git log format or if we could customize the --format parameter to remove the tags and branches, that would fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants