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

Update to handle updated git references api #881

Open
bitwiseman opened this issue Jul 7, 2020 · 0 comments
Open

Update to handle updated git references api #881

bitwiseman opened this issue Jul 7, 2020 · 0 comments

Comments

@bitwiseman
Copy link
Member

Version 2.18 and older use this:
https://docs.github.com/en/enterprise/2.18/user/rest/reference/git#get-all-references

Version 2.19 and new use this:
https://docs.github.com/en/rest/reference/git#references

Specifically, getting references is now done using git/matching-refs instead of git/refs.

See #822, #842, #844, #845. Also see #852 for likely feature that needs to be added to make this safe.

That said 2.18 will be unsupported after August 2020. Perhaps the right behavior is to try default to the new API and have a switch to enable the old one.

@bitwiseman bitwiseman changed the title Update to handle current git references api Update to handle updated git references api Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant