- After you signed up for CodeBeaver, get your CodeBeaver API key from the Team page.
-
Add the API key to your repository’s secrets:
- Go to your repository’s Settings
- Navigate to Secrets and Variables > Actions
- Create a new secret named
CODEBEAVER_API_KEY
-
Create a workflow file (e.g.,
.github/workflows/codebeaver.yml):
For Pull Requests
For Push Events
action-type parameter:
analyze: Analyzes changes and provides test results and bug detection analysis as a PR commentanalyze-and-generate: Does everythinganalyzedoes, plus generates test files and creates a new PR with the changesdry-run: Performs analysis and shows what would be generated without making any changes
For example, to analyze a specific PR in another repository: