You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Codeball is a code review AI which approves Pull Requests that a human would have approved. Spend less time waiting, save time and money.
8
+
Codeball is a code review AI that scores Pull Requests on a grade from 0 _(needs careful review)_ to 1 _(you should merge this!)_
9
9
10
-
The AI identifies and approves safe contributions, so that you get to focus your energy on the tricky ones.
10
+
Use Codeball to add labels to help you focus, to auto approve PRs, and more. The Codeball action is easy to use (sane defaults), and is highly customizeable to fit your workflow when needed.
11
11
12
-
* Identifies and **approves** safe contributions
13
-
*_[beta]_ Generates **code suggestions** from comments ([read more](https://codeball.ai/suggester))
12
+
🏷 Labels PRs when you should **review with caution** – Stay sharp, don't let the bugs pass through!
13
+
14
+
✅ Identifies and **approves** or labels safe PRs – Save time by fast-tracking PRs that are easy to review
15
+
16
+
🏖 **Great defaults**, fully customizable and programmable with GitHub Actions
14
17
15
18
## GitHub Action
16
19
@@ -38,11 +41,11 @@ jobs:
38
41
- name: Codeball
39
42
uses: sturdy-dev/codeball-action@v2
40
43
with:
44
+
# For all configuration options see https://github.com/sturdy-dev/codeball-action/blob/v2/action.yml
41
45
approvePullRequests: "true"
42
46
labelPullRequestsWhenApproved: "true"
43
47
labelPullRequestsWhenReviewNeeded: "false"
44
48
failJobsWhenReviewNeeded: "false"
45
-
codeSuggestionsFromComments: "false"# Beta (set to "true" to enable)
46
49
```
47
50
48
51
2. 🎉 That's it! Codeball will now run on new Pull Requests, and will approve the PR if it's a good one!
Copy file name to clipboardExpand all lines: action.yml
+41-9Lines changed: 41 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,37 @@ inputs:
12
12
description: 'If "true", the action will submit an approving review if the Codeball AI approves the contribution'
13
13
default: "true"
14
14
required: false
15
+
15
16
labelPullRequestsWhenApproved:
16
-
description: 'If "true", the action will add `codeball:approved` label to the Pull Request if Codeball AI approves the contribution'
17
+
description: 'If "true", the action will add `codeball:approved` label to the PR if the Codeball AI confidence is above the configured approve threshold'
17
18
default: "true"
18
19
required: false
20
+
19
21
labelPullRequestsWhenReviewNeeded:
20
-
description: 'If "true", the action will add `codeball:needs-review` label to the Pull Request if the Codeball AI approves the contribution'
22
+
description: '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'
21
23
default: "false"
22
24
required: false
25
+
26
+
labelPullRequestsWhenCarefulReviewNeeded:
27
+
description: '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'
28
+
default: "true"
29
+
required: false
30
+
31
+
approveThreshold:
32
+
description: 'The threshold to use for "approving" (greater than or equal to). A number between 0 and 1. Must be specified with 3 decimals.'
33
+
default: "0.935"
34
+
required: false
35
+
36
+
carefulReviewThreshold:
37
+
description: 'The threshold to use for "careful review" actions (less than). A number between 0 and 1. Must be specified with 3 decimals.'
38
+
default: "0.300"
39
+
required: false
40
+
23
41
failJobsWhenReviewNeeded:
24
42
description: 'If "true", the action will exit with status code 1 if the Codeball AI does not approve the contribution'
25
43
default: "false"
26
44
required: false
45
+
27
46
codeSuggestionsFromComments:
28
47
description: 'If "true", Codeball will read generate code suggestions from comments made in Pull Requests (beta)'
Copy file name to clipboardExpand all lines: status/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,20 @@ The ID of the Codeball Job created by the Baller Action
10
10
11
11
# Outputs
12
12
13
+
## `jobType`
14
+
15
+
`"contribution"` or `"comment`
16
+
13
17
## `approved`
14
18
15
19
If the Codeball approved the contribution (true or false)
16
20
17
21
## `suggested`
18
22
19
23
If the Codeball has suggestions for the contribution (true or false)
24
+
25
+
## `confidence`
26
+
27
+
The Codeball confidence that this contribution can be approved as-is. A number between 0 and 1. A value between 0 and 0.3 normally indicates that the contribution should be thoroughly reviewed. A value above 0.93 indicates that the contribution is very likely to be approved as-is.
Copy file name to clipboardExpand all lines: status/action.yml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ outputs:
17
17
description: 'If the Codeball approved the contribution (true or false)'
18
18
suggested:
19
19
description: 'If the Codeball has suggestions for the contribution (true or false)'
20
+
confidence:
21
+
description: 'The Codeball confidence that this contribution can be approved as-is. A number between 0 and 1. A value between 0 and 0.3 normally indicates that the contribution should be thoroughly reviewed. A value above 0.93 indicates that the contribution is very likely to be approved as-is. Confidence is only set for contribution jobs.'
0 commit comments