Skip to content

Commit f6f0141

Browse files
committed
Disable feature for maintainers
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 53d5691 commit f6f0141

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

handler/template_handler.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ import (
1111

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

14+
maintainer := false
15+
for _, u := range derekConfig.Maintainers {
16+
if u == req.Sender.Login {
17+
maintainer = true
18+
break
19+
}
20+
}
21+
if maintainer {
22+
return nil
23+
}
24+
1425
body := req.Issue.Body
1526

1627
found := 0

0 commit comments

Comments
 (0)