Skip to content

Commit b5b37e8

Browse files
a different way of creating PRs
1 parent f25afb5 commit b5b37e8

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/create-article-from-issue.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,12 @@ jobs:
101101
git push origin "$BRANCH"
102102
103103
- name: Create Pull Request
104-
id: create_pr
105-
uses: peter-evans/create-pull-request@v5
106-
with:
107-
title: "Article draft: ${{ steps.extract.outputs.fileid }}"
108-
body: |
109-
This PR was automatically generated from issue #${{ github.event.issue.number }}.
110-
111-
Closes #${{ github.event.issue.number }}
112-
head: articles/${{ steps.extract.outputs.fileid }}
113-
base: main
114-
draft: true
104+
run: |
105+
gh pr create \
106+
--title "Article draft: ${{ steps.extract.outputs.title }}" \
107+
--body "This PR was automatically generated from issue #${{ github.event.issue.number }}.\n\nCloses #${{ github.event.issue.number }}" \
108+
--head "articles/${{ steps.extract.outputs.fileid }}" \
109+
--base main
115110
116111
- name: Comment on the original Issue
117112
uses: peter-evans/create-or-update-comment@v3

0 commit comments

Comments
 (0)