Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8b017c

Browse files
committed
Merge branch 'main' into korgpolish
2 parents5c4460b +9664238 commitc8b017c

File tree

80 files changed

+3981
-1116
lines changed

Some content is hidden

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

80 files changed

+3981
-1116
lines changed

‎.github/actions/setup-node/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ runs:
1313
-name:Install pnpm
1414
uses:pnpm/action-setup@v3
1515
with:
16-
version:9
16+
version:9.6
1717
-name:Setup Node
18-
uses:actions/setup-node@v4.0.1
18+
uses:actions/setup-node@v4.0.3
1919
with:
20-
node-version:18.19.0
20+
node-version:20.16.0
2121
# See https://github.com/actions/setup-node#caching-global-packages-data
2222
cache:"pnpm"
2323
cache-dependency-path:${{ inputs.directory }}/pnpm-lock.yaml

‎.github/dependabot.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,37 +86,30 @@ updates:
8686
-"@mui*"
8787
react:
8888
patterns:
89-
-"react*"
90-
-"@types/react*"
89+
-"react"
90+
-"react-dom"
91+
-"@types/react"
92+
-"@types/react-dom"
9193
emotion:
9294
patterns:
9395
-"@emotion*"
96+
exclude-patterns:
97+
-"jest-runner-eslint"
9498
eslint:
9599
patterns:
96100
-"eslint*"
97101
-"@typescript-eslint*"
98102
jest:
99103
patterns:
100-
-"jest*"
104+
-"jest"
101105
-"@types/jest"
102106
vite:
103107
patterns:
104108
-"vite*"
105109
-"@vitejs/plugin-react"
106110
ignore:
107-
# Ignorepatchupdatesfor all dependencies
111+
# Ignoremajor versionupdatesto avoid breaking changes
108112
-dependency-name:"*"
109-
update-types:
110-
-version-update:semver-patch
111-
# Ignore major updates to Node.js types, because they need to
112-
# correspond to the Node.js engine version
113-
-dependency-name:"@types/node"
114113
update-types:
115114
-version-update:semver-major
116-
# Ignore @storybook updates, run `pnpm dlx storybook@latest upgrade` to upgrade manually
117-
-dependency-name:"*storybook*"# matches @storybook/* and storybook*
118-
update-types:
119-
-version-update:semver-major
120-
-version-update:semver-minor
121-
-version-update:semver-patch
122115
open-pull-requests-limit:15

‎.github/workflows/ci.yaml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
185185
# Check for any typos
186186
-name:Check for typos
187-
uses:crate-ci/typos@v1.23.5
187+
uses:crate-ci/typos@v1.23.6
188188
with:
189189
config:.github/workflows/typos.toml
190190

