Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add since-commit option#830

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
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
10 changes: 8 additions & 2 deletionslib/github_changelog_generator/octo_fetcher.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -306,8 +306,14 @@ def commits
barrier = Async::Barrier.new
semaphore = Async::Semaphore.new(MAXIMUM_CONNECTIONS, parent: barrier)

iterate_pages(client, "commits", parent: semaphore) do |new_commits|
@commits.concat(new_commits)
if (since_commit = @options[:since_commit])
iterate_pages(client, "commits_since", since_commit, parent: semaphore) do |new_commits|
@commits.concat(new_commits)
end
else
iterate_pages(client, "commits", parent: semaphore) do |new_commits|
@commits.concat(new_commits)
end
end

barrier.wait
Expand Down
1 change: 1 addition & 0 deletionslib/github_changelog_generator/options.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -62,6 +62,7 @@ class Options < SimpleDelegator
security_prefix
simple_list
since_tag
since_commit
ssl_ca_file
summary_labels
summary_prefix
Expand Down
3 changes: 3 additions & 0 deletionslib/github_changelog_generator/parser.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -169,6 +169,9 @@ def self.setup_parser(options)
opts.on("--due-tag x", "Changelog will end before specified tag.") do |v|
options[:due_tag] = v
end
opts.on("--since-commit x", "Fetch only commits after this time. eg. \"2017-01-01 10:00:00\"") do |v|
options[:since_commit] = v
end
opts.on("--max-issues [NUMBER]", Integer, "Maximum number of issues to fetch from GitHub. Default is unlimited.") do |max|
options[:max_issues] = max
end
Expand Down
12 changes: 9 additions & 3 deletionsman/git-generate-changelog.1
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-GENERATE\-CHANGELOG" "1" "May2018" "" ""
.TH "GIT\-GENERATE\-CHANGELOG" "1" "May2020" "" ""
.
.SH "NAME"
\fBgit\-generate\-changelog\fR \- Generate changelog from GitHub
Expand DownExpand Up@@ -277,6 +277,12 @@ Changelog will start after specified tag\.
Changelog will end before specified tag\.
.
.P
\-\-since\-commit x
.
.P
Fetch only commits after this time\. eg\. "2017\-01\-01 10:00:00"
.
.P
\-\-max\-issues [NUMBER]
.
.P
Expand DownExpand Up@@ -375,7 +381,7 @@ GitHub pull requests that have been merged whose merge commit SHA has been modif
Written by Petr Korolev sky4winder@gmail\.com
.
.SH "REPORTING BUGS"
<\fIhttps://github\.com/github-changelog-generator/github\-changelog\-generator/issues\fR>
<\fIhttps://github\.com/github\-changelog\-generator/github\-changelog\-generator/issues\fR>
.
.SH "SEE ALSO"
<\fIhttps://github\.com/github-changelog-generator/github\-changelog\-generator/\fR>
<\fIhttps://github\.com/github\-changelog\-generator/github\-changelog\-generator/\fR>
6 changes: 5 additions & 1 deletionman/git-generate-changelog.1.html
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

4 changes: 4 additions & 0 deletionsman/git-generate-changelog.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -187,6 +187,10 @@ Automatically generate changelog from your tags, issues, labels and pull request

Changelog will end before specified tag.

--since-commit x

Fetch only commits after this time. eg. "2017-01-01 10:00:00"

--max-issues [NUMBER]

Maximum number of issues to fetch from GitHub. Default is unlimited.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp