Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Always seems to be missing one commit. #36

Closed
fredbradley opened this issue Feb 24, 2021 · 13 comments
Closed

Always seems to be missing one commit. #36

fredbradley opened this issue Feb 24, 2021 · 13 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fredbradley
Copy link

Hello I’ve been testing this today however it seems that each time it misses the first commit of the group.

Crude example can be found: https://github.com/fredbradley/actions-test/releases/tag/v0.3.1

but when you see the compare you see it’s three commits not two.

@fredbradley

This comment has been minimized.

@fregante fregante added bug Something isn't working help wanted Extra attention is needed labels Feb 24, 2021
@fregante
Copy link
Owner

I'm not sure of what's happening, the tests work correctly:

  • Real diff: v3.0.0...v3.1.0
  • - f9cec2b2 Add support for \`exclude: true\` (#23)
    - 8d79eb1a Meta: Add tests using jest (#22)
    - 71ec95ec Meta: update self workflow (#16)
    - a74ce6a1 Meta: Document how to add changelogs to old tags (#15)
    - bfe14281 Bump @actions/core from 1.2.4 to 1.2.6 (#19)
    - a6eb5131 Readme: make first example bare-bones (#18)
    - 850de175 Meta: Update readme example to v3

I wonder if the merge commit in your diff is throwing the count off somehow

@fredbradley
Copy link
Author

Perhaps... I’ll try some more testing today perhaps with a few more than just two commits.

@fregante
Copy link
Owner

fregante commented Feb 25, 2021

Something is definitely wrong. I just tried this command on this repo and it reports something unexpected:

❯ git log --format=%H¬%ad¬%s --date=short v3.1.0..v3.2.0
ef5326c2f6295cb5dc7b682c02832cb36c63409e¬2021-02-19¬Fix failing custom date format test
94ac12dd22dc363ac232ac8da1b79415e9a72faa¬2021-02-17¬Minor nits fix
171cd29b6480f2f5203073b5eca949bf87e38aa4¬2021-02-15¬Shorted dateFormat
fabe913b9573c3d66d71f2e06e7c16339697288b¬2021-02-15¬Improve dateFormat variable and add date test
ff7c0c0f44a3f20fccae845eb7c6bc3421c6df7c¬2021-02-15¬var –> const
695b2c127bb0b3ade1985f0a0b51901bce19eb7d¬2021-02-15¬Error fix
e504452f812061eb8232030cca45445f89b31389¬2021-02-15¬Improve code structure
a80b8794483d889f5b007a400100a819512f8b1c¬2021-02-15¬Fix bug, when longer or shorter date causing bad date, hash and title + revert formatting in `action.yml`
9512e689cebf30a861422b842454595b05cbf891¬2021-02-14¬Add `{date}` replacement  with options (#30)
6e89f5c9d6622f54ca284c06aa89fa7391cd86f7¬2021-02-04¬Update user in examples
5c804153ef8227047cf9bf373a704791aa3ee755¬2020-12-30¬Bump node-notifier from 8.0.0 to 8.0.1 (#26)
524027dd065f8486af7919212e355aa5523bebbd¬2020-12-30¬Bump ini from 1.3.5 to 1.3.8 (#24)
a170b2e671cf2763b5060b4e4747401181929635¬2020-10-23¬Fix minor typo in readme headings

This doesn't match GitHub’s diff, which only has 5 commits: v3.1.0...v3.2.0

cc @notlmn

fregante added a commit that referenced this issue Feb 25, 2021
@BelKed
Copy link
Contributor

BelKed commented Feb 25, 2021

When I clone this repository and run git log, it outputs just those commits:

git log --format=%H¬%ad¬%s --date=short v3.1.0..v3.2.0
f047902b085bbb7ffae3ecd36d73842b76355dad¬2021-02-22¬Add support for `{date}` replacement (#33)
6e89f5c9d6622f54ca284c06aa89fa7391cd86f7¬2021-02-04¬Update user in examples
5c804153ef8227047cf9bf373a704791aa3ee755¬2020-12-30¬Bump node-notifier from 8.0.0 to 8.0.1 (#26)
524027dd065f8486af7919212e355aa5523bebbd¬2020-12-30¬Bump ini from 1.3.5 to 1.3.8 (#24)
a170b2e671cf2763b5060b4e4747401181929635¬2020-10-23¬Fix minor typo in readme headings

@fredbradley
Copy link
Author

I get the same output as @BelKed.

@BelKed
Copy link
Contributor

BelKed commented Feb 25, 2021

Also, when I run git log on cloned fredbradley/actions-test, it outputs 3 instead 2 commits:

git log --format=%H¬%ad¬%s --date=short v0.3.0..v0.3.1
bb5441d8617c586d3a676e49b1113743210666a2¬2021-02-24¬chore(release): Automated version bumping to v0.3.1
4fcb30dcc5eab68717260ea49f216bd198e3337c¬2021-02-24¬Merge branch 'master' of github.com:fredbradley/actions-test
4cf6469146d04e314f59d516d73e8cded2e66150¬2021-02-24¬testing out something else

@fredbradley
Copy link
Author

Is it to do with the additional use of stefanzweifel/git-auto-commit-action@v4 in my action which always adds the chore(release) commit?

I've just added a v0.6.0 with many more commits, and no 'Merge' commit messages. But the changelog is still only show two commits.

@BelKed
Copy link
Contributor

BelKed commented Feb 25, 2021

Try running just fregante/release-with-changelog@v3 action, so we could say, that is caused by it...

@fredbradley
Copy link
Author

In https://github.com/fredbradley/actions-test/releases/tag/v0.7.0 I've removed the other @stefanzweifel action, and now the changelog shows all commits as expected.

So I guess I need to work out what it is with the other action that is suppressing it all. I've a feeling it's to do with the tag parameter.

@BelKed
Copy link
Contributor

BelKed commented Feb 25, 2021

I think, that is caused by creating a commit in action. You maybe have to fetch second time before creating a release to get all commits using actions/checkout@v2...

@fregante
Copy link
Owner

fregante commented Feb 25, 2021

Unfortunately the output of GitHub Actions matches mine. Check out the CI log of this failing commit: ff23290

@fregante

This comment has been minimized.

@fregante fregante mentioned this issue Mar 14, 2021
4 tasks
@fregante fregante closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants