Skip to content

Conversation

@Lennix
Copy link

@Lennix Lennix commented Jan 19, 2026

Add a new config option github.submit-to-upstream (default: true) that
controls whether sl pr submit creates PRs against the upstream repository
when working from a fork, or against the fork itself.

When set to false, PRs will be created on your fork instead of the upstream
repository. This is useful when you want to create PRs within your own fork
for testing or other purposes.

Usage:
[github]
submit-to-upstream = false

Or via command line:
sl --config github.submit-to-upstream=false pr submit

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com


Stack created with Sapling. Best reviewed with ReviewStack.

Lennix and others added 4 commits January 17, 2026 21:29
- Detect generated files via .gitattributes linguist-generated patterns,
  @generated/@partially-generated tags in file content, and default
  patterns (lock files, .min.js, etc.)
- Show "X sig" counter next to +/- counts with explanatory tooltip
- Label generated files in diff header with "Generated" badge
- Auto-collapse generated files in the diff view
- Fix: Move fileGeneratedStatus into waitForAll preload block to prevent
  re-rendering issues (per TODO T122242329)
- Fix: Calculate SLOC using per-file diff lines instead of entire file
  content for accurate significant line counts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary:

Test Plan:
Add `sl pr get` CLI command to pull entire PR stacks from GitHub by
parsing the Sapling stack footer in PR descriptions. The command supports
--goto to checkout the target commit and --downstack to only fetch
from trunk to the target PR.

Add ISL PR Dashboard in the left drawer showing all open PRs from the
last 30 days, grouped by stacks. Each stack shows PRs in order with
one-click "Pull" buttons to fetch stacks via `sl pr get`.

Features:
- sl pr get <PR> - Import full stack based on PR body footer
- sl pr get <PR> --goto - Import and checkout target
- sl pr get <PR> --downstack - Only fetch trunk→target
- PR Dashboard shows all open PRs grouped by stacks
- Keyboard shortcut Cmd+, to toggle left drawer

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a new config option `github.submit-to-upstream` (default: true) that
controls whether `sl pr submit` creates PRs against the upstream repository
when working from a fork, or against the fork itself.

When set to false, PRs will be created on your fork instead of the upstream
repository. This is useful when you want to create PRs within your own fork
for testing or other purposes.

Usage:
  [github]
  submit-to-upstream = false

Or via command line:
  sl --config github.submit-to-upstream=false pr submit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Lennix Lennix merged commit 42be9b2 into main Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants