Skip to content

Commit cbb2654

Browse files
authored
Merge pull request #9 from EnderModuBot/8-issue-nachricht-verändern-end
chore: update issue creation for repository merge settings
2 parents 881aaee + 32c2f52 commit cbb2654

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/setup.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24-
- name: Create issue to enable branch auto-deletion
24+
- name: Create issue to enable repository merge settings
2525
run: |
2626
owner_repo="${{ github.repository }}"
27-
issue_title="Enable 'Automatically delete head branches' setting"
28-
issue_body="Please go to [repository settings](https://github.com/${owner_repo}/settings#merge-button-settings) and enable **Automatically delete head branches**."
27+
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"
2929
3030
curl -s -X POST \
3131
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
3232
-H "Accept: application/vnd.github+json" \
33-
-d "{\"title\":\"${issue_title}\",\"body\":\"${issue_body}\"}" \
33+
-d "$(jq -n \
34+
--arg title "$issue_title" \
35+
--arg body "$issue_body" \
36+
'{title: $title, body: $body}')" \
3437
"https://api.github.com/repos/${owner_repo}/issues"
3538
3639
- name: Create / update default issue labels

0 commit comments

Comments
 (0)