Skip to content

Commit

Permalink
Accept dependabot in GHES
Browse files Browse the repository at this point in the history
  • Loading branch information
whywaita committed Nov 6, 2024
1 parent 0a186c5 commit cf9c39e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/web/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func receiveCheckRunWebhook(ctx context.Context, event *github.CheckRunEvent, ds
repoURL := repo.GetHTMLURL()

if action != "created" {
logger.Logf(true, "check_action is not created, ignore")
logger.Logf(true, "check_action is not created, ignore (%s)", action)
return nil
}

Expand Down Expand Up @@ -203,6 +203,11 @@ func receiveWorkflowJobWebhook(ctx context.Context, event *github.WorkflowJobEve
}

func isRequestedMyshoesLabel(labels []string) bool {
// Accept dependabot runner in GHES
if len(labels) == 1 && strings.EqualFold(labels[0], "dependabot") {
return true
}

for _, label := range labels {
if strings.EqualFold(label, "myshoes") || strings.EqualFold(label, "self-hosted") {
return true
Expand Down

0 comments on commit cf9c39e

Please sign in to comment.