Skip to content

Commit

Permalink
Merge pull request #138 from snyk/feat/allow-csproj-files
Browse files Browse the repository at this point in the history
feat: allow *.csproj files
  • Loading branch information
lili2311 authored Sep 12, 2018
2 parents 7d65924 + e4af714 commit 143d6c4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
11 changes: 11 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,17 @@
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*/*.csproj",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to check if there's any ignore rules or existing patches",
"method": "GET",
Expand Down
20 changes: 20 additions & 0 deletions client-templates/github-com/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
{
"path": "commits.*.modified.*",
"value": "packages.config"
},
{
"path": "commits.*.added.*",
"value": "*.csproj"
},
{
"path": "commits.*.modified.*",
"value": "*.csproj"
}
]
},
Expand Down Expand Up @@ -319,6 +327,18 @@
"path": "/:name/:repo/:path*/packages.config",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/repos/:name/:repo/contents/:path*/*.csproj",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/:name/:repo/:path*/*.csproj",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
},
{
"//": "used to check if there's any ignore rules or existing patches",
"method": "GET",
Expand Down
14 changes: 14 additions & 0 deletions client-templates/github-enterprise/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
{
"path": "commits.*.modified.*",
"value": "packages.config"
},
{
"path": "commits.*.added.*",
"value": "*.csproj"
},
{
"path": "commits.*.modified.*",
"value": "*.csproj"
}
]
},
Expand Down Expand Up @@ -259,6 +267,12 @@
"path": "/repos/:name/:repo/contents/:path*/packages.config",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/repos/:name/:repo/contents/:path*/*.csproj",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},
{
"//": "used to check if there's any ignore rules or existing patches",
"method": "GET",
Expand Down
9 changes: 8 additions & 1 deletion client-templates/gitlab/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
"path": "/api/v4/projects/:project/repository/files*/packages.config",
"origin": "https://${GITLAB}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/api/v4/projects/:project/repository/files*/*.csproj",
"origin": "https://${GITLAB}"
},
{
"//": "used to check if there's any ignore rules or existing patches",
"method": "GET",
Expand All @@ -118,7 +124,8 @@
"**/build.gradle",
"**/build.sbt",
"**/.snyk",
"**/packages.config"
"**/packages.config",
"**/*.csproj"
]
}
]
Expand Down

0 comments on commit 143d6c4

Please sign in to comment.