-
Notifications
You must be signed in to change notification settings - Fork 80
feat(batches): add docs for pushed-only changesets #1200
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
Changes from 6 commits
93a6c27
4b05e01
3ca27fe
8cde82e
0ea6575
034b452
f0b007b
3906a23
8bde0f2
7c8e8ea
7853aa7
6a06661
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| **Pushing code to a code host (GitHub/GitLab only)** | ||
aulorbe marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <p className="subtitle">Learn how to push code changes to a code host without making a merge request.</p> | ||
|
|
||
| After you've [created a batch change](/batch-changes/create-a-batch-change), you will be redirected to a page displaying a list of the changesets the Batch Change created. From this page, you can apply any bulk operation to 1+ changesets. | ||
|
|
||
| To push code to a new branch on a code host without also creating a merge request, simply select 'push only' from the dropdown menu: | ||
|
|
||
| [image would go here] | ||
|
||
|
|
||
|
|
||
| ## Notes | ||
| - With pushed-only changesets, you are still able see CI feedback, as long as it triggers on code pushes. | ||
| - The `review` status of a pushed-only changeset is always "N/A." | ||
| - The `status` of a pushed-only changeset is always "OPEN." | ||
| - To publish a pushed-only changeset, simply select the changeset in the Batch Changes UI and select 'Publish.' | ||
|
|
||
|
|
||
| ## Requirements | ||
| To push code to a new branch on a code host, you will need: | ||
|
|
||
| - [Admin permissions for the batch change](/batch-changes/permissions-in-batch-changes#permission-levels-for-batch-changes) | ||
|
Contributor
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. Is this on Sourcegraph's or GitHub's side?
Contributor
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. Ah, I see write access to the code host mentioned below. Does it make sense to call it site-admin here? |
||
| - Write access to the changeset's repository on the code host | ||
| - A [personal access token](/batch-changes/configuring-credentials#personal-access-tokens) or a [global service account token](/batch-changes/configuring-credentials#global-service-account-tokens) configured for the code host | ||
aulorbe marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <Callout type="note">For more information, see [Code host interactions in Batch Changes](/batch-changes/permissions-in-batch-changes#code-host-interactions-in-batch-changes).</Callout> | ||
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.
Note: the bulk operation is called "push" only (verb is active), whereas the non-bulk-op (not documented in this PR) and the reference to the state of the changeset is "pushED" only (e.g. "Look at this pushed-only changeset I made").