8000 update comment message · coder/start-workspace-action@7c26738 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c26738

Browse files
committed
update comment message
1 parent 1edccea commit 7c26738

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Source hash: 5596981e2578d0a4c35b0f29825341a305a25343c9cfc836afbf57676ddddfc2
1+
// Source hash: d23dcc6fda8ea3f1aee204e40a65895746b1c48ae39e676f43dbf3c12c27dac9
22
import { createRequire } from "node:module";
33
var __create = Object.create;
44
var __getProtoOf = Object.getPrototypeOf;
@@ -30495,7 +30495,7 @@ class StartWorkspaceAction {
3049530495
const externalAuthPage = `${this.input.coderUrl}/settings/external-auth`;
3049630496
const users = await this.coder.getCoderUsersByGitHubId(githubUserId.toString());
3049730497
if (users.length === 0) {
30498-
throw new UserFacingError(`No matching Coder user found for GitHub user @${this.input.githubUsername}. Please connect your GitHub account with Coder: ${externalAuthPage}`);
30498+
throw new UserFacingError(`No matching Coder user found for GitHub user @${this.input.githubUsername}. Please connect your GitHub account with Coder and try again: ${externalAuthPage}`);
3049930499
}
3050030500
if (users.length > 1) {
3050130501
throw new UserFacingError(`Multiple Coder users found for GitHub user ${this.input.githubUsername}: ${users.slice(0, 3).join(", ")}${users.length > 3 ? `, and others` : ""}. Please connect other users to other GitHub accounts and try again.`);

src/action.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe("StartWorkspaceAction", () => {
117117
returnValue.usernames = [];
118118
expect(() => action.coderUsernameByGitHubId(123)).toThrow(
119119
new UserFacingError(
120-
"No matching Coder user found for GitHub user @github-user. Please connect your GitHub account with Coder: https://example.com/settings/external-auth"
120+
"No matching Coder user found for GitHub user @github-user. Please connect your GitHub account with Coder and try again: https://example.com/settings/external-auth"
121121
)
122122
);
123123
expect(logger.logs).toEqual([]);
@@ -285,7 +285,7 @@ describe("StartWorkspaceAction", () => {
285285
);
286286
expect(mock.error).toBeInstanceOf(UserFacingError);
287287
expect((mock.error as any).message).toEqual(
288-
`No matching Coder user found for GitHub user @hugo. Please connect your GitHub account with Coder: https://example.com/settings/external-auth`
288+
`No matching Coder user found for GitHub user @hugo. Please connect your GitHub account with Coder and try again: https://example.com/settings/external-auth`
289289
);
290290
});
291291

src/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class StartWorkspaceAction {
5959
);
6060
if (users.length === 0) {
6161
throw new UserFacingError(
62-
`No matching Coder user found for GitHub user @${this.input.githubUsername}. Please connect your GitHub account with Coder: ${externalAuthPage}`
62+
`No matching Coder user found for GitHub user @${this.input.githubUsername}. Please connect your GitHub account with Coder and try again: ${externalAuthPage}`
6363
);
6464
}
6565
if (users.length > 1) {

0 commit comments

Comments
 (0)
0