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

Add commits to site.github #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jerrylopez
Copy link

I'd like to propose that commits be added to site.github. The main reason for this would be for display your commit history on your generated site.

Currently I am building an internal documentation site and thought it would be great to have a recent activity feed or history feed.

@benbalter benbalter requested a review from parkr February 22, 2017 18:49
@@ -98,6 +98,10 @@ def releases
memoize_value :@releases, Value.new(proc { |c| c.releases(nwo) })
end

def commits
memoize_value :@commits, Value.new(proc { |c| c.commits(nwo) })
Copy link
Member

Choose a reason for hiding this comment

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

My only concern here is that we limit this to something reasonable like 50 or 100. I believe we may have auto_paginate on which would mean if you have 200,000 commits, we'd try to grab all of them. 😳

Copy link
Author

Choose a reason for hiding this comment

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

Yeaaa... 200,000 commits are definitely not needed. Are you able to set auto_paginate to false for a specific endpoint?

Copy link
Member

Choose a reason for hiding this comment

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

We'd have to turn it off for the client while this call is made. Something like: octokit/octokit.rb#554 (comment)

Copy link
Author

Choose a reason for hiding this comment

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

Okay I see what'll need to happen, but unfortunately I'm not proficient in Ruby. How would I go about implementing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants