Skip to content

Commit dc630d7

Browse files
authored
Merge branch 'master' into add-null-not-distinct
2 parents d93c94d + d4f7b44 commit dc630d7

File tree

475 files changed

+42834
-26903
lines changed

Some content is hidden

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

475 files changed

+42834
-26903
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@
77
If unsure about something.. just do as best as you're able,
88
or reach out through our community support channels!
99
https://github.com/typeorm/typeorm/blob/master/docs/support.md
10+
https://github.com/typeorm/typeorm/blob/master/CONTRIBUTING.md
1011
-->
1112

1213
### Description of change
1314

1415
<!--
15-
Please be clear and concise what the change is intended to do,
16-
why this change is needed, and how you've verified that it
17-
corrects what you intended.
16+
Please describe:
17+
- what the change is intended to do
18+
- why this change is needed
19+
- how you've verified it
20+
- any other context that will help reviewers understand the change
1821
1922
In some cases it may be helpful to include the current behavior
2023
and the new behavior.
21-
22-
If the change is related to an open issue, you can link it here.
23-
If you include `Fixes #0000` (replacing `0000` with the issue number)
24-
when this is merged it will automatically mark the issue as fixed and
25-
close it.
2624
-->
2725

28-
2926
### Pull-Request Checklist
3027

3128
<!--
@@ -34,13 +31,10 @@
3431
If an item is not applicable, you can add "N/A" to the end.
3532
-->
3633

37-
- [ ] Code is up-to-date with the `master` branch
38-
- [ ] `npm run format` to apply prettier formatting
39-
- [ ] `npm run test` passes with this change
40-
- [ ] This pull request links relevant issues as `Fixes #0000`
41-
- [ ] There are new or updated unit tests validating the change
42-
- [ ] Documentation has been updated to reflect this change
43-
- [ ] The new commits follow conventions explained in [CONTRIBUTING.md](https://github.com/typeorm/typeorm/blob/master/CONTRIBUTING.md)
34+
- [ ] Code is up-to-date with the `master` branch
35+
- [ ] This pull request links relevant issues as `Fixes #00000`
36+
- [ ] There are new or updated unit tests validating the change
37+
- [ ] Documentation has been updated to reflect this change
4438

4539
<!--
4640
🎉 Thank you for contributing and making TypeORM even better!
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Close Stale Issues
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
close-stale-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
12+
steps:
13+
- uses: actions/stale@v10
14+
with:
15+
days-before-stale: 180 # 6 months
16+
days-before-close: 0
17+
days-before-pr-stale: -1
18+
days-before-pr-close: -1
19+
stale-issue-message: ""
20+
close-issue-message: |
21+
TypeORM has returned to active development after recently transitioning to new leadership ([see related announcement](https://typeorm.io/docs/future-of-typeorm/)).
22+
23+
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
24+
25+
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
26+
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
27+
stale-issue-label: "stale"
28+
exempt-issue-labels: "pinned,security"

.github/workflows/codeql.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: "CodeQL"
2-
1+
name: CodeQL
32
on:
43
push:
5-
branches: ["master"]
4+
branches:
5+
- master
6+
paths-ignore:
7+
- "docs/**"
68
pull_request:
7-
branches: ["master"]
9+
branches:
10+
- master
11+
paths-ignore:
12+
- "docs/**"
813
schedule:
914
- cron: "21 14 * * 2"
1015

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Commit Validation
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
paths-ignore:
7+
- "docs/**"
8+
pull_request:
9+
branches:
10+
- "**"
11+
paths-ignore:
12+
- "docs/**"
13+
workflow_dispatch:
14+
15+
jobs:
16+
formatting:
17+
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.fork) }}
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: "npm"
26+
27+
- run: npm ci
28+
- run: npm run lint
29+
- run: npm run format:ci
30+
31+
build:
32+
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.fork) }}
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
cache: "npm"
41+
42+
- run: npm ci
43+
- run: npm run compile
44+
45+
- name: Upload build
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: build
49+
path: build/
50+
retention-days: 1
51+
52+
tests-linux:
53+
needs: build
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
node-version: [18, 20]
58+
uses: ./.github/workflows/tests-linux.yml
59+
with:
60+
node-version: ${{matrix.node-version}}
61+
62+
tests-windows:
63+
needs: build
64+
uses: ./.github/workflows/tests-windows.yml
65+
with:
66+
node-version: 20
67+
68+
# Run with most databases possible to provide the coverage of the tests
69+
coverage:
70+
runs-on: ubuntu-latest
71+
needs: [tests-linux, tests-windows]
72+
steps:
73+
- name: Coveralls Finished
74+
uses: coverallsapp/github-action@v2
75+
with:
76+
parallel-finished: true

.github/workflows/coverage.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/database-tests-compose.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/docsearch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Index docs to Typesense
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
index_docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Index docs to Typesense
17+
run: |
18+
docker run \
19+
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \
20+
-e TYPESENSE_HOST="${{ secrets.TYPESENSE_HOST }}" \
21+
-e TYPESENSE_PORT="443" \
22+
-e TYPESENSE_PROTOCOL="https" \
23+
-e CONFIG="$(cat docs/docsearch-scraper-config.json | jq -r tostring)" \
24+
typesense/docsearch-scraper

.github/workflows/preview.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR preview release
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/preview.yml"
7+
- "src/**"
8+
- "gulpfile.ts"
9+
- "package.json"
10+
- "tsconfig.json"
11+
12+
jobs:
13+
release:
14+
name: Release preview build
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Use Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
cache: "npm"
26+
node-version: 20
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Build
32+
run: npm run package
33+
34+
- name: Release preview version
35+
run: npm run publish:preview

.github/workflows/publish-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
name: Publish Package to npmjs
22
on:
33
release:
4-
types: [published]
5-
workflow_dispatch:
4+
types:
5+
- published
6+
67
jobs:
7-
build:
8+
publish:
89
runs-on: ubuntu-latest
910
permissions:
1011
contents: read
1112
id-token: write
1213
steps:
1314
- uses: actions/checkout@v4
14-
# Setup .npmrc file to publish to npm
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: '20.x'
18-
registry-url: 'https://registry.npmjs.org'
17+
node-version: 20
18+
registry-url: "https://registry.npmjs.org"
1919
- run: npm ci
2020
- run: npm run package
2121
- run: |

0 commit comments

Comments
 (0)