Skip to content

Commit 0ce62d9

Browse files
committed
Merge branch 'main' into fix/assetmanager-stack-updates
2 parents 51ac19d + 13563fc commit 0ce62d9

File tree

432 files changed

+31960
-5337
lines changed

Some content is hidden

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

432 files changed

+31960
-5337
lines changed

.github/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.17.1
1+
22.18.0
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
on:
2+
issues:
3+
types: [opened]
4+
discussion:
5+
types: [created]
6+
7+
name: Close likely duplicates
8+
permissions: {}
9+
10+
jobs:
11+
get_body:
12+
runs-on: ubuntu-latest
13+
env:
14+
EVENT: ${{ toJSON(github.event) }}
15+
outputs:
16+
body: ${{ steps.get_body.outputs.body }}
17+
steps:
18+
- id: get_body
19+
run: |
20+
BODY=$(echo """$EVENT""" | jq -r '.issue // .discussion | .body' | base64 -w 0)
21+
echo "body=$BODY" >> $GITHUB_OUTPUT
22+
23+
get_checkbox_json:
24+
runs-on: ubuntu-latest
25+
needs: get_body
26+
container:
27+
image: yshavit/mdq:0.7.2
28+
outputs:
29+
json: ${{ steps.get_checkbox.outputs.json }}
30+
steps:
31+
- id: get_checkbox
32+
env:
33+
BODY: ${{ needs.get_body.outputs.body }}
34+
run: |
35+
JSON=$(echo "$BODY" | base64 -d | /mdq --output json '# I have searched | - [?] Yes')
36+
echo "json=$JSON" >> $GITHUB_OUTPUT
37+
38+
close_and_comment:
39+
runs-on: ubuntu-latest
40+
needs: get_checkbox_json
41+
if: ${{ !fromJSON(needs.get_checkbox_json.outputs.json).items[0].list[0].checked }}
42+
permissions:
43+
issues: write
44+
discussions: write
45+
steps:
46+
- name: Close issue
47+
if: ${{ github.event_name == 'issues' }}
48+
env:
49+
GH_TOKEN: ${{ github.token }}
50+
NODE_ID: ${{ github.event.issue.node_id }}
51+
run: |
52+
gh api graphql \
53+
-f issueId="$NODE_ID" \
54+
-f body="This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one." \
55+
-f query='
56+
mutation CommentAndCloseIssue($issueId: ID!, $body: String!) {
57+
addComment(input: {
58+
subjectId: $issueId,
59+
body: $body
60+
}) {
61+
__typename
62+
}
63+
64+
closeIssue(input: {
65+
issueId: $issueId,
66+
stateReason: DUPLICATE
67+
}) {
68+
__typename
69+
}
70+
}'
71+
72+
- name: Close discussion
73+
if: ${{ github.event_name == 'discussion' && github.event.discussion.category.name == 'Feature Request' }}
74+
env:
75+
GH_TOKEN: ${{ github.token }}
76+
NODE_ID: ${{ github.event.discussion.node_id }}
77+
run: |
78+
gh api graphql \
79+
-f discussionId="$NODE_ID" \
80+
-f body="This discussion has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one." \
81+
-f query='
82+
mutation CommentAndCloseDiscussion($discussionId: ID!, $body: String!) {
83+
addDiscussionComment(input: {
84+
discussionId: $discussionId,
85+
body: $body
86+
}) {
87+
__typename
88+
}
89+
90+
closeDiscussion(input: {
91+
discussionId: $discussionId,
92+
reason: DUPLICATE
93+
}) {
94+
__typename
95+
}
96+
}'

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
53+
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -63,7 +63,7 @@ jobs:
6363
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6464
# If this step fails, then you should remove it and run the build manually (see below)
6565
- name: Autobuild
66-
uses: github/codeql-action/autobuild@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
66+
uses: github/codeql-action/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
6767

6868
# ℹ️ Command-line programs to run using the OS shell.
6969
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -76,6 +76,6 @@ jobs:
7676
# ./location_of_script_within_repo/buildscript.sh
7777

7878
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
79+
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
8080
with:
8181
category: '/language:${{matrix.language}}'

.github/workflows/docs-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
permissions:
1919
contents: read
2020
outputs:
21-
should_run: ${{ steps.found_paths.outputs.docs == 'true' || steps.should_force.outputs.should_force == 'true' }}
21+
should_run: ${{ steps.found_paths.outputs.docs == 'true' || steps.found_paths.outputs.open-api == 'true' || steps.should_force.outputs.should_force == 'true' }}
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -32,6 +32,8 @@ jobs:
3232
- 'docs/**'
3333
workflow:
3434
- '.github/workflows/docs-build.yml'
35+
open-api:
36+
- 'open-api/immich-openapi-specs.json'
3537
- name: Check if we should force jobs to run
3638
id: should_force
3739
run: echo "should_force=${{ steps.found_paths.outputs.workflow == 'true' || github.event_name == 'release' || github.ref_name == 'main' }}" >> "$GITHUB_OUTPUT"

.github/workflows/preview-label.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
remove-label:
2222
runs-on: ubuntu-latest
23-
if: ${{ github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'preview') }}
23+
if: ${{ (github.event.action == 'closed' || github.event.pull_request.head.repo.fork) && contains(github.event.pull_request.labels.*.name, 'preview') }}
2424
permissions:
2525
pull-requests: write
2626
steps:
@@ -33,3 +33,15 @@ jobs:
3333
repo: context.repo.repo,
3434
name: 'preview'
3535
})
36+
37+
- uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
38+
if: ${{ github.event.pull_request.head.repo.fork }}
39+
with:
40+
message-id: 'preview-status'
41+
message: 'PRs from forks cannot have preview environments.'
42+
43+
- uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
44+
if: ${{ !github.event.pull_request.head.repo.fork }}
45+
with:
46+
message-id: 'preview-status'
47+
message: 'Preview environment has been removed.'

.github/workflows/static_analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130130

131131
- name: Upload SARIF file
132-
uses: github/codeql-action/upload-sarif@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
132+
uses: github/codeql-action/upload-sarif@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
133133
with:
134134
sarif_file: results.sarif
135135
category: zizmor

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ dev-update:
1010
dev-scale:
1111
@trap 'make dev-down' EXIT; COMPOSE_BAKE=true docker compose -f ./docker/docker-compose.dev.yml up --build -V --scale immich-server=3 --remove-orphans
1212

13+
dev-docs:
14+
npm --prefix docs run start
15+
1316
.PHONY: e2e
1417
e2e:
1518
@trap 'make e2e-down' EXIT; COMPOSE_BAKE=true docker compose -f ./e2e/docker-compose.yml up --build -V --remove-orphans

cli/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.17.1
1+
22.18.0

0 commit comments

Comments
 (0)