Skip to content

Commit be667ce

Browse files
committed
status: confidences are compared as strings, make sure the confidence is always of the same length
1 parent 2e8c747 commit be667ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ inputs:
2929
required: false
3030

3131
approveThreshold:
32-
description: 'The threshold to use for "approving" (greater than or equal to). A number between 0 and 1.'
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.'
3333
default: "0.935"
3434
required: false
3535

3636
carefulReviewThreshold:
37-
description: 'The threshold to use for "careful review" actions (less than). A number between 0 and 1.'
38-
default: "0.3"
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"
3939
required: false
4040

4141
failJobsWhenReviewNeeded:

src/status/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ run(jobID)
8282
core.setOutput('approved', isApproved)
8383
core.setOutput('suggested', isSuggested)
8484
core.setOutput('jobType', jobType)
85-
core.setOutput('confidence', confidence)
85+
core.setOutput('confidence', confidence.toFixed(3))
8686
})
8787
.catch(async error => {
8888
if (error instanceof Error) {

0 commit comments

Comments
 (0)