Compare commits
No commits in common. "c2bb81ee3d0e08af2bce96a2afe06145ecdea35d" and "7e5dbd733eaec8f5591aeb92fc0f9b1b30667fc0" have entirely different histories.
c2bb81ee3d
...
7e5dbd733e
|
|
@ -68,7 +68,6 @@ func init() {
|
||||||
func prepareTeapotCheck() (
|
func prepareTeapotCheck() (
|
||||||
confObj *conf.Conf, groups []string, actor, repoName string, err error,
|
confObj *conf.Conf, groups []string, actor, repoName string, err error,
|
||||||
) {
|
) {
|
||||||
slog.Debug("teapot check prepare start", "env", os.Environ())
|
|
||||||
actor = os.Getenv("GITHUB_ACTOR")
|
actor = os.Getenv("GITHUB_ACTOR")
|
||||||
repository := os.Getenv("GITHUB_REPOSITORY")
|
repository := os.Getenv("GITHUB_REPOSITORY")
|
||||||
if actor == "" ||
|
if actor == "" ||
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,11 @@ func getForbiddens(root string) ([]string, error) {
|
||||||
|
|
||||||
// Create a gitignore instance from the .gitignore file
|
// Create a gitignore instance from the .gitignore file
|
||||||
ignore := gitignore.NewRepositoryWithCache(
|
ignore := gitignore.NewRepositoryWithCache(
|
||||||
root, ".gitignore", gitignore.NewCache(), nil,
|
root, ".gitignore", gitignore.NewCache(),
|
||||||
|
func(e gitignore.Error) bool {
|
||||||
|
slog.Error("gitignore error", "error", e)
|
||||||
|
return true
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user