Skip to content

Commit 965bd2d

Browse files
authored
Merge branch 'main' into matching_model
2 parents 3b1d422 + b4054f5 commit 965bd2d

File tree

490 files changed

+22934
-22371
lines changed

Some content is hidden

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

490 files changed

+22934
-22371
lines changed

.dockerignore

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1-
node_modules
21
__pycache__
3-
build
2+
.ash_history
3+
.bash_history
4+
.cache
5+
.dockerignore
46
.env
5-
*.log
6-
*.md
7+
.envs
78
.git
89
.gitignore
10+
.local
11+
.next
12+
.pnpm-store
13+
.pytest_cache
14+
.ruff_cache
15+
.venv
16+
.vscode
17+
*.log
18+
backend/data
19+
backend/staticfiles
20+
build
21+
coverage
22+
dist
23+
docker
24+
Dockerfile.*
25+
node_modules
26+
npm-debug.log
27+
venv

.github/ansible/production/nest.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
dest: ~/cspell/Makefile
3636
mode: '0644'
3737

38+
- name: Ensure docs directory exists
39+
ansible.builtin.file:
40+
path: ~/docs
41+
state: directory
42+
mode: '0755'
43+
44+
- name: Copy docs makefile
45+
ansible.builtin.copy:
46+
src: '{{ github_workspace }}/docs/Makefile'
47+
dest: ~/docs/Makefile
48+
mode: '0644'
49+
3850
- name: Ensure frontend directory exists
3951
ansible.builtin.file:
4052
path: ~/frontend
@@ -69,12 +81,6 @@
6981
dest: ~/schema/Makefile
7082
mode: '0644'
7183

72-
- name: Copy directory recursively
73-
copy:
74-
src: '{{ github_workspace }}/backend/data'
75-
dest: ~/
76-
mode: '0755'
77-
7884
- name: Copy .env.backend
7985
copy:
8086
src: '{{ github_workspace }}/.env.backend'

.github/ansible/production/proxy.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
dest: ~/production.conf
1414
mode: '0644'
1515

16+
- name: Copy headers.conf
17+
ansible.builtin.copy:
18+
src: '{{ github_workspace }}/proxy/headers.conf'
19+
dest: ~/headers.conf
20+
mode: '0644'
21+
22+
- name: Copy redirects.conf
23+
ansible.builtin.copy:
24+
src: '{{ github_workspace }}/proxy/redirects.conf'
25+
dest: ~/redirects.conf
26+
mode: '0644'
27+
1628
- name: Update Docker images
1729
shell:
1830
cmd: docker compose pull

.github/ansible/staging/nest.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
dest: ~/cspell/Makefile
3636
mode: '0644'
3737

38+
- name: Ensure docs directory exists
39+
ansible.builtin.file:
40+
path: ~/docs
41+
state: directory
42+
mode: '0755'
43+
44+
- name: Copy docs makefile
45+
ansible.builtin.copy:
46+
src: '{{ github_workspace }}/docs/Makefile'
47+
dest: ~/docs/Makefile
48+
mode: '0644'
49+
3850
- name: Ensure frontend directory exists
3951
ansible.builtin.file:
4052
path: ~/frontend
@@ -71,14 +83,14 @@
7183

7284
- name: Ensure data directory exists
7385
ansible.builtin.file:
74-
path: ~/data
86+
path: ~/backend/data
7587
state: directory
7688
mode: '0755'
7789

7890
- name: Copy directory recursively
7991
copy:
8092
src: '{{ github_workspace }}/backend/data'
81-
dest: ~/
93+
dest: ~/backend/data
8294
mode: '0755'
8395

8496
- name: Copy .env.backend

.github/ansible/staging/proxy.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
dest: ~/staging.conf
1414
mode: '0644'
1515

16+
- name: Copy headers.conf
17+
ansible.builtin.copy:
18+
src: '{{ github_workspace }}/proxy/headers.conf'
19+
dest: ~/headers.conf
20+
mode: '0644'
21+
22+
- name: Copy redirects.conf
23+
ansible.builtin.copy:
24+
src: '{{ github_workspace }}/proxy/redirects.conf'
25+
dest: ~/redirects.conf
26+
mode: '0644'
27+
1628
- name: Update Docker images
1729
shell:
1830
cmd: docker compose pull

.github/dependabot.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
version: 2
22
updates:
33
- package-ecosystem: docker
4-
directory: /backend
4+
directory: /backend/docker
55
schedule:
66
interval: daily
77

88
- package-ecosystem: docker
9-
directory: /frontend
9+
directory: /cspell
10+
schedule:
11+
interval: daily
12+
13+
- package-ecosystem: docker
14+
directory: /docs/docker
15+
schedule:
16+
interval: daily
17+
18+
- package-ecosystem: docker
19+
directory: /frontend/docker
20+
schedule:
21+
interval: daily
22+
23+
- package-ecosystem: docker
24+
directory: /schema/docker
1025
schedule:
1126
interval: daily
1227

@@ -27,3 +42,15 @@ updates:
2742
schedule:
2843
interval: daily
2944
target-branch: main
45+
46+
- package-ecosystem: pip
47+
directory: /docs
48+
schedule:
49+
interval: daily
50+
target-branch: main
51+
52+
- package-ecosystem: pip
53+
directory: /schema
54+
schedule:
55+
interval: daily
56+
target-branch: main

.github/workflows/label-issues.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
1-
name: "Auto Label Issues"
1+
name: Auto Label Issues
2+
23
on:
34
issues:
45
types:
56
- edited
67
- opened
78

9+
permissions:
10+
issues: write
11+
812
jobs:
913
label:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- name: Apply Labels to Issues
13-
uses: actions/github-script@v7.0.1
17+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
1418
with:
1519
script: |
1620
const issue = context.payload.issue;
17-
const keywords = {
18-
"bug": ["error", "failure", "not working"],
19-
"enhancement": ["add", "feature request", "improve"],
20-
"question": ["clarification", "help", "how to"]
21+
if (!issue || (!issue.title && !issue.body)) return;
22+
23+
const title = issue.title?.toLowerCase() || "";
24+
const body = issue.body?.toLowerCase() || "";
25+
26+
const keywordMapping = {
27+
"bug": ["error", "failure", "not working", "crash", "unexpected"],
28+
"enhancement": ["add", "feature request", "improve", "suggestion"],
29+
"question": ["clarification", "help", "how to", "guidance"]
2130
};
2231
23-
let labels = [];
24-
for (const [label, words] of Object.entries(keywords)) {
25-
if (words.some(word => issue.title.toLowerCase().includes(word) || issue.body.toLowerCase().includes(word))) {
26-
labels.push(label);
27-
}
28-
}
32+
const labels = Object.entries(keywordMapping)
33+
.filter(([_, words]) => words.some(word => title.includes(word) || body.includes(word)))
34+
.map(([label, _]) => label);
2935
3036
if (labels.length > 0) {
3137
github.rest.issues.addLabels({

.github/workflows/label-pull-requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
pull-requests: write
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/labeler@v5
13+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
1414
with:
1515
configuration-path: .github/labeler.yml
1616
sync-labels: true

0 commit comments

Comments
 (0)