You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're thrilled to see you opening your first issue! Your input is invaluable to us. Don’t forget to adhere to our issue template for the best experience.
We're delighted to have your first pull request! Please take a moment to check our contributing guidelines to ensure a smooth process.
37
+
if (context.eventName === 'issues') {
38
+
const issue = context.payload.issue;
42
39
43
-
FIRST_PR_MERGED: >
44
-
🎉 Kudos @{{ author }}!
40
+
if (context.payload.action === 'opened') {
41
+
const message = `We're thrilled to see you opening an issue! Your input is valuable to us. Don’t forget to fill out our issue template for the best experience. We will look into it soon.`;
42
+
github.rest.issues.createComment({
43
+
issue_number: issue.number,
44
+
owner: context.repo.owner,
45
+
repo: context.repo.repo,
46
+
body: commentBody(message),
47
+
});
48
+
} else if (context.payload.action === 'closed') {
49
+
const message = `Thanks for closing the issue! We appreciate your updates.`;
50
+
github.rest.issues.createComment({
51
+
issue_number: issue.number,
52
+
owner: context.repo.owner,
53
+
repo: context.repo.repo,
54
+
body: commentBody(message),
55
+
});
56
+
}
57
+
} else if (context.eventName === 'pull_request_target') {
58
+
const pr = context.payload.pull_request;
45
59
46
-
You've just merged your first pull request! We're excited to have you in our community. Keep up the fantastic contributions!
47
-
STAR_MESSAGE: If you enjoy this project, please consider ⭐ starring ⭐ our repository!
48
-
env:
49
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
+
if (context.payload.action === 'opened') {
61
+
const message = `We're delighted to have your pull request! Please take a moment to check our contributing guidelines and ensure you've filled out the PR template for a smooth process. We will review it soon.`;
62
+
github.rest.issues.createComment({
63
+
issue_number: pr.number,
64
+
owner: context.repo.owner,
65
+
repo: context.repo.repo,
66
+
body: commentBody(message),
67
+
});
68
+
} else if (context.payload.action === 'closed') {
69
+
const message = pr.merged
70
+
? `🎉 You've just merged your pull request! We're excited to have you in our community. Keep up the fantastic contributions to the project!`
71
+
: `Thanks for closing the pull request! Your contributions are valuable to us.`;
0 commit comments