-
Notifications
You must be signed in to change notification settings - Fork 91
chore(skills): simplify sl-commit and sl-submit-diff skill docs #264
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 all commits
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,7 @@ description: Submit commits as Phabricator diffs for code review using Sapling. | |||||||
|
|
||||||||
| # Submit Diff (Sapling + Phabricator) | ||||||||
|
|
||||||||
| Submit commits to Phabricator for code review using `jf submit` (Meta) or `arc diff` (open-source). | ||||||||
| Submit commits to Phabricator for code review using `jf submit` (Meta). | ||||||||
|
|
||||||||
| <EXTREMELY_IMPORTANT> | ||||||||
|
|
||||||||
|
|
@@ -15,26 +15,22 @@ Submit commits to Phabricator for code review using `jf submit` (Meta) or `arc d | |||||||
| ## What This Skill Does | ||||||||
|
|
||||||||
| 1. If there are uncommitted changes, first run `/commit` to create a commit | ||||||||
| 2. Submit commits to Phabricator using `jf submit` (or `arc diff`) | ||||||||
| 2. Submit commits to Phabricator using `jf submit --draft`. Submit for review using DRAFT mode | ||||||||
| 3. Each commit in the stack becomes a separate Phabricator diff (D12345) | ||||||||
| 4. Commit messages are updated with `Differential Revision:` link | ||||||||
|
|
||||||||
| ## Commands to Use | ||||||||
|
|
||||||||
| - `sl status` - Check for uncommitted changes | ||||||||
| - `sl ssl` - View commits with diff status | ||||||||
| - `jf submit` - Submit commits to Phabricator | ||||||||
| - `jf submit --draft` - Submit commits to Phabricator in DRAFT mode | ||||||||
| - `sl diff --since-last-submit` - View changes since last submission | ||||||||
|
|
||||||||
| ## Common Operations | ||||||||
|
|
||||||||
| | Task | Command | | ||||||||
| | ----------------------- | --------------------------------- | | ||||||||
| | Submit current commit | `jf submit` | | ||||||||
| | Update diff after amend | `sl amend && jf submit` | | ||||||||
| | View diff status | `sl ssl` | | ||||||||
| | Check sync status | `sl log -T '{syncstatus}\n' -r .` | | ||||||||
| | Get diff ID | `sl log -T '{phabdiff}\n' -r .` | | ||||||||
| | Submit current commit | `jf submit --draft` | | ||||||||
| | Update diff after amend | `sl amend && jf submit --draft` | | ||||||||
|
|
||||||||
| ## Diff Status Values | ||||||||
|
|
||||||||
|
|
@@ -52,12 +48,6 @@ Sapling naturally supports stacked commits. When submitting: | |||||||
| - Diffs are linked with proper dependency relationships | ||||||||
| - Reviewers can review each diff independently | ||||||||
|
|
||||||||
| ## Prerequisites | ||||||||
|
|
||||||||
| 1. **`.arcconfig`** must exist in repository root with Phabricator URL | ||||||||
| 2. **`~/.arcrc`** must contain authentication credentials | ||||||||
| 3. **`fbcodereview`** extension must be enabled in Sapling config | ||||||||
|
|
||||||||
| ## Important Notes | ||||||||
|
|
||||||||
|
||||||||
| - Note: Requires Phabricator configuration (`.arcconfig`). See repository setup documentation for details. |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,7 @@ description: Submit commits as Phabricator diffs for code review using Sapling. | |||||||
|
|
||||||||
| # Submit Diff (Sapling + Phabricator) | ||||||||
|
|
||||||||
| Submit commits to Phabricator for code review using `jf submit` (Meta) or `arc diff` (open-source). | ||||||||
| Submit commits to Phabricator for code review using `jf submit` (Meta). | ||||||||
|
|
||||||||
| <EXTREMELY_IMPORTANT> | ||||||||
|
|
||||||||
|
|
@@ -15,26 +15,22 @@ Submit commits to Phabricator for code review using `jf submit` (Meta) or `arc d | |||||||
| ## What This Skill Does | ||||||||
|
|
||||||||
| 1. If there are uncommitted changes, first run `/commit` to create a commit | ||||||||
| 2. Submit commits to Phabricator using `jf submit` (or `arc diff`) | ||||||||
| 2. Submit commits to Phabricator using `jf submit --draft`. Submit for review using DRAFT mode | ||||||||
|
||||||||
| 2. Submit commits to Phabricator using `jf submit --draft`. Submit for review using DRAFT mode | |
| 2. Submit commits to Phabricator in DRAFT mode using `jf submit --draft` |
Copilot
AI
Feb 23, 2026
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.
Removing the Prerequisites section may cause confusion for users who need to set up Phabricator integration. While this section is being removed from the skill docs, the prerequisites are still documented in other parts of the codebase (specs/source-control-type-selection.md, README.md) and are still actual requirements for using jf submit. Consider adding a brief note directing users to setup documentation, such as: "Note: Requires Phabricator configuration (.arcconfig). See repository setup documentation for details."
| - Note: Requires Phabricator configuration (`.arcconfig`). See repository setup documentation for details. |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,7 @@ description: Submit commits as Phabricator diffs for code review using Sapling. | |||||||
|
|
||||||||
| # Submit Diff (Sapling + Phabricator) | ||||||||
|
|
||||||||
| Submit commits to Phabricator for code review using `jf submit` (Meta) or `arc diff` (open-source). | ||||||||
| Submit commits to Phabricator for code review using `jf submit` (Meta). | ||||||||
|
|
||||||||
| <EXTREMELY_IMPORTANT> | ||||||||
|
|
||||||||
|
|
@@ -15,26 +15,22 @@ Submit commits to Phabricator for code review using `jf submit` (Meta) or `arc d | |||||||
| ## What This Skill Does | ||||||||
|
|
||||||||
| 1. If there are uncommitted changes, first run `/commit` to create a commit | ||||||||
| 2. Submit commits to Phabricator using `jf submit` (or `arc diff`) | ||||||||
| 2. Submit commits to Phabricator using `jf submit --draft`. Submit for review using DRAFT mode | ||||||||
|
||||||||
| 2. Submit commits to Phabricator using `jf submit --draft`. Submit for review using DRAFT mode | |
| 2. Submit commits to Phabricator in DRAFT mode using `jf submit --draft` |
Copilot
AI
Feb 23, 2026
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.
Removing the Prerequisites section may cause confusion for users who need to set up Phabricator integration. While this section is being removed from the skill docs, the prerequisites are still documented in other parts of the codebase (specs/source-control-type-selection.md, README.md) and are still actual requirements for using jf submit. Consider adding a brief note directing users to setup documentation, such as: "Note: Requires Phabricator configuration (.arcconfig). See repository setup documentation for details."
| - Note: Requires Phabricator configuration (`.arcconfig`). See repository setup documentation for details. |
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.
The text "Submit for review using DRAFT mode" is redundant with the first part of the sentence. The sentence currently reads: "Submit commits to Phabricator using
jf submit --draft. Submit for review using DRAFT mode". Consider simplifying to just: "Submit commits to Phabricator usingjf submit --draft" or rewording to: "Submit commits to Phabricator in DRAFT mode usingjf submit --draft"