+
Skip to content

Remove graduated GitHub v3 API preview header #1636

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

Merged
merged 2 commits into from
Oct 4, 2020

Conversation

n1lesh
Copy link
Contributor

@n1lesh n1lesh commented Oct 2, 2020

removed Accept header (with value mediaTypeCheckRunsPreview). Since checks run is out of preview, didn't see any value in keeping it.

Followed as per,

Graduation of preview: https://developer.github.com/changes/2020-10-01-graduate-antiope-preview/
Docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/checks

@google-cla google-cla bot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Oct 2, 2020
@codecov
Copy link

codecov bot commented Oct 2, 2020

Codecov Report

Merging #1636 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1636      +/-   ##
==========================================
- Coverage   67.95%   67.87%   -0.09%     
==========================================
  Files          97       97              
  Lines        8824     8802      -22     
==========================================
- Hits         5996     5974      -22     
  Misses       1912     1912              
  Partials      916      916              
Impacted Files Coverage Δ
github/checks.go 49.66% <ø> (-6.48%) ⬇️
github/github.go 90.02% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8da2410...25b4fbc. Read the comment docs.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @n1lesh , but this is the wrong approach.
We need to literally remove it, not replace it.

Please see https://github.com/google/go-github/pull/1618/files as a recent example of how this is done.

@n1lesh n1lesh changed the title switch to mediaTypeV3 for ChecksRun Accept header Remove graduated GitHub v3 API preview header Oct 3, 2020
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Perfect! Thank you, @n1lesh !
LGTM.

Awaiting second LGTM before merging.

@gmlewis gmlewis requested a review from wesleimp October 3, 2020 14:38
@n1lesh n1lesh closed this Oct 3, 2020
@n1lesh n1lesh reopened this Oct 3, 2020
Copy link
Contributor

@nightlark nightlark left a comment

Choose a reason for hiding this comment

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

LGTM

@gmlewis
Copy link
Collaborator

gmlewis commented Oct 4, 2020

Thank you, @nightlark !
Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indication that the PR author has signed a Google Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载