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
console.warn('Skipping welcome comment: PR is from fork and token lacks permission to comment.');
139
151
} else {
140
-
const welcomeBody = `\n👋 **Welcome, @${author}!**\n\nThanks for opening your first pull request in **${owner}/${repo}**. \nA maintainer will review your contribution shortly.\n\n_If you have any questions feel free to reach out!_`;
152
+
const body = `👋 **Welcome, @${author}!**
153
+
154
+
Thanks for opening your first pull request in **${owner}/${repo}**.
155
+
A maintainer will review your contribution shortly.
156
+
157
+
_If you have any questions feel free to reach out!_`;
141
158
142
159
await github.rest.issues.createComment({
143
-
owner,
144
-
repo,
145
-
issue_number,
146
-
body: welcomeBody,
160
+
owner,
161
+
repo,
162
+
issue_number,
163
+
body,
147
164
});
148
165
console.log('Posted welcome comment.');
149
-
}
150
166
}
151
-
} catch (error) {
167
+
}
168
+
} catch (error) {
152
169
if (isIntegrationError(error) && isFromFork) {
153
-
console.warn('Skipping welcome comment due to integration permission limits on fork PR.');
170
+
console.warn('Skipping welcome comment due to integration permission limits on fork PR.');
0 commit comments