This repository has two branches that accept pull requests:
| Branch | Purpose |
|---|---|
main |
V3 — active development. All new features, improvements, and bug fixes go here. PRs are opened directly against main. |
v2_main |
V2 — maintenance only. Not intended for new contributions. Only critical bug and security fixes are accepted here, and only until V2's official end-of-life. |
⚠️ V2 is on sunset. Frogbot V2 is no longer accepting new features or general code contributions. Thev2_mainbranch exists solely for critical bug and security patches until official end-of-life. If you want to contribute something new, please target themainbranch (V3).
- Open pull requests directly against the
mainbranch. - If the existing tests do not already cover your changes, please add tests.
- Please run
go fmt ./...for formatting the code before submitting the pull request.
- Open pull requests against the
v2_mainbranch. - Only critical bug fixes and security patches are accepted — no new features, no refactoring, no general improvements.
- Clearly explain in your PR description why the fix is critical and cannot be addressed in V3 instead.
Make sure Go is installed by running:
go version
Clone the sources and CD to the root directory of the project:
git clone https://github.com/jfrog/frogbot.git
cd frogbot
Build the sources as follows:
On Unix based systems run:
./buildscripts/build.sh
On Windows run:
.\buildscripts\build.bat
Once completed, you'll find the frogbot executable at the current directory.
Before running the tests, generate mocks by running the following command from within the root directory of the project:
go generate ./...To run the tests, follow these steps:
- Set the
JF_URL&JF_ACCESS_TOKENenvironment variables with your JFrog platform credentials. - Execute the following command:
go test -v ./...