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

Bug: Unable to retrieve commits history when using Squash and Merge on Pull requests #189

Open
yslam97 opened this issue Sep 11, 2023 · 0 comments

Comments

@yslam97
Copy link

yslam97 commented Sep 11, 2023

This is the action I used in my workflow file:

- name: Bump version and push tag
  id: tag_version
  uses: mathieudutour/[email protected]
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    default_bump: false
    create_annotated_tag: true

This is a sample PR commit that is squashed and merged from my dev branch into the main branch:

feat(api): add historical query (#40)
* feat(api): add historical query in api (#50)

Co-authored-by: =person_1 <[email protected]>

* fix(api): remove buggy api

* refractor(api): change data structure

* build: update query dashboard

---------

Co-authored-by: =person_1 <[email protected]>

* test: add new integration tests (#45)

The following integration tests are added:
1. test 1
2. test 2

The following changes are made:
1. Rename integration test test script name
2. Solve bugs in function A
3. Solve bugs in function B

* build(tests): add pytest in requirements.txt (#48)

* build: update dashboard (#49)

* fix(api):dashboard query -history features

* fix: test script

* refractor(api): change data structure of response

* fix: test script

* fix: api logic

* build: update dashboard

---------

Co-authored-by: =person_1 <[email protected]>

---------

Co-authored-by: person_1 <[email protected]>
Co-authored-by: =person_1 <[email protected]>
Co-authored-by: person_2 <[email protected]>

This is the logs I get from my workflow run:

2023-09-11T07:25:48.7952138Z ##[group]Run mathieudutour/[email protected]
2023-09-11T07:25:48.7952450Z with:
2023-09-11T07:25:48.7953107Z   github_token: ***
2023-09-11T07:25:48.7953351Z   default_bump: false
2023-09-11T07:25:48.7953600Z   create_annotated_tag: true
2023-09-11T07:25:48.7953869Z   default_prerelease_bump: prerelease
2023-09-11T07:25:48.7954130Z   tag_prefix: v
2023-09-11T07:25:48.7954372Z   release_branches: master,main
2023-09-11T07:25:48.7954611Z   fetch_all_tags: false
2023-09-11T07:25:48.7954834Z   dry_run: false
.......
2023-09-11T07:25:48.7958084Z ##[endgroup]
2023-09-11T07:25:49.2332088Z Previous tag was v0.0.0, previous version was 0.0.0.
2023-09-11T07:25:49.4388253Z Analysis of 0 commits complete: no release

So far I've squashed and merged two PR's from the dev branch to my main branch and both of the PR's do not create any tag or release.

I've checked my main branch commits history and there are more than 60 commits but the logs always shows Analysis of 0 commits complete: no release.

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

1 participant