Skip to content

Commit 736c93e

Browse files
committed
[ci] Simplify workflow to generate the list of closed items
1 parent 18a86f0 commit 736c93e

2 files changed

Lines changed: 44 additions & 93 deletions

File tree

.ci/get_solved_issues-github-actions.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

.github/workflows/projFixedIssues.yml

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,56 @@ name: 'GetFixedIssues'
33
on:
44
workflow_dispatch:
55
inputs:
6-
tag:
7-
description: Generate the release notes of fixed issues for this tag (e.g. "v6-32-12")
8-
type: string
6+
major:
7+
type: choice
8+
description: Major
9+
options:
10+
- 6
11+
- 7
912
required: true
13+
default: 6
14+
minor:
15+
type: choice
16+
description: Minor
17+
options:
18+
- 26
19+
- 28
20+
- 30
21+
- 32
22+
- 36
23+
- 38
24+
- 40
25+
- 42
26+
- 44
27+
required: true
28+
default: 40
29+
patch:
30+
type: choice
31+
description: Patch
32+
options:
33+
- 00
34+
- 02
35+
- 04
36+
- 06
37+
- 08
38+
- 10
39+
- 12
40+
- 14
41+
- 16
42+
- 18
43+
- 20
44+
- 22
45+
- 24
46+
- 26
47+
- 28
48+
required: true
49+
default: 00
1050

1151
jobs:
1252
check-tag:
1353
runs-on: ubuntu-latest
1454
steps:
15-
- name: Set up Python
16-
uses: actions/setup-python@v5
17-
- name: Install python dependencies
18-
run: |
19-
pip install github3.py
20-
- name: Download issue extraction script
21-
run: |
22-
wget https://raw.githubusercontent.com/root-project/root/master/.ci/get_solved_issues-github-actions.py
2355
- name: Generate list of closed issues for release notes
2456
env:
2557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
run: python ./get_solved_issues-github-actions.py --project-name ${{ inputs.tag }}
58+
run: gh project item-list `gh project list |grep ${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }}|awk '{print$1}` --owner root-project -L 8192|grep "Issue"|sort -t$'\t' -k3 -n -r| awk -v FS='\t' -v OFS='\t' '{print $3" * [[#"$3"](https://github.com/root-project/root/issues/"$3")] - "$2}'

0 commit comments

Comments
 (0)