Skip to content

Commit 65ddfd4

Browse files
njbrakeNathan Brake
andauthored
fix: action PR format (#239)
Co-authored-by: Nathan Brake <me@nathanbrake.com>
1 parent 5e028ca commit 65ddfd4

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/pr-template-check.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,7 @@ jobs:
6565
owner: context.repo.owner,
6666
repo: context.repo.repo,
6767
issue_number: prNumber,
68-
body: `⚠️ **PR Template Missing**
69-
70-
This PR appears to be missing the required checklist from the PR template.
71-
72-
Please edit your PR description to include the checklist section. The checklist helps maintainers review your contribution.
73-
74-
**This PR will be automatically closed in 24 hours if the template is not restored.**
75-
76-
If you're using an AI coding tool, please ensure it preserves the PR template.`
68+
body: `⚠️ **PR Template Missing**\n\nThis PR appears to be missing the required checklist from the PR template.\n\nPlease edit your PR description to include the checklist section. The checklist helps maintainers review your contribution.\n\n**This PR will be automatically closed in 24 hours if the template is not restored.**\n\nIf you're using an AI coding tool, please ensure it preserves the PR template.`
7769
});
7870
7971
core.setFailed('PR template checklist is missing');
@@ -152,9 +144,7 @@ If you're using an AI coding tool, please ensure it preserves the PR template.`
152144
owner: context.repo.owner,
153145
repo: context.repo.repo,
154146
issue_number: pr.number,
155-
body: `This PR has been automatically closed because the required checklist was not restored within 24 hours.
156-
157-
Please create a new PR using the template and complete the checklist. The checklist helps maintainers review your contribution.`
147+
body: `This PR has been automatically closed because the required checklist was not restored within 24 hours.\n\nPlease create a new PR using the template and complete the checklist. The checklist helps maintainers review your contribution.`
158148
});
159149
160150
// Close the PR

0 commit comments

Comments
 (0)