Skip to content

Commit

Permalink
skip prs that are not accessible by perms
Browse files Browse the repository at this point in the history
  • Loading branch information
rogusdev committed Sep 28, 2021
1 parent a786c91 commit 5fca1c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.open_pull_requests_for_repo(repo, extra_filters="")

def self._map_pr_data_search(data)
return data["data"]["search"]["edges"].map do |edge|
_pr_data(edge["node"])
_pr_data(edge["node"]) unless edge.nil?
end
end

Expand Down
2 changes: 1 addition & 1 deletion team_unified_prs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def positional_arg_or_env_split(idx, env_var)
next if skip_team_members.include?(member["login"])
add_prs.call(
Github.open_pull_requests_for_involves(member["login"]).reject do |pr|
pr["owner"].downcase != parsed_team["org"].downcase
pr.nil? || pr["owner"].downcase != parsed_team["org"].downcase
end
)
end
Expand Down

0 comments on commit 5fca1c3

Please sign in to comment.