-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d96bd3
commit 93ab270
Showing
1 changed file
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
- name: Codeball AI Code Review | ||
# You may pin to the exact commit or the version. | ||
# uses: sturdy-dev/codeball-action@102067b9f537482cee112577655c85fda56d8926 | ||
uses: sturdy-dev/codeball-action@v2.6.0 | ||
with: | ||
# If "true", the action will submit an approving review if the Codeball AI approves the contribution | ||
approvePullRequests: # optional, default is true | ||
# If "true", the action will add `codeball:approved` label to the PR if the Codeball AI confidence is above the configured approve threshold | ||
labelPullRequestsWhenApproved: # optional, default is true | ||
# If "true", the action will add `codeball:needs-review` label to the PR if the Codeball AI confidence is between the "approve" and "careful" thresholds | ||
labelPullRequestsWhenReviewNeeded: # optional, default is false | ||
# If "true", the action will add `codeball:needs-careful-review` label to the PR if the Codeball AI confidence is below the configured careful threshold | ||
labelPullRequestsWhenCarefulReviewNeeded: # optional, default is true | ||
# The threshold to use for "approving" (greater than or equal to). A number between 0 and 1. Must be specified with 3 decimals. | ||
approveThreshold: # optional, default is 0.935 | ||
# The threshold to use for "careful review" actions (less than). A number between 0 and 1. Must be specified with 3 decimals. | ||
carefulReviewThreshold: # optional, default is 0.300 | ||
# If "true", the action will exit with status code 1 if the Codeball AI does not approve the contribution | ||
failJobsWhenReviewNeeded: # optional, default is false | ||
# If "true", Codeball will read generate code suggestions from comments made in Pull Requests (beta) | ||
codeSuggestionsFromComments: # optional, default is false | ||
|
||
jobs: | ||
code_review: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Codeball AI Code Review | ||
uses: sturdy-dev/codeball-action@v2.6.0 | ||
with: | ||
approvePullRequests: true | ||
labelPullRequestsWhenApproved: true | ||
labelPullRequestsWhenReviewNeeded: false | ||
labelPullRequestsWhenCarefulReviewNeeded: true | ||
approveThreshold: 0.935 | ||
carefulReviewThreshold: 0.300 | ||
failJobsWhenReviewNeeded: false | ||
codeSuggestionsFromComments: false |