-
Notifications
You must be signed in to change notification settings - Fork 87
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
git: Add support for adding tag info to commit #597
Conversation
01f1d62
to
320e110
Compare
Is this part of fluxcd/source-controller#1133? if so please add it to the PR description. |
320e110
to
7aaad57
Compare
721ba7d
to
0830185
Compare
0830185
to
432ebdc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you @aryan9600 🙇
432ebdc
to
75e7516
Compare
wondering whether we should also add support for verifying tags if the name provided to |
If we can automagically resolve this, it would probably be good for feature completeness. |
c35892e
to
6125c92
Compare
b79297f
to
c38eab8
Compare
fbb668e
to
8fe69f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @aryan9600 🏅
Add a new struct `AnnotatedTag` that represents a Git annotated tag and add it as a new field `Commit.ReferencingTag`, allowing for a commit to contain information about its referencing tag. Add support for verifying referecning tag as well. Signed-off-by: Sanskar Jaiswal <[email protected]>
Signed-off-by: Sanskar Jaiswal <[email protected]>
Signed-off-by: Sanskar Jaiswal <[email protected]>
Signed-off-by: Sanskar Jaiswal <[email protected]>
Add support for lightweight tags by checking the presence of a tag reference and a tag object. Modify the cloning logic to always attach a tag object to a commit object if checking out via a tag. Signed-off-by: Sanskar Jaiswal <[email protected]>
8fe69f8
to
0f40956
Compare
Failing BitBucket Server test is due to TLS issues on the upstream server and not related to these changes. |
Add a new struct
Tag
that represents a Git annotated tag and add it as a new fieldCommit.ReferencingTag
, allowing for a commit to contain information about its referencing tag. Add support for verifying the referencing tag as well.Update the cloning logic to include the tag object in the returned commit object when checking out via a specific tag, a semver range or if the provided refname points to a tag.
Related to: fluxcd/source-controller#1133
Example usage: fluxcd/source-controller#1187