Skip to content

Commit a12fe77

Browse files
authored
Merge branch 'main' into snippetVariants
2 parents 372ff5d + 0c94137 commit a12fe77

24 files changed

+453
-44
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Thanks for your change!
99
1010
* Remember to *test the cheatsheet manually* if you've added a new action,
1111
modifier, or scope -- or changed any Talon files.
12-
-->
1312
13+
Remove this comment.
14+
-->
1415

1516

1617
## Release notes

.github/workflows/deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
24+
- name: Upgrade Corepack
25+
run: npm install --global [email protected]
26+
2327
- name: Enable Corepack
2428
run: corepack enable
2529

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR Description
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize]
6+
merge_group:
7+
branches: [main]
8+
9+
jobs:
10+
validate-pr-description:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up workspace
14+
uses: actions/checkout@v2
15+
16+
- name: Validate description
17+
run: |
18+
# Fetch PR description from env with jq
19+
PR_DESCRIPTION=$(jq -r ".pull_request.body" "$GITHUB_EVENT_PATH")
20+
KEYWORD="REQUIRED_KEYWORD"
21+
22+
# Ensure PR author removed the welcome comment
23+
if [[ $PR_DESCRIPTION = *"<!--"* ]] || [[ $PR_DESCRIPTION = *"-->"* ]]; then
24+
echo "FAILED: Please remove the welcome comment from your PR description."
25+
exit 1
26+
else
27+
echo "OK: Welcome comment is removed your PR description."
28+
fi
29+
30+
echo "PASS: All checks OK!"

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
with:
2828
python-version: 3.x
2929

30+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
31+
- name: Upgrade Corepack
32+
run: npm install --global [email protected]
33+
3034
- name: Enable Corepack
3135
run: corepack enable
3236

.github/workflows/test-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
20+
- name: Upgrade Corepack
21+
run: npm install --global [email protected]
22+
1923
- name: Enable Corepack
2024
run: corepack enable
2125

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4
3939

40+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
41+
- name: Upgrade Corepack
42+
run: npm install --global --force [email protected]
43+
4044
- name: Enable Corepack
4145
run: corepack enable
4246

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ next-env.d.ts
4545

4646
# test subset config
4747
packages/test-harness/testSubsetGrep.properties
48+
packages/test-harness/failedTests.properties
49+
4850

4951
# cursorless-neovim
5052
cursorless.nvim/node/cursorless-neovim

.vscode/launch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"request": "launch",
3232
"env": {
3333
"CURSORLESS_MODE": "test",
34+
"CURSORLESS_LOG_FAILED": "true",
3435
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
3536
},
3637
"args": [
@@ -52,6 +53,7 @@
5253
"env": {
5354
"CURSORLESS_MODE": "test",
5455
"CURSORLESS_RUN_TEST_SUBSET": "true",
56+
"CURSORLESS_LOG_FAILED": "true",
5557
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
5658
},
5759
"args": [
@@ -136,6 +138,7 @@
136138
"program": "${workspaceFolder}/packages/test-harness/dist/runTalonTests.cjs",
137139
"env": {
138140
"CURSORLESS_MODE": "test",
141+
"CURSORLESS_LOG_FAILED": "true",
139142
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
140143
},
141144
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
@@ -171,6 +174,7 @@
171174
"program": "${workspaceFolder}/packages/test-harness/dist/runTalonJsTests.cjs",
172175
"env": {
173176
"CURSORLESS_MODE": "test",
177+
"CURSORLESS_LOG_FAILED": "true",
174178
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
175179
},
176180
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
if True:
2+
a
3+
elif False:
4+
b
5+
else:
6+
c
7+
---
8+
9+
[#1 Content] =
10+
[#1 Removal] = 1:4-1:5
11+
>-<
12+
1| a
13+
14+
[#1 Domain] = 0:0-1:5
15+
>--------
16+
0| if True:
17+
1| a
18+
-----<
19+
20+
[#1 Insertion delimiter] = " "
21+
22+
23+
[#2 Content] =
24+
[#2 Removal] = 3:4-3:5
25+
>-<
26+
3| b
27+
28+
[#2 Domain] = 2:0-3:5
29+
>-----------
30+
2| elif False:
31+
3| b
32+
-----<
33+
34+
[#2 Insertion delimiter] = " "
35+
36+
37+
[#3 Content] =
38+
[#3 Removal] = 5:4-5:5
39+
>-<
40+
5| c
41+
42+
[#3 Domain] = 4:0-5:5
43+
>-----
44+
4| else:
45+
5| c
46+
-----<
47+
48+
[#3 Insertion delimiter] = " "

0 commit comments

Comments
 (0)