forked from konflux-ci/qe-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 873 Bytes
/
Copy pathestimate-review.yml
File metadata and controls
35 lines (28 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Estimate-review
on: pull_request_target
permissions:
pull-requests: write
jobs:
estimate:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
repository: 'konflux-ci/qe-tools'
- name: Setup Go environment
uses: actions/setup-go@v5
- name: Build qe-tools
run: make build
- name: Run estimate time needed for PR review
run: |
./qe-tools estimate-review \
--owner ${{ github.repository_owner }} \
--repository ${{ github.event.repository.name }} \
--number ${{ github.event.pull_request.number }} \
--config ${{ env.CONFIG_PATH }} \
--token ${{ github.token }} \
--add-label \
--human
env:
CONFIG_PATH: 'config/estimate/config.yaml'