Skip to content

Repository.List: Add nebula-preview to receive visibility field#1780

Merged
gmlewis merged 1 commit intogoogle:masterfrom
andygrunwald:support-visibility-in-repo-list
Jan 25, 2021
Merged

Repository.List: Add nebula-preview to receive visibility field#1780
gmlewis merged 1 commit intogoogle:masterfrom
andygrunwald:support-visibility-in-repo-list

Conversation

@andygrunwald
Copy link
Copy Markdown
Contributor

What type of PR is this?

feature

What this PR does / why we need it:

When calling Repositories.List (API Method: List repositories for the authenticated user), the field visibility is always nil.

The visibility was introduced in a developer / API preview controlled by the media accept header.
This PR enabled the API preview nebula-preview for Repositories.List, to retrieve the visibility of a repository.

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?:

None

Additional documentation e.g., usage docs, etc.:

@google-cla google-cla Bot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Jan 22, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 22, 2021

Codecov Report

Merging #1780 (9da8220) into master (9c17d51) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1780   +/-   ##
=======================================
  Coverage   97.54%   97.54%           
=======================================
  Files          98       98           
  Lines        6387     6387           
=======================================
  Hits         6230     6230           
  Misses         85       85           
  Partials       72       72           
Impacted Files Coverage Δ
github/repos.go 98.73% <100.00%> (ø)

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 9c17d51...9da8220. Read the comment docs.

Copy link
Copy Markdown
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, @andygrunwald !
LGTM.

Awaiting second LGTM before merging.

@gmlewis gmlewis requested a review from wesleimp January 23, 2021 02:35
Copy link
Copy Markdown
Collaborator

@wesleimp wesleimp 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
Copy Markdown
Collaborator

gmlewis commented Jan 25, 2021

Thank you, @wesleimp !
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