Skip to content

Commit

Permalink
Merge pull request #78 from snyk/feat/gitlab-webhooks
Browse files Browse the repository at this point in the history
feat: add support for gitlab webhooks
  • Loading branch information
joshje authored Oct 5, 2017
2 parents 98d4af9 + cbf9551 commit 1e2906d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions client-templates/gitlab/accept.json.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"public":
[
{
"//": "used for pushing up webhooks from gitlab",
"method": "POST",
"path": "/webhook/gitlab/:webhookId"
}
],
"private":
[
{
Expand Down Expand Up @@ -101,6 +109,24 @@
]
}
]
},
{
"//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the `public` accept filters",
"method": "POST",
"path": "/api/v4/projects/:project/hooks",
"origin": "https://${GITLAB}"
},
{
"//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project",
"method": "DELETE",
"path": "/api/v4/projects/:project/hooks/:id",
"origin": "https://${GITLAB}"
},
{
"//": "used to create commit status messages",
"method": "POST",
"path": "/api/v4/projects/:project/statuses/:sha",
"origin": "https://${GITLAB}"
}
]
}

0 comments on commit 1e2906d

Please sign in to comment.