Skip to content

Commit

Permalink
Disable feature for maintainers
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 6, 2021
1 parent 53d5691 commit f6f0141
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions handler/template_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ import (

func CheckIssueTemplateHeadings(req types.IssuesOuter, derekConfig *types.DerekRepoConfig, config config.Config) error {

maintainer := false
for _, u := range derekConfig.Maintainers {
if u == req.Sender.Login {
maintainer = true
break
}
}
if maintainer {
return nil
}

body := req.Issue.Body

found := 0
Expand Down

0 comments on commit f6f0141

Please sign in to comment.