https://github.com/khulnasoft-lab/go-git-pr-commenter
https://github.com/khulnasoft-lab/go-git-pr-commenter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/khulnasoft-lab/go-git-pr-commenter
- Owner: khulnasoft-lab
- License: apache-2.0
- Created: 2023-10-06T23:00:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-13T16:40:30.000Z (9 months ago)
- Last Synced: 2025-01-26T14:09:02.051Z (4 months ago)
- Language: Go
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Go Github PR Commenter
[](https://goreportcard.com/report/github.com/khulnasoft-lab/go-git-pr-commenter)
[](https://github.com/khulnasoft-lab/go-git-pr-commenter/releases)command line tool and package based for git comments
# cmd example
GitHub:
export GITHUB_TOKEN=xxxx
./commenter cmd -f file.yaml -c comment -v github --start-line 17 --end-line 20 --pr-number 9 --repo testing --owner repo_owner
Gitlab:
export GITLAB_TOKEN=xxxx
export CI_PROJECT_ID=xxxx
export CI_MERGE_REQUEST_IID=xxxx
export CI_API_V4_URL=xxxx
./commenter cmd -f file.yaml -c comment -v gitlab --start-line 18Azure:
export AZURE_TOKEN=xxxx
export SYSTEM_TEAMPROJECT=xxxx
export BUILD_REPOSITORY_ID=xxxx
export SYSTEM_PULLREQUEST_PULLREQUESTID=xxxx
export SYSTEM_COLLECTIONURI=xxxx./commenter cmd -f /file.yaml -c best_comment -v azure --start-line 1 --end-line 1 --owner repo_organization
BitBucket:
export BITBUCKET_TOKEN=xxxx
export BITBUCKET_USER=xxxx
export BITBUCKET_API_URL=xxxx
export BITBUCKET_PR_ID=xxxx
export BITBUCKET_REPO_FULL_NAME=xxxx./commenter cmd -f file.yaml -c best_comment -v bitbucket --start-line 1 --end-line 1
# Credits
Initially inspired and based on https://github.com/owenrumney/go-github-pr-commenter/