Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for commit list in push webhook #74

Merged
merged 3 commits into from
Aug 26, 2020

Conversation

shubhag
Copy link
Contributor

@shubhag shubhag commented Aug 26, 2020

This patch adds support for commits in push web hook for GitHub, bitbucket, gitlab, gogs, stash and gitea

@CLAassistant
Copy link

CLAassistant commented Aug 26, 2020

CLA assistant check
All committers have signed the CLA.

@bradrydzewski
Copy link
Member

bradrydzewski commented Aug 26, 2020

Thanks, this looks great. The only feedback I have is we should add the mappings to the Gogs and Gitea drivers as well to ensure all the drivers are in sync and have feature parity:

https://github.com/drone/go-scm/blob/master/scm/driver/gogs/testdata/webhooks/push.json#L6:L32
https://github.com/drone/go-scm/blob/master/scm/driver/gitea/testdata/webhooks/push.json#L6:L32

We should also map the commits for Stash, even though we have very limited data in the commit list (just the sha):
https://github.com/drone/go-scm/blob/master/scm/driver/stash/testdata/webhooks/push.json#L30:L42

@shubhag
Copy link
Contributor Author

shubhag commented Aug 26, 2020

Added support for gitea, gogs and stash

@bradrydzewski bradrydzewski merged commit 883401e into drone:master Aug 26, 2020
jstrachan pushed a commit to jstrachan/go-scm that referenced this pull request Dec 22, 2020
fix: add a Repositories.Create() function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants