Skip to content

Commit 8f64340

Browse files
committed
ci: fix of bot commenting interpreted as code line
1 parent 651d84f commit 8f64340

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

.github/workflows/pull_request-opened.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ jobs:
1515
uses: actions/github-script@v7
1616
with:
1717
script: |
18+
const body = `### 🎉 Welcome!
19+
20+
Thank you for your contribution and for opening this pull request.
21+
22+
### 📖 Contribution Guidelines
23+
24+
For more details on how to contribute effectively, please refer to our [How to Contribute](https://github.com/simonkovtyk/esbuild-plugin-package-json/blob/main/docs/guides/HOW_TO_CONTRIBUTE.md) document.`
25+
1826
github.rest.issues.createComment({
1927
owner: context.repo.owner,
2028
repo: context.repo.repo,
2129
issue_number: context.issue.number,
22-
body: `### 🎉 Welcome!
23-
24-
Thank you for your contribution and for opening this pull request.
25-
26-
### 📖 Contribution Guidelines
27-
28-
For more details on how to contribute effectively, please refer to our [How to Contribute](https://github.com/simonkovtyk/esbuild-plugin-package-json/blob/main/docs/guides/HOW_TO_CONTRIBUTE.md) document.`
30+
body
2931
});

.github/workflows/pull_request.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,26 @@ jobs:
2929
notify_success:
3030
runs-on: ubuntu-latest
3131
needs: style_check
32+
3233
if: success()
3334
steps:
3435
- name: Comment success
3536
uses: actions/github-script@v7
3637
with:
3738
script: |
39+
const body = `### ✅ Successful Review
40+
41+
Great news! Your pull request has been successfully reviewed, and no errors were found.
42+
43+
### ⏳ Next Steps
44+
45+
The author will review the changes shortly, and we look forward to merging your contributions into the project. Thank you for your hard work and dedication! 🎉`
46+
3847
github.rest.issues.createComment({
3948
owner: context.repo.owner,
4049
repo: context.repo.repo,
4150
issue_number: context.issue.number,
42-
body: `### ✅ Successful Review
43-
44-
Great news! Your pull request has been successfully reviewed, and no errors were found.
45-
46-
### ⏳ Next Steps
47-
48-
The author will review the changes shortly, and we look forward to merging your contributions into the project. Thank you for your hard work and dedication! 🎉`
51+
body
4952
});
5053
5154
github.rest.issues.addLabels({
@@ -63,17 +66,19 @@ jobs:
6366
uses: actions/github-script@v7
6467
with:
6568
script: |
69+
const body = `### ⚠️ Review Required
70+
71+
Thank you for your contribution! Upon review, we've identified some issues in the pull request that need to be addressed. Please take a moment to review the errors and make the necessary adjustments before we can proceed with the integration.
72+
73+
### 🛠️ Next Steps
74+
75+
Feel free to reach out if you have any questions or need assistance. We appreciate your effort in improving our codebase! 🙏`
76+
6677
github.rest.issues.createComment({
6778
owner: context.repo.owner,
6879
repo: context.repo.repo,
6980
issue_number: context.issue.number,
70-
body: `### ⚠️ Review Required
71-
72-
Thank you for your contribution! Upon review, we've identified some issues in the pull request that need to be addressed. Please take a moment to review the errors and make the necessary adjustments before we can proceed with the integration.
73-
74-
### 🛠️ Next Steps
75-
76-
Feel free to reach out if you have any questions or need assistance. We appreciate your effort in improving our codebase! 🙏`
81+
body
7782
});
7883
7984
github.rest.issues.addLabels({

0 commit comments

Comments
 (0)