Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PowerShell snippet for setting TARGET_API_URL environment variable #36800

Merged
merged 4 commits into from
Mar 14, 2025

Conversation

rufer7
Copy link
Contributor

@rufer7 rufer7 commented Mar 13, 2025

Why:

PowerShell snippet is missing for setting TARGET_API_URL environment variable

Closes: #36799

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Mar 13, 2025
Copy link
Contributor

github-actions bot commented Mar 13, 2025

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

⚠️ Warning: Our review server is experiencing latency issues.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on the review server. Changes to the data directory are not included in this table.

Source Review Production What Changed
migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-organizations-from-githubcom-to-github-enterprise-cloud.md fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
from reusable
migrations/using-github-enterprise-importer/migrating-from-azure-devops-to-github-enterprise-cloud/migrating-repositories-from-azure-devops-to-github-enterprise-cloud.md fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
from reusable
migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/migrating-repositories-from-bitbucket-server-to-github-enterprise-cloud.md fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
from reusable

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@subatoi subatoi added content This issue or pull request belongs to the Docs Content team waiting for review Issue/PR is waiting for a writer's review and removed triage Do not begin working on this issue until triaged by the team labels Mar 13, 2025
@subatoi
Copy link
Contributor

subatoi commented Mar 13, 2025

Many thanks @rufer7, we'll review this as soon as we can

Copy link
Contributor

@subatoi subatoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rufer7 Many thanks for spotting this and raising a PR. This is a worthwhile addition but would you be willing to amend it slightly so it matches the other formatting on the page (via other reusables)? So this whole reusable would become:

1. If you're migrating to {% data variables.enterprise.data_residency %}, for convenience, set an environment variable for the **base API URL** for your enterprise. 

   * If you're using Terminal, use the `export` command.

      ```shell copy
      export TARGET_API_URL="https://api.{% data 
      variables.enterprise.data_residency_example_domain %}"
      ```

   * If you're using PowerShell, use the `$env` command.

      ```shell copy
      $env:TARGET_API_URL="https://api.{% data 
      variables.enterprise.data_residency_example_domain %}"
      ```

@rufer7
Copy link
Contributor Author

rufer7 commented Mar 14, 2025

@subatoi sure, I'll do so today

@rufer7
Copy link
Contributor Author

rufer7 commented Mar 14, 2025

@subatoi done

Copy link
Contributor

@subatoi subatoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks, @rufer7! Really appreciate you spotting this, raising an issue, and making those changes. I'll get this merged for you now ✨

@subatoi subatoi added this pull request to the merge queue Mar 14, 2025
Merged via the queue into github:main with commit dc28ec0 Mar 14, 2025
42 checks passed
Copy link
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@rufer7
Copy link
Contributor Author

rufer7 commented Mar 14, 2025

Thanks @subatoi for the review and for merging! I usually try to create PRs and issues instead of just issues ;)

@rufer7 rufer7 deleted the patch-1 branch March 14, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team waiting for review Issue/PR is waiting for a writer's review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PowerShell snippet is missing for setting TARGET_API_URL environment variable
2 participants