Skip to content

Commit e3367d0

Browse files
authored
fix(manage-merge-queue): add github profile link to comment (#693)
1 parent eab0c00 commit e3367d0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dist/284.index.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/284.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/helpers/manage-merge-queue.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { approvalsSatisfied } from './approvals-satisfied';
3333
import { createPrComment } from './create-pr-comment';
3434
import { isUserInTeam } from './is-user-in-team';
3535
import { getEmailOnUserProfile } from './get-email-on-user-profile';
36+
import { join } from 'path';
3637

3738
export class ManageMergeQueue extends HelperInputs {
3839
max_queue_size?: string;
@@ -69,7 +70,7 @@ export const manageMergeQueue = async ({
6970
if (!email) {
7071
const patternText = pattern ? ` and must match the regex pattern \`${pattern}\`` : '';
7172
await createPrComment({
72-
body: `@${login} Your PR cannot be added to the queue because your email must be set on your GitHub profile${patternText}. Follow the instructions [here](${githubEmailDocsLink}) to add or fix your email.`
73+
body: `@${login} Your PR cannot be added to the queue because your email must be set on your [GitHub profile](${join(context.serverUrl, login)})${patternText}. Follow the instructions [here](${githubEmailDocsLink}) to add or fix your email!`
7374
});
7475
return removePrFromQueue(pullRequest);
7576
}

0 commit comments

Comments
 (0)