Skip to content

Commit 355dba3

Browse files
authored
Merge pull request #40725 from github/repo-sync
Repo sync
2 parents c63f92f + 9a1bead commit 355dba3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/actions/get-changed-files/get-changed-files.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ git fetch --depth=1 origin main
1818
git fetch --depth=1 origin ${INPUT_HEAD:-HEAD}
1919

2020
# Get diff with status information
21-
# Find the merge-base (common ancestor) instead of using origin/main directly
2221
echo "__ running git diff with status __"
23-
DIFF_OUTPUT=$(git diff --name-status origin/main...origin/${INPUT_HEAD:-HEAD})
22+
DIFF_OUTPUT=$(git diff --name-status origin/main origin/${INPUT_HEAD:-HEAD})
2423

2524
# Function to extract files by pattern from diff output
2625
extract_files() {

data/reusables/enterprise-migration-tool/set-target-api-url.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
* If you're using Terminal, use the `export` command.
44

55
```shell copy
6-
export TARGET_API_URL="https://api.{% data variables.enterprise.data_residency_example_domain %}"
6+
export TARGET_API_URL="https://api.SUBDOMAIN.ghe.com"
77
```
88

99
* If you're using PowerShell, use the `$env` command.
1010
1111
```shell copy
12-
$env:TARGET_API_URL="https://api.{% data variables.enterprise.data_residency_example_domain %}"
12+
$env:TARGET_API_URL="https://api.SUBDOMAIN.ghe.com"
1313
```
1414
15+
> [!IMPORTANT]
16+
> Ensure to replace `SUBDOMAIN` with your enterprise's subdomain.
17+
>
18+
> For example, if your enterprise's subdomain is `acme`, the `TARGET_API_URL` value would be `https://api.acme.ghe.com`.
19+
1520
You'll use this variable with the `--target-api-url` option in commands you run with the {% data variables.product.prodname_cli %}.

0 commit comments

Comments
 (0)