1
0
mirror of https://github.com/Luzifer/repo-template.git synced 2024-09-20 09:32:58 +00:00

Fix: Data is base64 encoded

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-17 11:48:23 +02:00
parent 89ff76499f
commit 75d6e1799f
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -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