Skip to content

Commit 287d216

Browse files
authored
Merge pull request #11 from EnderModuBot/bug/10-issue-erstellung-hat-nicht-richtig-funktioniert-end
fix: improve issue body formatting for repository merge settings
2 parents cbb2654 + 4a1f6f2 commit 287d216

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/setup.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@ jobs:
2525
run: |
2626
owner_repo="${{ github.repository }}"
2727
issue_title="Enable repository merge settings"
28-
issue_body="Please go to [repository settings](https://github.com/${owner_repo}/settings#merge-button-settings) and configure the following:\n\n- [ ] Automatically delete head branches\n- [ ] Allow auto-merge"
28+
issue_body=$(
29+
echo -e "Please go to [repository settings](https://github.com/${owner_repo}/settings#merge-button-settings) and configure the following:\n\n- [ ] Automatically delete head branches\n- [ ] Allow auto-merge"
30+
)
2931
3032
curl -s -X POST \
3133
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
3234
-H "Accept: application/vnd.github+json" \
33-
-d "$(jq -n \
34-
--arg title "$issue_title" \
35-
--arg body "$issue_body" \
36-
'{title: $title, body: $body}')" \
35+
-d "{\"title\":\"$issue_title\",\"body\":\"$issue_body\"}" \
3736
"https://api.github.com/repos/${owner_repo}/issues"
38-
3937
- name: Create / update default issue labels
4038
shell: bash
4139
run: |

0 commit comments

Comments
 (0)