A small library with minimal depenencies for working with Webhooks, Commits, Issues, Pull Requests, Comments, Reviews, Teams and more on multiple git provider:
- GitHub
- GitHub Enterprise (you specify a server URL)
- BitBucket Server
- BitBucket Cloud
- GitLab
- Gitea
- Gogs
- Fake
Clone this repository and use go test...
git clone https://github.com/jenkins-x/go-scm.git
cd go-scm
go test ./...
When testing the use of go-scm its really handy to use the fake provider which lets you populate the in memory resources inside the driver or query resources after a test has run.
client, data := fake.NewDefault()