Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

Commit c982b1b

Browse files
Merge branch 'gaureshpai:main' into os-contribution
2 parents 5d156d6 + aab91f4 commit c982b1b

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,22 @@ jobs:
5858
merge-multiple: true
5959

6060
- name: Combine and post comment
61-
uses: actions/github-script@v6
61+
uses: actions/github-script@v8
6262
with:
63-
github-token: ${{secrets.GITHUB_TOKEN}}
6463
script: |
65-
const fs = require('fs');
66-
const path = require('path');
67-
64+
const fs = await import('fs/promises');
65+
const path = await import('path');
6866
const testResultsDir = 'test-results';
6967
let commentBody = '## Test Results Summary\n\n';
7068
let overallStatus = '✅ All tests passed across all Node.js versions.';
7169
let hasFailures = false;
7270
73-
const files = fs.readdirSync(testResultsDir);
71+
const files = await fs.readdir(testResultsDir);
7472
for (const file of files) {
7573
if (file.startsWith('test-results-') && file.endsWith('.json')) {
7674
const nodeVersion = file.replace('test-results-', '').replace('.json', '');
7775
const filePath = path.join(testResultsDir, file);
78-
const results = JSON.parse(fs.readFileSync(filePath, 'utf8'));
76+
const results = JSON.parse(await fs.readFile(filePath, 'utf8'));
7977
8078
commentBody += `### Node.js ${nodeVersion}\n`;
8179
if (results.stats.failures > 0) {
@@ -87,7 +85,8 @@ jobs:
8785
}
8886
8987
for (const test of results.tests) {
90-
commentBody += `- ${test.state === 'passed' ? '✅' : (test.state === 'failed' ? '❌' : '➖')} ${test.fullTitle}\n`; if (test.state === 'failed' && test.err) {
88+
commentBody += `- ${test.state === 'passed' ? '✅' : (test.state === 'failed' ? '❌' : '➖')} ${test.fullTitle}\n`;
89+
if (test.state === 'failed' && test.err && test.err.message) {
9190
commentBody += ` \`\`\`\n ${test.err.message}\n \`\`\`\n`;
9291
}
9392
}
@@ -97,13 +96,9 @@ jobs:
9796
9897
commentBody = `${overallStatus}\n\n${commentBody}`;
9998
100-
const issue_number = context.issue.number;
101-
const owner = context.repo.owner;
102-
const repo = context.repo.repo;
103-
104-
github.rest.issues.createComment({
105-
owner,
106-
repo,
107-
issue_number,
99+
await github.rest.issues.createComment({
100+
owner: context.repo.owner,
101+
repo: context.repo.repo,
102+
issue_number: context.issue.number,
108103
body: commentBody
109104
});

.github/workflows/welcome.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ jobs:
1414
pull-requests: write
1515
steps:
1616
- name: Greet First-Time Contributors
17-
uses: actions/first-interaction@v1
17+
uses: actions/first-interaction@v3
1818
with:
19-
issue-message: |
20-
👋 Hello @{{ github.actor }}!
19+
repo_token: ${{ secrets.GITHUB_TOKEN }}
20+
issue_message: |
21+
👋 Hello @${{ github.actor }}!
2122
2223
Thank you for opening your first issue here! We appreciate your contribution and will review it as soon as possible. In the meantime, please check out our [contributing guidelines](https://github.com/gaureshpai/create-next-quick/blob/main/CONTRIBUTING.md) for more information.
2324
2425
We're excited to have you in our community!
25-
pr-message: |
26-
🎉 Welcome, @{{ github.actor }}!
26+
pr_message: |
27+
🎉 Welcome, @${{ github.actor }}!
2728
2829
Thank you for submitting your first Pull Request to our repository! We're thrilled to see your contribution. Our team will review it shortly.
2930

0 commit comments

Comments
 (0)