Skip to content

Commit

Permalink
Add Linked Issues.yml
Browse files Browse the repository at this point in the history
Add Linked Issues
  • Loading branch information
n2020h authored Aug 7, 2024
1 parent 6248bb7 commit f93fc37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull_requests_to_csv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Generate pull requests CSV
- name: Generate pull requests CSV
run: |
echo "PR Number,Title,Description,Author,State,Number of Commits,Number of Files Changed,Labels,Assignees,Reviewers" > pull_requests.csv
echo "PR Number,Title,Description,Author,State,Number of Commits,Number of Files Changed,Labels,Assignees,Reviewers, Linked Issues" > pull_requests.csv
jq -r '.[] | select(.user.login != "dependabot[bot]") | [
.number,
.title,
Expand All @@ -54,7 +54,8 @@ jobs:
.changed_files,
(.labels | map(.name) | join(",")),
(.assignees | map(.login) | join(",")),
(.requested_reviewers | map(.login) | join(","))
(.requested_reviewers | map(.login) | join(",")),
(.body | capture_all("#(?<number>\\d+)"; "g") | join(","))
] | @csv' pulls.json >> pull_requests.csv
# Check the content of pull_requests.csv for debugging
Expand Down

0 comments on commit f93fc37

Please sign in to comment.