Skip to content

Commit eea2ac0

Browse files
committed
ci: refine welcome workflow configuration
1 parent e56904e commit eea2ac0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/welcome.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
with:
2323
github-token: ${{ secrets.GITHUB_TOKEN }}
2424
script: |
25+
const { context, github } = require("@actions/github");
26+
2527
const issue = context.payload.issue;
2628
2729
await github.rest.issues.createComment({
@@ -30,7 +32,7 @@ jobs:
3032
issue_number: issue.number,
3133
body: `👋 Welcome to LearnHub, @${issue.user.login}! Thanks for opening this issue.
3234
33-
Please review our [Contributing Guidelines](https://github.com/udaycodespace/learnhub/blob/main/CONTRIBUTING.md) and [Code of Conduct](https://github.com/udaycodespace/learnhub/blob/main/CODE_OF_CONDUCT.md).
35+
Please review our Contributing Guidelines (CONTRIBUTING.md) and Code of Conduct (CODE_OF_CONDUCT.md).
3436

3537
### Checklist
3638
- [ ] Star the repository
@@ -48,6 +50,8 @@ If you do not get a reply in time, please join Discord and message there with yo
4850
with:
4951
github-token: ${{ secrets.GITHUB_TOKEN }}
5052
script: |
53+
const { context, github } = require("@actions/github");
54+
5155
const pr = context.payload.pull_request;
5256
5357
await github.rest.issues.createComment({
@@ -65,5 +69,5 @@ PA will review it shortly. If you do not hear back in time, please join Discord
6569
- [ ] Make sure the PR is linked to the relevant issue
6670
- [ ] Make sure the PR follows the contribution rules
6771

68-
Please make sure your PR follows our [Contributing Guidelines](https://github.com/udaycodespace/learnhub/blob/main/CONTRIBUTING.md).`
72+
Please make sure your PR follows our Contributing Guidelines (CONTRIBUTING.md).`
6973
});

0 commit comments

Comments
 (0)