Skip to content

Commit 614aa56

Browse files
committed
Ignore pull requests on fork
1 parent 556eaf4 commit 614aa56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/notes-github-pr.rb

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def git(*cmd, repo_path: nil)
8181
github.pulls(owner: 'ruby', repo: 'ruby', commit_sha: sha).each do |pull|
8282
number = pull.fetch('number')
8383
url = pull.fetch('html_url')
84+
next unless url.start_with?('https://github.com/ruby/ruby/pull/')
8485

8586
message = Git.commit_message(sha)
8687
notes = Git.notes_message(sha)

0 commit comments

Comments
 (0)