mirror of
https://github.com/Luzifer/repo-template.git
synced 2024-11-10 08:30:03 +00:00
Fix: Data is base64 encoded
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
89ff76499f
commit
75d6e1799f
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"bufio"
|
||||
"context"
|
||||
"encoding/base64"
|
||||
"strings"
|
||||
|
||||
"github.com/google/go-github/github"
|
||||
|
@ -55,7 +56,7 @@ func filterMakeJenkins(repo *github.Repository) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
scanner := bufio.NewScanner(strings.NewReader(*fc.Content))
|
||||
scanner := bufio.NewScanner(base64.NewDecoder(base64.StdEncoding, strings.NewReader(*fc.Content)))
|
||||
for scanner.Scan() {
|
||||
if strings.HasPrefix(scanner.Text(), "jenkins:") {
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue