Skip to content

Commit 6083839

Browse files
committed
Merge remote-tracking branch 'origin/main' into copilot/sign-out-triggers-sign-in-request
2 parents b6c861b + 1373d3a commit 6083839

164 files changed

Lines changed: 23694 additions & 2862 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/copilot-setup-steps.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2727

2828
- name: Set up Node.js
29-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
29+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
3030
with:
3131
node-version: "20"
3232
cache: "npm"

‎.husky/pre-commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lint_pid=''
1010
# Stream a NUL-delimited list directly to xargs -0 so paths with spaces/newlines
1111
# are handled safely (command substitution would strip NUL bytes).
1212
if git diff --cached --name-only --diff-filter=ACMR -- '*.ts' '*.tsx' | grep -q .; then
13-
git diff --cached --name-only --diff-filter=ACMR -z -- '*.ts' '*.tsx' | xargs -0 node ./node_modules/eslint/bin/eslint.js --fix --cache &
13+
git diff --cached --name-only --diff-filter=ACMR -z -- '*.ts' '*.tsx' | xargs -0 node ./node_modules/eslint/bin/eslint.js --fix --cache --no-warn-ignored &
1414
lint_pid=$!
1515
fi
1616

‎CHANGELOG.md‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
11
# Changelog
22

3+
## 0.174.0
4+
5+
### Changes
6+
7+
- The "Update stack" action now uses the GitHub API to update a stacked pull request when possible, so you no longer need to have a pull request from the stack checked out.
8+
- The pull request overview shows a banner offering to create a stack when the pull request's branches line up with other open pull requests that aren't stacked yet.
9+
![PR can be stacked](./documentation/changelog/0.174.0/pull_can_stack_banner.png)
10+
- Polished the "Unstack", "Hide", and "Update stack" buttons in the pull request overview.
11+
- The changes editor opened from the pull request overview now uses the same title as the overview tab.
12+
- Hide redundant tools and skills in the Agents window.
13+
14+
### Fixes
15+
16+
- Plugin no longer gives access to GitHub issues while using personal account. https://github.com/microsoft/vscode-pull-request-github/issues/9064
17+
- Re-requesting a review from Copilot doesn't work. https://github.com/microsoft/vscode-pull-request-github/pull/9089
18+
- Checkout button doesn't work in a restored pull request overview. https://github.com/microsoft/vscode-pull-request-github/pull/9088
19+
- The "Update stack" button doesn't show in the pull request overview until it's refreshed. https://github.com/microsoft/vscode-pull-request-github/pull/9086
20+
- Comment button isn't disabled while an attestation commit is being added during approval. https://github.com/microsoft/vscode-pull-request-github/pull/9078
21+
22+
## 0.172.0
23+
24+
### Changes
25+
26+
- The "Update stack" action now handles merge conflicts in stacked pull requests. When a rebase hits a conflict, you're guided to resolve it in the Source Control view, then continue or abort the rebase.
27+
28+
### Fixes
29+
30+
- Asked to delete remote branch manually after merging a pull request. https://github.com/microsoft/vscode-pull-request-github/issues/8966
31+
- Webview message reply callbacks are retained for the lifetime of the webview instead of being released when each request completes.
32+
33+
## 0.170.0
34+
35+
### Changes
36+
37+
- Add an "Update stack" action to the pull request overview, which rebases the branches in a stacked pull request onto their updated bases and pushes them. Requires that one of the PRs in the stack be checked out, and is still limited only to stacks that don't contain merge conflicts.
38+
39+
### Fixes
40+
41+
- Copilot pull request state polling throws `RangeError: Invalid array length` while accumulating paginated results. https://github.com/microsoft/vscode-pull-request-github/issues/9023
42+
- Issue links in overview HTML are emitted with an extra quote in href. https://github.com/microsoft/vscode-pull-request-github/issues/9022
43+
- Issue links wait on redundant serial GraphQL queries. https://github.com/microsoft/vscode-pull-request-github/issues/8979
44+
- Clicking the pull request number opens two GitHub tabs since 0.166.0. https://github.com/microsoft/vscode-pull-request-github/issues/8955
45+
- Pull request overview remains stuck checking mergeability after an `UNKNOWN` response. https://github.com/microsoft/vscode-pull-request-github/issues/8953
46+
47+
**_Thank You_**
48+
49+
* [@L4XB (Lukas)](https://github.com/L4XB): Don't open two browser tabs when clicking the pull request number [PR #8962](https://github.com/microsoft/vscode-pull-request-github/pull/8962)
50+
* [@strawberry-little-bear](https://github.com/strawberry-little-bear): Fix malformed issue links in overview HTML [PR #9025](https://github.com/microsoft/vscode-pull-request-github/pull/9025)
51+
* [@vsharha (Viktor Sharha)](https://github.com/vsharha): Fix mergeability polling in pull request overview [PR #8954](https://github.com/microsoft/vscode-pull-request-github/pull/8954)
52+
53+
## 0.168.0
54+
55+
### Changes
56+
57+
- Add support for stacked pull requests. Set `githubPullRequests.experimental.stacks` to `true` to enable this feature.
58+
59+
![Add existing pull requests to stack](./documentation/changelog/0.168.0/add-prs-to-stack.png)
60+
61+
![Stack shows in pull request webview](./documentation/changelog/0.168.0/show-pr-stack-in-webview.png)
62+
63+
![Unstack all pull requests in a stack](./documentation/changelog/0.168.0/unstack-a-stack.png)
64+
65+
- Show branch deletion options in a modal dialog after merging a pull request.
66+
- Support configuring and selecting between multiple GitHub Enterprise instances.
67+
68+
### Fixes
69+
70+
- Multiple accounts don't work for any but the first account added. https://github.com/microsoft/vscode-pull-request-github/issues/8789
71+
72+
## 0.166.1
73+
74+
### Fixes
75+
76+
- Fall back to the browser when a GitHub link cannot be resolved. https://github.com/microsoft/vscode-pull-request-github/issues/8959
77+
378
## 0.166.0
479

580
### Changes

‎README.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,29 @@ Check out https://www.youtube.com/watch?v=LdSwWxVzUpo for additional getting sta
3636

3737
There are several settings that can be used to configure the extension.
3838

39+
## GitHub Enterprise
40+
41+
VS Code 1.141 or later is required. If you use Insiders, keep it updated to the latest build.
42+
43+
Configure GHE.com and GitHub Enterprise Server instances using the built-in GitHub Authentication setting:
44+
45+
```json
46+
{
47+
"github-enterprise.uris": [
48+
"https://company.ghe.com",
49+
"https://github.example.com"
50+
]
51+
}
52+
```
53+
54+
The list order does not select a default instance. An explicitly configured list takes precedence over the deprecated `github-enterprise.uri` setting, including an empty list (`[]`), which disables Enterprise instances. If the list is not configured, the legacy setting still applies. Workspace and folder instance settings only apply in trusted workspaces.
55+
56+
GitHub Pull Requests uses **one selected Enterprise account at a time**, alongside a separate GitHub.com account. When another instance is needed or no account is selected, use **Select Account** in the Pull Requests or Login view. This opens account preferences for this extension and GitHub Enterprise directly, or starts sign-in if you have no Enterprise accounts yet. You can also run **GitHub Pull Requests: Select GitHub Enterprise Account...** or use **Accounts > Manage Extension Account Preferences...**. To add another instance, edit `github-enterprise.uris` in Settings; ordinary sign-in does not replace your existing list.
57+
58+
Removing an instance from the list does not delete its saved sign-ins. GitHub.com accounts do not need either Enterprise setting.
59+
60+
## Remotes and queries
61+
3962
As mentioned above, `githubPullRequests.remotes` is used to specify what remotes the extension should try to fetch pull requests from.
4063

4164
To customize the pull request tree, you can use the `githubPullRequests.queries` setting. This setting is a list of labels and search queries which populate the categories of the tree. By default, these queries are "Waiting For My Review", "Assigned To Me", and "Created By Me". An example of adding a "Mentioned Me" category is to change the setting to the following:

‎build/filters.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ module.exports.copyrightFilter = [
6666
'!tsconfig.json',
6767
'!tsconfig.test.json',
6868
'!tsconfig.webviews.json',
69+
'!webviews/tsconfig.json',
6970
'!tsconfig.scripts.json',
7071
'!tsfmt.json',
7172
'!**/queries*.gql',

‎common/views.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export interface CreatePullRequestNew {
7676
draft: boolean;
7777
autoMerge: boolean;
7878
autoMergeMethod?: MergeMethod;
79+
addToStack?: boolean;
80+
stackParentPullRequest?: number;
81+
stackNumber?: number;
7982
labels: ILabel[];
8083
projects: IProject[];
8184
assignees: IAccount[];
@@ -131,6 +134,8 @@ export interface CreateParamsNew {
131134
defaultMergeMethod?: MergeMethod;
132135
mergeMethodsAvailability?: MergeMethodsAvailability;
133136
baseHasMergeQueue: boolean;
137+
stackCandidate?: StackCandidate;
138+
addToStack?: boolean;
134139

135140
creating: boolean;
136141
reviewing: boolean;
@@ -151,6 +156,8 @@ export interface ChooseBaseRemoteAndBranchResult {
151156
mergeMethodsAvailability: MergeMethodsAvailability;
152157
autoMergeDefault: boolean;
153158
baseHasMergeQueue: boolean;
159+
stackCandidate?: StackCandidate;
160+
warning?: string;
154161
defaultTitle: string;
155162
defaultDescription: string;
156163
}
@@ -159,6 +166,15 @@ export interface ChooseCompareRemoteAndBranchResult {
159166
compareRemote: RemoteInfo;
160167
compareBranch: string;
161168
defaultCompareBranch: string;
169+
stackCandidate?: StackCandidate;
170+
warning?: string;
171+
}
172+
173+
export interface StackCandidate {
174+
parentPullRequestNumber: number;
175+
stackNumber?: number;
176+
size: number;
177+
url: string;
162178
}
163179

164180
export interface TitleAndDescriptionArgs {
103 KB
Loading
154 KB
Loading
48 KB
Loading
62.7 KB
Loading

0 commit comments

Comments
 (0)