Skip to content

Commit 81eb034

Browse files
committed
refactor: delete fucntion(add first-time-contributor label and notice reviewer)
Signed-off-by: Cadmus <CadmusJiang@gmail.com>
1 parent 9ca804a commit 81eb034

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/providers/contributor/event.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ func (c *Contributor) processOpenedPR(pull *github.PullRequest) (errs []error) {
3030
switch pull.GetAuthorAssociation() {
3131
case "FIRST_TIME_CONTRIBUTOR", "FIRST_TIMER", "NONE":
3232
{
33-
err = c.labelPull(pull, "first-time-contributor")
33+
//err = c.labelPull(pull, "first-time-contributor")
34+
err = nil
3435
}
3536
default:
3637
{

pkg/providers/pullstatus/controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (p *pullStatus) checkEvent(check *PullStatusControl, event string, lastUpda
182182
}
183183
case "PingReviewer":
184184
{
185-
err = errors.Wrap(p.noticePingReviewer(pull, lastUpdate), "check event")
185+
//err = errors.Wrap(p.noticePingReviewer(pull, lastUpdate), "check event")
186+
err = nil
186187
}
187188
case "SlackDirect":
188189
{

0 commit comments

Comments
 (0)