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

Migrate to GitHubs v4 API #29

Merged
merged 2 commits into from
Apr 26, 2022
Merged

Migrate to GitHubs v4 API #29

merged 2 commits into from
Apr 26, 2022

Conversation

chelnak
Copy link
Owner

@chelnak chelnak commented Apr 26, 2022

Prior to this PR the new command made some assumptions about how tags worked.

Annotated tags contain a tagger reference which has a pointer to when the tag was created and also the commit that the tag points to.

Lightweight tags are just a pointer to a commit and therefore contain no tagger information.

The assumption that lightweight tags also contained the tagger reference meant that entries were not being added to the correct bucket.

This PR fixes that (hopefully) by using the v4 api to retrieve a list of tag refs that are either lightweight or annotated. This allows us to access the correct date depending on the type of ref that is returned.

@chelnak chelnak self-assigned this Apr 26, 2022
chelnak added 2 commits April 26, 2022 20:59
Prior to this commit the new command made some assumptions about how
tags worked.

Annotated tags contain a tagger reference which has a pointer to when
the tag was created and also the commit that the tag points to.

Lightweight tags are just a pointer to a commit and therefore contain
no tagger information.

The assumption that lightweight tags also contained the tagger reference
meant that entries were not being added to the correct bucket.

This commit fixes that (hopefully) by using the v4 api to retrieve a
list of tag refs that are either lightweight or annotated. This allows
us to access the correct date depending on the type of ref that is
returned.
@chelnak chelnak merged commit d2d39ba into main Apr 26, 2022
@chelnak chelnak deleted the graphql branch April 26, 2022 20:01
@chelnak chelnak added the enhancement New feature or request label May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant