Skip to content

Commit

Permalink
Update pull_requests_to_csv.yml
Browse files Browse the repository at this point in the history
Debug pull_requests.csv
  • Loading branch information
n2020h authored Aug 7, 2024
1 parent f93fc37 commit ba42f8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pull_requests_to_csv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
run: cat pulls.json

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

0 comments on commit ba42f8f

Please sign in to comment.