Skip to content

Commit

Permalink
Merge pull request #49 from snyk/feat/yarn-lock-filter
Browse files Browse the repository at this point in the history
feat: allow filtering for yarn.lock files to support Yarn projects
  • Loading branch information
darscan authored Jun 20, 2017
2 parents 34ca602 + 275d51c commit c1470fb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
"path": "/projects/:project/repos/:repo/browse*/requirements.txt",
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*/yarn.lock",
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}"
},
{
"//": "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/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
"path": "commits.*.modified.*",
"value": "pom.xml"
},
{
"path": "commits.*.added.*",
"value": "yarn.lock"
},
{
"path": "commits.*.modified.*",
"value": "yarn.lock"
},
{
"path": "commits.*.added.*",
"value": ".snyk"
Expand Down Expand Up @@ -149,6 +157,12 @@
"path": "/:name/:repo/:branch*/requirements.txt",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/:name/:repo/:branch*/yarn.lock",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
},
{
"//": "used to check if there's any ignore rules or existing patches",
"method": "GET",
Expand Down

0 comments on commit c1470fb

Please # to comment.