Skip to content

Commit 569125d

Browse files
committed
HACDOCS-490: Updating Import code with private repo feature support.
1 parent ea7865d commit 569125d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/help-topics/rhtap-import/rhtap-import.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
content: |-
1010
A “component” is a container image that we build from source code in a repository. An application is a collection of these components working together. To start building your application, add a component by importing your code repository, or use one of our samples.
1111
12-
**Using code from your GitHub repository**
12+
## Importing code from your GitHub repository
1313
1. To use your own code, type the link to your repository in the **Git repository URL** field. We verify your URL right away. You don’t even have to press **Enter**.
1414
2. Add an optional **Git reference** to point to code in a specific branch, tag, or commit that you want to use to build your application.
1515
3. Indicate a **Context directory** to specify the subdirectory for the source code you want to use.
@@ -30,7 +30,14 @@
3030
3131
***
3232
33-
**Using a code sample**
33+
## Importing code from a private GitHub repository
34+
1. To use your code from a private repository, type the link to your repository in the **Git repository URL** field. The following message displays: “Looks like your repository is private, so we’re not able to access it.”
35+
2. From the **Authorization** section, grant access to your repository by clicking **Sign in**. The **OAuth Redirection** page opens in a new tab and redirects you to **GitHub Authorize OAuth**. **NOTE:** If you’re not already logged in to GitHub, follow the login prompt. If you configured two-factor authentication, GitHub might prompt you to enter a one-time authentication code.
36+
3. Click **Authorize redhat-appstudio**. A **Login successful** page opens, which you can close.
37+
4. On the **Grab some code** page, enter your repository URL again to check access to your repository.
38+
5. After access is validated, click **Import code**.
39+
40+
## Using a code sample
3441
To start with a code sample, enter the name of the code you want to work with into the code sample **Filter by keyword** field, or click **Import sample** on any of the options displayed. Follow the resulting instructions to explore or test whatever language and framework you choose.
3542
3643

0 commit comments

Comments
 (0)