8000 Enable support for `topics` property by cmbuckley · Pull Request #166 · jekyll/github-metadata · GitHub
[go: up one dir, main page]

Skip to content

Enable support for topics property #166

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
Jun 3, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adds support for topics property
Include the topics property in the repository results using the
`application/vnd.github.mercy-preview+json` media type.
  • Loading branch information
cmbuckley committed May 29, 2019
commit 18eb13b2976c8a5584f9a7dd434b8923c60923ac
6 changes: 5 additions & 1 deletion lib/jekyll-github-metadata/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ def organization_repository?
end

def owner_public_repositories
memoize_value :@owner_public_repositories, Value.new("owner_public_repositories", proc { |c| c.list_repos(owner, "type" => "public") })
options = {
:type => "public",
:accept => "application/vnd.github.mercy-preview+json",
}
memoize_value :@owner_public_repositories, Value.new("owner_public_repositories", proc { |c| c.list_repos(owner, options) })
end

def organization_public_members
Expand Down
0