Skip to content

Add new attributes to return for users and repositories#158

Merged
benbalter merged 2 commits into
jekyll:masterfrom
kenyonj:jk-add-repo-stars-forks-hireable
Jan 29, 2019
Merged

Add new attributes to return for users and repositories#158
benbalter merged 2 commits into
jekyll:masterfrom
kenyonj:jk-add-repo-stars-forks-hireable

Conversation

@kenyonj

@kenyonj kenyonj commented Jan 29, 2019

Copy link
Copy Markdown
Contributor

This PR:

  • Adds hireable to the whitelisted attributes available on the owner hash.
  • Adds decorator methods for stargazers_count and forks_count to the Repository object.

Why?

  • This will allow users of this gem to access more useful information from users and repositories.

This commit:
- Adds `hireable` to the whitelisted attributes available on the `owner` hash.
- Adds decorator methods for `stargazers_count` and `forks_count` to the `Repository` object.

Why?
- This will allow users of this gem to access more useful information from users and repositories.

@parkr parkr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks great to me, thank you!!!

@ashmaroli

Copy link
Copy Markdown
Member

@kenyonj Please adjust the changes so that tests pass locally at your end and on our CI.
Thank you.

@ashmaroli

Copy link
Copy Markdown
Member

@kenyonj I think you missed a test for checking the :hireable metadata.

@kenyonj

kenyonj commented Jan 29, 2019

Copy link
Copy Markdown
Contributor Author

I think you missed a test for checking the :hireable metadata.

@ashmaroli
I didn't see any other tests for the other user metadata so it wasn't immediately clear to me where that would fit in.

@parkr

parkr commented Jan 29, 2019

Copy link
Copy Markdown
Member

@ashmaroli I’ll make a PR for those user tests sometime tomorrow!

@ashmaroli ashmaroli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@benbalter benbalter merged commit f6308d0 into jekyll:master Jan 29, 2019
benbalter added a commit that referenced this pull request Jan 29, 2019
@parkr

parkr commented Jan 29, 2019

Copy link
Copy Markdown
Member

Thanks, @benbalter! I'm working on the tests now for site.github.owner.

@benbalter

Copy link
Copy Markdown
Contributor

@parkr 🤘 If you tackle the tests, glad to help bump and release (if I remember how... 😄)

@jekyll jekyll locked and limited conversation to collaborators Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants