Skip to content
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

Merged
merged 1 commit into from
Feb 22, 2019

Conversation

edisonxiang
Copy link
Collaborator

@edisonxiang edisonxiang commented Feb 22, 2019

This PR Fixes: #5
The following comments are supported.
/kind foo
/remove-kind foo
/priority bar
/remove-priority bar

)

const (
Assign = "/assign"
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

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?

Copy link
Collaborator Author

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?

Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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 :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

return nil
}

// remove
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment please.

Copy link
Collaborator Author

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment please.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I will

@edisonxiang edisonxiang requested a review from sids-b February 22, 2019 04:30
Copy link
Contributor

@sids-b sids-b left a 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.

@sids-b sids-b merged commit cf73d0e into huawei-cloudnative:master Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants