-
Notifications
You must be signed in to change notification settings - Fork 165
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 info about starting a workspace from raw devfile location #2563
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
89e0600
Add info about starting a workspace from raw devfile location
vinokurig a91ed9c
fixup! Add info about starting a workspace from raw devfile location
vinokurig eb30879
Update modules/end-user-guide/pages/starting-a-new-workspace-with-a-c…
vinokurig 93fb2b7
Update modules/end-user-guide/pages/starting-a-new-workspace-with-a-c…
vinokurig 0e66f07
Update modules/end-user-guide/pages/starting-a-new-workspace-with-a-c…
vinokurig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ To start a new workspace with a clone of a Git repository: | |
. Optional: Visit your {prod-short} dashboard pages to authenticate to your organization's instance of {prod-short}. | ||
|
||
. Visit the URL to start a new workspace using the basic syntax: | ||
.. Use a Git repository URL: | ||
[source,subs="+quotes,+attributes,+macros"] | ||
+ | ||
---- | ||
|
@@ -76,6 +77,32 @@ A clone of the Git repository is present in the filesystem of the new workspace. | |
+ | ||
The workspace has a unique URL: `pass:c,a,q[{prod-url}]#workspace__<unique_url>__`. | ||
|
||
.. Use a direct URL to `devfile`: | ||
[source,subs="+quotes,+attributes,+macros"] | ||
+ | ||
---- | ||
pass:c,a,q[{prod-url}]#__<url_to_devfile>__ | ||
---- | ||
+ | ||
[TIP] | ||
==== | ||
You can pass Personal Access Token to the URL to have access to private repositories: | ||
[source,subs="+quotes,+attributes,+macros"] | ||
---- | ||
pass:c,a,q[{prod-url}]#__https://__<token>__@__<host>__/__<path> <1> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vinokurig probably here we need to add |
||
---- | ||
<1> See xref:using-a-git-provider-access-token.adoc[]. | ||
|
||
This works for GitHub, GitLab, Bitbucket, Microsoft Azure, and other providers that support Personal Access Token. | ||
==== | ||
+ | ||
.A URL for starting a new workspace from devfile location | ||
deerskindoll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
==== | ||
|
||
`pass:c,a,q[{prod-url}#https://raw.githubusercontent.com/che-samples/cpp-hello-world/main/devfile.yaml]` | ||
|
||
==== | ||
|
||
[TIP] | ||
==== | ||
Although this is not possible in the address bar, you can add a URL for starting a new workspace as a bookmark by using the browser bookmark manager: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can add info that this would work for GitHub, GitLab, Bitbucket, Azure, and other types repositories that support this type of OAuth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done