@@ -709,7 +709,6 @@ jobs:
709709
-test-e2e
710710
-offlinedocs
711711
-sqlc-vet
712-
-dependency-license-review
713712
# Allow this job to run even if the needed jobs fail, are skipped or
714713
# cancelled.
715714
if:always()
@@ -726,7 +725,6 @@ jobs:
726725
echo "- test-js: ${{ needs.test-js.result }}"
727726
echo "- test-e2e: ${{ needs.test-e2e.result }}"
728727
echo "- offlinedocs: ${{ needs.offlinedocs.result }}"
729-
echo "- dependency-license-review: ${{ needs.dependency-license-review.result }}"
730728
echo
731729
732730
# We allow skipped jobs to pass, but not failed or cancelled jobs.
@@ -968,43 +966,3 @@ jobs:
968966
-name:Setup and run sqlc vet
969967
run:|
970968
make sqlc-vet
971-
972-
# dependency-license-review checks that no license-incompatible dependencies have been introduced.
973-
# This action is not intended to do a vulnerability check since that is handled by a separate action.
974-
dependency-license-review:
975-
runs-on:ubuntu-latest
976-
if:github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]'
977-
steps:
978-
-name:"Checkout Repository"
979-
uses:actions/checkout@v4
980-
-name:"Dependency Review"
981-
id:review
982-
uses:actions/dependency-review-action@v4.3.2
983-
with:
984-
allow-licenses:Apache-2.0, 0BSD, BSD-2-Clause, BSD-3-Clause, CC0-1.0, ISC, MIT, MIT-0, MPL-2.0, OFL-1.1, BSD-3-Clause-Clear
985-
allow-dependencies-licenses:"pkg:golang/github.com/coder/wgtunnel@0.1.13-0.20240522110300-ade90dfb2da0, pkg:npm/pako@1.0.11, pkg:npm/caniuse-lite@1.0.30001639, pkg:githubactions/alwaysmeticulous/report-diffs-action/cloud-compute"
986-
license-check:true
987-
vulnerability-check:false
988-
-name:"Report"
989-
# make sure this step runs even if the previous failed
990-
if:always()
991-
shell:bash
992-
env:
993-
VULNERABLE_CHANGES:${{ steps.review.outputs.invalid-license-changes }}
994-
run:|
995-
fields=( "unlicensed" "unresolved" "forbidden" )
996-
997-
# This is unfortunate that we have to do this but the action does not support failing on
998-
# an unknown license. The unknown dependency could easily have a GPL license which
999-
# would be problematic for us.
1000-
# Track https://github.com/actions/dependency-review-action/issues/672 for when
1001-
# we can remove this brittle workaround.
1002-
for field in "${fields[@]}"; do
1003-
# Use jq to check if the array is not empty
1004-
if [[ $(echo "$VULNERABLE_CHANGES" | jq ".${field} | length") -ne 0 ]]; then
1005-
echo "Invalid or unknown licenses detected, contact @sreya to ensure your added dependency falls under one of our allowed licenses."
1006-
echo "$VULNERABLE_CHANGES" | jq
1007-
exit 1
1008-
fi
1009-
done
1010-
echo "No incompatible licenses detected"

‎cli/notifications_test.go

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ import (
1616
"github.com/coder/coder/v2/testutil"
1717
)
1818

19+
funccreateOpts(t*testing.T)*coderdtest.Options {
20+
t.Helper()
21+
22+
dt:=coderdtest.DeploymentValues(t)
23+
dt.Experiments= []string{string(codersdk.ExperimentNotifications)}
24+
return&coderdtest.Options{
25+
DeploymentValues:dt,
26+
}
27+
}
28+
1929
funcTestNotifications(t*testing.T) {
2030
t.Parallel()
2131

@@ -42,7 +52,7 @@ func TestNotifications(t *testing.T) {
4252
t.Parallel()
4353

4454
// given
45-
ownerClient,db:=coderdtest.NewWithDatabase(t,nil)
55+
ownerClient,db:=coderdtest.NewWithDatabase(t,createOpts(t))
4656
_=coderdtest.CreateFirstUser(t,ownerClient)
4757

4858
// when
@@ -72,7 +82,7 @@ func TestPauseNotifications_RegularUser(t *testing.T) {
7282
t.Parallel()
7383

7484
// given
75-
ownerClient,db:=coderdtest.NewWithDatabase(t,nil)
85+
ownerClient,db:=coderdtest.NewWithDatabase(t,createOpts(t))
7686
owner:=coderdtest.CreateFirstUser(t,ownerClient)
7787
anotherClient,_:=coderdtest.CreateAnotherUser(t,ownerClient,owner.OrganizationID)
7888

@@ -87,7 +97,7 @@ func TestPauseNotifications_RegularUser(t *testing.T) {
8797
require.Error(t,err)
8898
require.ErrorAsf(t,err,&sdkError,"error should be of type *codersdk.Error")
8999
assert.Equal(t,http.StatusForbidden,sdkError.StatusCode())
90-
assert.Contains(t,sdkError.Message,"Insufficient permissions to update notifications settings.")
100+
assert.Contains(t,sdkError.Message,"Forbidden.")
91101

92102
// then
93103
ctx,cancel:=context.WithTimeout(context.Background(),testutil.WaitShort)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp