Skip to content

Commit 593790d

Browse files
committed
fix code review search flow
1 parent bc45124 commit 593790d

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/code-review.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ on:
77
description: 'Kosli organization name'
88
required: true
99
type: string
10-
kosli-flow:
11-
description: 'Kosli flow name'
10+
kosli-build-flow:
11+
description: 'Kosli build flow name *where the PR attestations are made*'
12+
required: true
13+
type: string
14+
15+
kosli-release-flow:
16+
description: 'Kosli release flow name *where the attestation will be made*'
1217
required: true
1318
type: string
1419
kosli-trail:
@@ -73,7 +78,7 @@ jobs:
7378
run: python3 "bin/code-review-evaluation.py"
7479
--host "https://app.kosli.com"
7580
--org "${{ inputs.kosli-org }}"
76-
--flow "${{ inputs.kosli-flow }}"
81+
--flow "${{ inputs.kosli-build-flow }}"
7782
--commit-list ${{ steps.get-commits.outputs.commit_list }}
7883
--attestation-type "pull_request"
7984
--api-token "${{ secrets.kosli-api-token }}"
@@ -84,7 +89,7 @@ jobs:
8489
--type code-review
8590
--name code-review
8691
--attestation-data "${{ env.OUTPUT_FILE }}"
87-
--flow ${{ inputs.kosli-flow }}
92+
--flow ${{ inputs.kosli-release-flow }}
8893
--trail ${{ inputs.kosli-trail }}
8994
--api-token "${{ secrets.kosli-api-token }}"
9095
--org ${{ inputs.kosli-org }}

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ jobs:
7171
uses: ./.github/workflows/code-review.yml
7272
with:
7373
kosli-org: 'kosli-public'
74-
kosli-flow: 'code-review-demo'
74+
kosli-build-flow: 'code-review-demo'
75+
kosli-release-flow: 'code-review-demo'
7576
kosli-trail: ${{ github.sha }}
7677
base-tag: '1.0.0'
7778
secrets:

.github/workflows/release-code-review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
uses: ./.github/workflows/code-review.yml
3737
with:
3838
kosli-org: kosli-public
39-
kosli-flow: code-review-demo-release
39+
kosli-build-flow: code-review-demo
40+
kosli-release-flow: code-review-demo-release
4041
kosli-trail: ${{ github.ref_name }}
4142
base-tag: "1.0.0"
4243
secrets:

0 commit comments

Comments
 (0)