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

fix: compute ref and ref_name prioritising HEAD pointer if tag is not set #2061

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

GROwen
Copy link

@GROwen GROwen commented Oct 23, 2023

Fixes #2056

refBranch = r.Name().String()
}
}
// The assumption is made that if the revision has a tag associated with it the ref and ref_name should reference it.
Copy link
Author

@GROwen GROwen Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not confident of what workflow triggers require the ref and ref_name to be set to the refs/tags prefix and therefore uncertain if this assumption is accurate or even desired.

I’m thinking this is relevant to working with the release workflow trigger?

Either way I’m not looking to change the current behaviour but just fix the value when multiple branches point to the same commit.

@GROwen GROwen marked this pull request as ready for review October 23, 2023 23:47
@GROwen GROwen requested a review from a team as a code owner October 23, 2023 23:47
Copy link

codecov bot commented Nov 12, 2023

Codecov Report

Attention: Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.

Project coverage is 61.22%. Comparing base (4989f44) to head (7a878b3).
Report is 434 commits behind head on master.

Files with missing lines Patch % Lines
pkg/common/git/git.go 83.33% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2061      +/-   ##
==========================================
- Coverage   61.22%   61.22%   -0.01%     
==========================================
  Files          46       53       +7     
  Lines        7141     8755    +1614     
==========================================
+ Hits         4372     5360     +988     
- Misses       2462     2970     +508     
- Partials      307      425     +118     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

mergify bot commented Apr 22, 2024

@GROwen this pull request is now in conflict 😩

@mergify mergify bot added the conflict PR has conflicts label Apr 22, 2024
Copy link
Contributor

PR is stale and will be closed in 14 days unless there is new activity

@github-actions github-actions bot added the stale label Oct 20, 2024
@GROwen
Copy link
Author

GROwen commented Oct 30, 2024

The change that this PR is conflicting with could resolve the issue. The change introduced in https://github.com/nektos/act/pull/1530/files needs to be tested against the scenario that was raised in #2056 before I can continue work on this PR.

@github-actions github-actions bot removed the stale label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict PR has conflicts size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github.ref_name is not set to the branch/tag that HEAD points to.
1 participant