Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Aug 19, 2024
1 parent 5b5fda5 commit 4d5c650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
File renamed without changes.
11 changes: 4 additions & 7 deletions .github/workflows/bulk_issue_creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ on:
description: "List of repositories in the format 'x', 'y', 'z'..."
type: string
required: true
issue_labels:
description: "List of labels in the format 'x', 'y', 'z'..."
type: string
required: false

jobs:

Expand All @@ -39,7 +35,7 @@ jobs:
- name: Create issue list files
run: |
# Add headers in the files
echo "Organization, Repository, Issue Url" > issue_list.csv
echo "Organization, Repository, Issue Url", "Issue Created" > issue_list.csv
echo "---------------------------------------------------------------------" > issue_list.txt
echo "List of issues created in the relevant repos." >> issue_list.txt
echo "Output is in the tasks list format to directly copy them in git epic " >> issue_list.txt
Expand Down Expand Up @@ -74,7 +70,7 @@ jobs:

- name: Create Issue in ${{ matrix.repo }}
run: |
data=$(cat '.github/workflows/issue.json')
data=$(cat '.github/workflows/bulk_issue_creator.json')
echo "data: $data"
# Curl api call to create issue
Expand All @@ -91,12 +87,13 @@ jobs:
issue_url=$(echo "$response" | jq -r '.html_url')
if [ "$issue_url" == "null" ]; then
echo "Error: 'html_url' field not found in response"
echo "${{ github.event.inputs.organization }}, ${{ matrix.repo }}, $issue_url, No" >> issue_list.csv
exit 1
fi
echo "Issue url: $issue_url"
# Append the issue to the issue list files
echo "${{ github.event.inputs.organization }}, ${{ matrix.repo }}, $issue_url" >> issue_list.csv
echo "${{ github.event.inputs.organization }}, ${{ matrix.repo }}, $issue_url, Yes" >> issue_list.csv
echo "- [ ] ${{ matrix.repo }} $issue_url" >> issue_list.txt
- name: Upload updated issue list files
Expand Down

0 comments on commit 4d5c650

Please sign in to comment.