-
Notifications
You must be signed in to change notification settings - Fork 4
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Label support for pull requests #23
Conversation
Conflicts: lib/octopolo/github/label.rb spec/octopolo/github/label_spec.rb
@@ -60,6 +60,10 @@ def title | |||
pull_request_data.title | |||
end | |||
|
|||
# def number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOPE don't do this.
@@ -122,6 +133,11 @@ def update_jira | |||
end | |||
private :update_jira | |||
|
|||
def update_label | |||
pull_request.add_labels(pull_request.repo_name, pull_request.number, label) unless (label == "Don't know yet") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you still have the number in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the repo
This looks good 👍 |
Label support for pull requests
Rollback Plan
If this pull request requires anything more complex (e.g., rolling back a migration), you MUST update this section. Otherwise, delete this note.
To roll back this change, revert the merge with
git revert -m 1 MERGE_SHA
and perform another deploy.URLs
QA Plan
Run op pull-request, make sure it asks you a question about labels. then check to make sure the label got made.