Skip to content

Commit

Permalink
fix: more param exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
  • Loading branch information
raffis authored and migueleliasweb committed Jan 28, 2023
1 parent e54a62c commit c2668c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/gen/gen_mutations.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ var enabledMutators = map[string]func(ScrapeResult) ScrapeResult{
"/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
"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": allowExtendedLastParamMutatorHelper(),
"/orgs/{org}/actions/runners/{runner_id}/labels/{name}": allowExtendedLastParamMutatorHelper(),
"/repos/{owner}/{repo}/labels/{name}": allowExtendedLastParamMutatorHelper(),
}

// allowExtendedLastParamMutatorHelper mutates the last param of the endpoint pattern
Expand Down
4 changes: 2 additions & 2 deletions src/mock/server_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
//
// WithRequestMatchHandler(
// GetOrgsProjectsByOrg,
// func(w http.ResponseWriter, _ *http.Request) {
// http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
// w.Write(MustMarshal([]github.Project{
// {
// Name: github.String("mocked-proj-1"),
Expand All @@ -24,7 +24,7 @@ import (
// Name: github.String("mocked-proj-2"),
// },
// }))
// },
// }),
// )
func WithRequestMatchHandler(
ep EndpointPattern,
Expand Down

0 comments on commit c2668c5

Please sign in to comment.