-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support Add/Remove Labels #8
Conversation
) | ||
|
||
const ( | ||
Assign = "/assign" |
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.
We have already merged the assign/unassign functionalities in #2.
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.
Yep. I changed the directory of assign/unassign.
since assign/unassign and labels will handle the same IssueCommentEvent.
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.
Okay, so do we need the assign
directory? As we are putting /unassign
in the same file, what about change assign.go
to assign_unassign.go
and remove the assign
directory if nothing else to be added?
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.
I guess it is better to create different directory for the different action/operation.
So it is convenient to read the codes.
What about assignees
as the directory name?
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.
I am open to that. Can we learn something from kubernetes/test-infra?
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.
OK, It seems like test-infra is using assign
:(
https://github.com/kubernetes/test-infra/blob/master/prow/plugins/assign/assign.go
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.
Okay, good. I buy it :)
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.
💯
handlers/label/label.go
Outdated
return nil | ||
} | ||
|
||
// remove |
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.
comment please.
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.
Thanks, I will
} | ||
|
||
// add | ||
func add(client *github.Client, event github.IssueCommentEvent) error { |
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.
comment please.
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.
Thanks, I will
6f2a3d4
to
ae8cbbb
Compare
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.
LGTM. Lets add a README soon so that usage of ci-bot is clear.
This PR Fixes: #5
The following comments are supported.
/kind foo
/remove-kind foo
/priority bar
/remove-priority bar