contrib/git-changes-action/detector/git/ref.go
Function getChangedFilesFromAPI
has 6 return statements (exceeds 4 allowed). Open
Open
func getChangedFilesFromAPI(ctx context.Context, ghContext *actionscore.Context, client *github.Client) (ct tree.Tree, err error) {
var gpe github.PullRequestEvent
// TODO: should rap into context
f, err := os.Open(os.Getenv("GITHUB_EVENT_PATH"))
if err != nil {