Skip to content

Commit f93fc37

Browse files
authored
Add Linked Issues.yml
Add Linked Issues
1 parent 6248bb7 commit f93fc37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pull_requests_to_csv.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
# Generate pull requests CSV
4444
- name: Generate pull requests CSV
4545
run: |
46-
echo "PR Number,Title,Description,Author,State,Number of Commits,Number of Files Changed,Labels,Assignees,Reviewers" > pull_requests.csv
46+
echo "PR Number,Title,Description,Author,State,Number of Commits,Number of Files Changed,Labels,Assignees,Reviewers, Linked Issues" > pull_requests.csv
4747
jq -r '.[] | select(.user.login != "dependabot[bot]") | [
4848
.number,
4949
.title,
@@ -54,7 +54,8 @@ jobs:
5454
.changed_files,
5555
(.labels | map(.name) | join(",")),
5656
(.assignees | map(.login) | join(",")),
57-
(.requested_reviewers | map(.login) | join(","))
57+
(.requested_reviewers | map(.login) | join(",")),
58+
(.body | capture_all("#(?<number>\\d+)"; "g") | join(","))
5859
] | @csv' pulls.json >> pull_requests.csv
5960
6061
# Check the content of pull_requests.csv for debugging

0 commit comments

Comments
 (0)