Skip to content

Commit 20e0341

Browse files
committed
chore: remove redundant body in PR creation
1 parent 0d429bc commit 20e0341

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/add-labels-for-pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v3
1616

17+
- name: Add release note block
18+
run: |
19+
PR_NUMBER=$(gh pr list --head ${{ github.ref_name }} --json number -q '.[0].number')
20+
gh pr edit $PR_NUMBER --add-body "
21+
22+
\`\`\`release-note
23+
NONE
24+
\`\`\`
25+
"
26+
env:
27+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
28+
1729
# Extract and format the labels from the comment as "username: label"
1830
- name: Extract reviewer and labels
1931
if: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/') }}

.github/workflows/create-pr-from-push.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,3 @@ jobs:
1515
uses: jumpserver/action-generic-handler@master
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
18-
with:
19-
body: |
20-
Auto generated PR
21-
22-
```release-note
23-
NONE
24-
```

0 commit comments

Comments
 (0)