Skip to content

Commit 8a11c2d

Browse files
committed
Merge branch 'upstream-development'
2 parents a6f0143 + a83176a commit 8a11c2d

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

app/src/lib/custom-integration.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ export function expandTargetPathArgument(
6969
args: ReadonlyArray<string>,
7070
repoPath: string
7171
): ReadonlyArray<string> {
72-
return args.map(arg => arg.replaceAll(TargetPathArgument, repoPath))
72+
return args.map(arg =>
73+
arg
74+
// If the placeholder is already quoted (e.g. "%TARGET_PATH%"), replace
75+
// it including the surrounding quotes to avoid double-quoting the path.
76+
.replaceAll(`"${TargetPathArgument}"`, `"${repoPath}"`)
77+
// For unquoted occurrences, wrap the path in quotes.
78+
.replaceAll(TargetPathArgument, `"${repoPath}"`)
79+
)
7380
}
7481

7582
/**

app/src/lib/stores/sign-in-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export class SignInStore extends TypedBaseStore<SignInState | null> {
500500
let error = e
501501
if (e.name === InvalidURLErrorName) {
502502
error = new Error(
503-
`The GitHub Enterprise instance address doesn't appear to be a valid URL. We're expecting something like https://github.example.com.`
503+
`The GitHub Enterprise instance address doesn't appear to be a valid URL. We're expecting something like https://example.ghe.com.`
504504
)
505505
} else if (e.name === InvalidProtocolErrorName) {
506506
error = new Error(

app/src/ui/lib/enterprise-server-entry.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ export class EnterpriseServerEntry extends React.Component<
5454
return (
5555
<Form onSubmit={this.onSubmit}>
5656
<TextBox
57-
label="Enterprise or AE address"
57+
label="Enterprise address"
5858
autoFocus={true}
5959
disabled={disableEntry}
6060
onValueChanged={this.onServerAddressChanged}
61-
placeholder="https://github.example.com"
61+
placeholder="https://example.ghe.com"
6262
/>
6363

6464
{this.props.error ? <Errors>{this.props.error.message}</Errors> : null}

app/src/ui/sign-in/sign-in.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class SignIn extends React.Component<ISignInProps, ISignInState> {
173173
label="Enterprise address"
174174
value={this.state.endpoint}
175175
onValueChanged={this.onEndpointChanged}
176-
placeholder="https://github.example.com"
176+
placeholder="https://example.ghe.com"
177177
/>
178178
</Row>
179179
</DialogContent>

app/test/unit/ui/welcome-and-sign-in-wrappers-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('welcome and sign-in wrappers', () => {
8787
</SignIn>
8888
)
8989

90-
const input = screen.getByLabelText('Enterprise or AE address')
90+
const input = screen.getByLabelText('Enterprise address')
9191
const continueButton = screen.getByRole('button', { name: 'Continue' })
9292

9393
fireEvent.change(input, {

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4118,9 +4118,9 @@ fast-levenshtein@^2.0.6:
41184118
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
41194119

41204120
fast-xml-parser@^4.4.1:
4121-
version "4.5.4"
4122-
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.4.tgz#64e52ddf1308001893bd225d5b1768840511c797"
4123-
integrity sha512-jE8ugADnYOBsu1uaoayVl1tVKAMNOXyjwvv2U6udEA2ORBhDooJDWoGxTkhd4Qn4yh59JVVt/pKXtjPwx9OguQ==
4121+
version "4.5.6"
4122+
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.6.tgz#4ff57d4aca13a2d11aa42ad460495cf00f32b655"
4123+
integrity sha512-Yd4vkROfJf8AuJrDIVMVmYfULKmIJszVsMv7Vo71aocsKgFxpdlpSHXSaInvyYfgw2PRuObQSW2GFpVMUjxu9A==
41244124
dependencies:
41254125
strnum "^1.0.5"
41264126

0 commit comments

Comments
 (0)