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

Remove mediaTypeRequiredApprovingReviewsPreview header from remaining APIs #1779

Closed
n1lesh opened this issue Jan 17, 2021 · 4 comments
Closed
Assignees

Comments

@n1lesh
Copy link
Contributor

n1lesh commented Jan 17, 2021

As mentioned in,
https://developer.github.com/changes/2018-03-16-protected-branches-required-approving-reviews/

only 4 endpoints require mediaTypeRequiredApprovingReviewsPreview header as mentioned in here as well.

Can we remove the header in remaining APIs, namely status checks APIs, as I see it being used in around 14 endpoints, or am I missing something?

@gmlewis
Copy link
Collaborator

gmlewis commented Jan 17, 2021

Hmmm... I think we have a disconnect. If I search for that custom media header in this repo, I see this:

https://github.com/google/go-github/search?q=mediaTypeRequiredApprovingReviewsPreview

which shows it being used in two locations:

These appear to have been modified most recently in: #880

Can you please clarify where you are seeing this custom media header?

@n1lesh
Copy link
Contributor Author

n1lesh commented Jan 17, 2021

Well, I took the latest for the last pull request, plus here, https://github.com/google/go-github/blob/c2c4a6d477016a3e73a63d67b1933fb24f52fd99/github/repos.go, where I can see it being used multiple times.

I guess here they are just showing the top 2 matches, but if you open the file, it's more than 2.

@gmlewis
Copy link
Collaborator

gmlewis commented Jan 17, 2021

Ah! You are right! Mine was the disconnect. Sorry about that.

Then yes, please feel free to submit a PR to clean these all up, or we can open it up to another volunteer to do this... your choice.

Thank you, @n1lesh !

@n1lesh
Copy link
Contributor Author

n1lesh commented Jan 17, 2021

Will work on it, no problem. Thank you, @gmlewis

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

2 participants