lib/github_cli/apis/label.rb in github_cli-0.5.1 vs lib/github_cli/apis/label.rb in github_cli-0.5.2

- old
+ new

@@ -39,24 +39,28 @@ output format do github_api.issues.labels.issue user, repo, issue_id, params end end - def add(user, repo, issue_id, *args, params, format) + def add(user, repo, issue_id, *args) + format, params = args.pop, args.pop + output format do - github_api.issues.labels.add user, repo, issue_id, *args, params + github_api.issues.labels.add user, repo, issue_id, args.flatten, params end end def remove(user, repo, issue_id, label_id, params, format) output format do github_api.issues.labels.remove user, repo, issue_id, label_id, params end end - def replace(user, repo, issue_id, *args, params, format) + def replace(user, repo, issue_id, *args) + format, params = args.pop, args.pop + output format do - github_api.issues.labels.replace user, repo, issue_id, *args, params + github_api.issues.labels.replace user, repo, issue_id, args.flatten, params end end def milestone(user, repo, number, params, format) output format do