Skip to content

Commit

Permalink
Merge pull request #133 from icub-tech-iit/fix/107
Browse files Browse the repository at this point in the history
Handle empty entries in `groups`
  • Loading branch information
pattacini authored Apr 3, 2022
2 parents 286db26 + a780e09 commit fe6326c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/check-automated-repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def check_user(user, permissions)
# main

# retrieve information from files
groups = get_entries("../groups")
groups = get_entries("../groups").compact!
repos = get_entries("../repos")

# cycle over repos
Expand Down
2 changes: 1 addition & 1 deletion scripts/delete-invitations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# main

# retrieve information from files
groups = get_entries("../groups")
groups = get_entries("../groups").compact!
repos = get_entries("../repos")

# retrieve input repos
Expand Down
2 changes: 1 addition & 1 deletion scripts/mentioning-comment-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
puts "- comment_id = \"#{$comment_id}\""

# retrieve information from files
groups = get_entries("../groups")
groups = get_entries("../groups").compact!
repos = get_entries("../repos")

# retrieve metadata
Expand Down
2 changes: 1 addition & 1 deletion scripts/outside-collaborators-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def add_repo_collaborator(repo, user, auth)
# main

# retrieve information from files
groups = get_entries("../groups")
groups = get_entries("../groups").compact!
repos = get_entries("../repos")

has_errors = false
Expand Down

0 comments on commit fe6326c

Please sign in to comment.