-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add accept flag for custom pr templates
- Loading branch information
Showing
9 changed files
with
36,664 additions
and
19,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"//": "get file content. restrict by file types", | ||
"method": "GET", | ||
"path": "/:owner/_apis/git/repositories/:repo/items", | ||
"origin": "https://${AZURE_REPOS_HOST}/${AZURE_REPOS_ORG}", | ||
"valid": [ | ||
{ | ||
"queryParam": "path", | ||
"values": [ | ||
"**/.azuredevops/snyk_pull_request_template.yaml", | ||
"**%2F.azuredevops%2Fsnyk_pull_request_template.yaml" | ||
] | ||
} | ||
] | ||
} | ||
] |
22 changes: 22 additions & 0 deletions
22
defaultFilters/customPrTemplates/bitbucket-server-bearer-auth.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*/snyk_pull_request_template.yaml", | ||
"origin": "https://${BITBUCKET_API}", | ||
"auth": { | ||
"scheme": "bearer", | ||
"token": "${BITBUCKET_PAT}" | ||
} | ||
}, | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*%2Fsnyk_pull_request_template.yaml", | ||
"origin": "https://${BITBUCKET_API}", | ||
"auth": { | ||
"scheme": "bearer", | ||
"token": "${BITBUCKET_PAT}" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*/snyk_pull_request_template.yaml", | ||
"origin": "https://${BITBUCKET_API}", | ||
"auth": { | ||
"scheme": "basic", | ||
"username": "${BITBUCKET_USERNAME}", | ||
"password": "${BITBUCKET_PASSWORD}" | ||
} | ||
}, | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*%2Fsnyk_pull_request_template.yaml", | ||
"origin": "https://${BITBUCKET_API}", | ||
"auth": { | ||
"scheme": "basic", | ||
"username": "${BITBUCKET_USERNAME}", | ||
"password": "${BITBUCKET_PASSWORD}" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/repos/:name/:repo/contents/.github/snyk_pull_request_template.yaml", | ||
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" | ||
}, | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/repos/:name/:repo/contents/.github%2Fsnyk_pull_request_template.yaml", | ||
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/repos/:name/:repo/contents/.github/snyk_pull_request_template.yaml", | ||
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" | ||
}, | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/repos/:name/:repo/contents/.github%2Fsnyk_pull_request_template.yaml", | ||
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/api/v4/projects/:project/repository/files*/snyk_pull_request_template.yaml", | ||
"origin": "https://${GITLAB}" | ||
}, | ||
{ | ||
"//": "used to get custom pull request template", | ||
"method": "GET", | ||
"path": "/api/v4/projects/:project/repository/files*%2Fsnyk_pull_request_template.yaml", | ||
"origin": "https://${GITLAB}" | ||
}, | ||
{ | ||
"//": "used to determine the full dependency tree for v3 protocol", | ||
"method": "GET", | ||
"path": "/api/v3/projects/:project/repository/files", | ||
"origin": "https://${GITLAB}", | ||
"valid": [ | ||
{ | ||
"queryParam": "file_path", | ||
"values": [ | ||
"**/.config/snyk_pull_request_template.yaml", | ||
"**%2F.config%2Fsnyk_pull_request_template.yaml" | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.