Skip to content

Commit ba42f8f

Browse files
authored
Update pull_requests_to_csv.yml
Debug pull_requests.csv
1 parent f93fc37 commit ba42f8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pull_requests_to_csv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
run: cat pulls.json
4242

4343
# Generate pull requests CSV
44+
# (.body | capture_all("#(?<number>\\d+)"; "g") | join(","))
4445
- name: Generate pull requests CSV
4546
run: |
4647
echo "PR Number,Title,Description,Author,State,Number of Commits,Number of Files Changed,Labels,Assignees,Reviewers, Linked Issues" > pull_requests.csv
@@ -55,7 +56,7 @@ jobs:
5556
(.labels | map(.name) | join(",")),
5657
(.assignees | map(.login) | join(",")),
5758
(.requested_reviewers | map(.login) | join(",")),
58-
(.body | capture_all("#(?<number>\\d+)"; "g") | join(","))
59+
(.body | gsub("#";" ") | split(" ") | map(select(startswith("issue_number"))) | join(","))
5960
] | @csv' pulls.json >> pull_requests.csv
6061
6162
# Check the content of pull_requests.csv for debugging

0 commit comments

Comments
 (0)