Skip to content

Commit

Permalink
Fix Repositories.GetCommitSHA1() with forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
migueleliasweb committed Oct 15, 2022
1 parent 31e651e commit e08e47f
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 281 deletions.
1 change: 1 addition & 0 deletions src/gen/gen_mutations.go
Expand Up @@ -10,6 +10,7 @@ var enabledMutators = map[string]func(ScrapeResult) ScrapeResult{
"/repos/{owner}/{repo}/contents/{path}": allowExtendedLastParamMutatorHelper(),
"/repos/{owner}/{repo}/git/ref/{ref}": allowExtendedLastParamMutatorHelper(),
"/repos/{owner}/{repo}/git/refs/{ref}": allowExtendedLastParamMutatorHelper(), // thanks for the consistency, GitHub
"/repos/{owner}/{repo}/commits/{ref}": allowExtendedLastParamMutatorHelper(), // thanks for not base64encode the parameter, GitHub
}

// allowExtendedLastParamMutatorHelper mutates the last param of the endpoint pattern
Expand Down

0 comments on commit e08e47f

Please sign in to comment.