feat: [IANDT-237] add active contributor emitter - #697
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
dfe3785 to
3a994a8
Compare
1894254 to
8796cbc
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8796cbc. Configure here.
This comment has been minimized.
This comment has been minimized.
|
Remember to assess bringing back capability check |
8796cbc to
daf8020
Compare
Done, this doesn't belong here - and will instead be checked in the code that may call |
PR Reviewer Guide 🔍
|
| @@ -0,0 +1,174 @@ | |||
| // Package contributors_ingest is a client for the Contributing Devs ingest API, | |||
| // which records the git contributors associated with a Snyk entity for billing. | |||
| package contributors_ingest | |||
There was a problem hiding this comment.
Move this package to internal

Description
This PR adds an API client for the public submit contributing developers endpoint served by the entitlements-service (
pkg/apiclients/contributors_ingest), a helper function to collect contributor data (contributors.go) from the Git repository the command is being run in, and an emitter object (billing.go) which ties the two together, exposing anEmitfunction to perform the work.Checklist
make test)make generate)make lint)go get github.com/snyk/go-application-framework@YOUR_LATEST_GAF_COMMITin thecliv2directory.go.modto point to your local GAF code.go mod tidyin thecliv2directory.go.modandgo.sumchanges.