Skip to content

Commit a030723

Browse files
committed
Merge branch 'main' into fix/storage-azure-use-toJson-to-get-the-raw-headers-instead-of-rawHeaders
2 parents 57ccf58 + 008a52d commit a030723

File tree

88 files changed

+1390
-518
lines changed

Some content is hidden

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

88 files changed

+1390
-518
lines changed

.github/actions/triage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
steps:
2727
- name: Checkout code
2828
if: ${{ github.event_name != 'pull_request' }}
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
- name: Run action
3131
run: node ${{ github.action_path }}/dist/index.js
3232
shell: sh

.github/workflows/audit-dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-24.04
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
- name: Setup
2929
uses: ./.github/actions/setup
3030

@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Slack notification on failure
3636
if: failure()
37-
uses: slackapi/[email protected].0
37+
uses: slackapi/[email protected].1
3838
with:
3939
webhook: ${{ inputs.debug == 'true' && secrets.SLACK_TEST_WEBHOOK_URL || secrets.SLACK_WEBHOOK_URL }}
4040
webhook-type: incoming-webhook

.github/workflows/dispatch-event.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Repository dispatch
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Dispatch event
1717
if: ${{ github.event_name == 'workflow_dispatch' }}

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: tune linux network
3434
run: sudo ethtool -K eth0 tx off rx off
3535

36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3737
- uses: dorny/paths-filter@v3
3838
id: filter
3939
with:
@@ -62,7 +62,7 @@ jobs:
6262
lint:
6363
runs-on: ubuntu-24.04
6464
steps:
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@v5
6666
with:
6767
fetch-depth: 0
6868

@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ubuntu-24.04
7979

8080
steps:
81-
- uses: actions/checkout@v4
81+
- uses: actions/checkout@v5
8282

8383
- name: Node setup
8484
uses: ./.github/actions/setup
@@ -98,7 +98,7 @@ jobs:
9898
needs: [changes, build]
9999
if: ${{ needs.changes.outputs.needs_tests == 'true' }}
100100
steps:
101-
- uses: actions/checkout@v4
101+
- uses: actions/checkout@v5
102102

103103
- name: Node setup
104104
uses: ./.github/actions/setup
@@ -122,7 +122,7 @@ jobs:
122122
needs: [changes, build]
123123
if: ${{ needs.changes.outputs.needs_tests == 'true' }}
124124
steps:
125-
- uses: actions/checkout@v4
125+
- uses: actions/checkout@v5
126126

127127
- name: Node setup
128128
uses: ./.github/actions/setup
@@ -184,7 +184,7 @@ jobs:
184184
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
185185

186186
steps:
187-
- uses: actions/checkout@v4
187+
- uses: actions/checkout@v5
188188

189189
- name: Node setup
190190
uses: ./.github/actions/setup
@@ -309,7 +309,7 @@ jobs:
309309
env:
310310
SUITE_NAME: ${{ matrix.suite }}
311311
steps:
312-
- uses: actions/checkout@v4
312+
- uses: actions/checkout@v5
313313

314314
- name: Node setup
315315
uses: ./.github/actions/setup
@@ -447,7 +447,7 @@ jobs:
447447
env:
448448
SUITE_NAME: ${{ matrix.suite }}
449449
steps:
450-
- uses: actions/checkout@v4
450+
- uses: actions/checkout@v5
451451

452452
- name: Node setup
453453
uses: ./.github/actions/setup
@@ -550,7 +550,7 @@ jobs:
550550
MONGODB_VERSION: 6.0
551551

552552
steps:
553-
- uses: actions/checkout@v4
553+
- uses: actions/checkout@v5
554554

555555
- name: Node setup
556556
uses: ./.github/actions/setup
@@ -647,7 +647,7 @@ jobs:
647647
needs: [changes, build]
648648
if: ${{ needs.changes.outputs.needs_tests == 'true' }}
649649
steps:
650-
- uses: actions/checkout@v4
650+
- uses: actions/checkout@v5
651651

652652
- name: Node setup
653653
uses: ./.github/actions/setup
@@ -706,7 +706,7 @@ jobs:
706706
actions: read # for fetching base branch bundle stats
707707
pull-requests: write # for comments
708708
steps:
709-
- uses: actions/checkout@v4
709+
- uses: actions/checkout@v5
710710

711711
- name: Node setup
712712
uses: ./.github/actions/setup

.github/workflows/post-release-templates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
release_tag: ${{ steps.determine_tag.outputs.release_tag }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0
2323
sparse-checkout: .github/workflows
@@ -54,7 +54,7 @@ jobs:
5454
POSTGRES_DB: payloadtests
5555
steps:
5656
- name: Checkout
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v5
5858

5959
- name: Setup
6060
uses: ./.github/actions/setup

.github/workflows/post-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-24.04
2424
if: ${{ github.event_name != 'workflow_dispatch' }}
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727
- uses: ./.github/actions/release-commenter
2828
continue-on-error: true
2929
env:
@@ -43,9 +43,9 @@ jobs:
4343
if: ${{ github.event_name != 'workflow_dispatch' }}
4444
steps:
4545
- name: Checkout
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747
- name: Github Releases To Discord
48-
uses: SethCohen/github-releases-to-discord@v1.16.2
48+
uses: SethCohen/github-releases-to-discord@v1.19.0
4949
with:
5050
webhook_url: ${{ secrets.DISCORD_RELEASES_WEBHOOK_URL }}
5151
color: '16777215'

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: lint-pr-title
1515
runs-on: ubuntu-24.04
1616
steps:
17-
- uses: amannn/action-semantic-pull-request@v5
17+
- uses: amannn/action-semantic-pull-request@v6
1818
id: lint_pr_title
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
- name: Setup
2323
uses: ./.github/actions/setup
2424
- name: Load npm token

.github/workflows/triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
if: github.event_name == 'issues'
9191
runs-on: ubuntu-24.04
9292
steps:
93-
- uses: actions/checkout@v4
93+
- uses: actions/checkout@v5
9494
with:
9595
ref: ${{ github.event.pull_request.base.ref }}
9696
token: ${{ secrets.GITHUB_TOKEN }}

AGENTS.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Payload Monorepo Agent Instructions
2+
3+
## Project Structure
4+
5+
- Packages are located in the `packages/` directory.
6+
- The main Payload package is `packages/payload`. This contains the core functionality.
7+
- Database adapters are in `packages/db-*`.
8+
- The UI package is `packages/ui`.
9+
- The Next.js integration is in `packages/next`.
10+
- Rich text editor packages are in `packages/richtext-*`.
11+
- Storage adapters are in `packages/storage-*`.
12+
- Email adapters are in `packages/email-*`.
13+
- Plugins which add additional functionality are in `packages/plugin-*`.
14+
- Documentation is in the `docs/` directory.
15+
- Monorepo tooling is in the `tools/` directory.
16+
- Test suites and configs are in the `test/` directory.
17+
- LLMS.txt is at URL: https://payloadcms.com/llms.txt
18+
- LLMS-FULL.txt is at URL: https://payloadcms.com/llms-full.txt
19+
20+
## Dev environment tips
21+
22+
- Any package can be built using a `pnpm build:*` script defined in the root `package.json`. These typically follow the format `pnpm build:<directory_name>`. The options are all of the top-level directories inside the `packages/` directory. Ex `pnpm build:db-mongodb` which builds the `packages/db-mongodb` package.
23+
- ALL packages can be built with `pnpm build:all`.
24+
- Use `pnpm dev` to start the monorepo dev server. This loads the default config located at `test/_community/config.ts`.
25+
- Specific dev configs for each package can be run with `pnpm dev <directory_name>`. The options are all of the top-level directories inside the `test/` directory. Ex `pnpm dev fields` which loads the `test/fields/config.ts` config. The directory name can either encompass a single area of functionality or be the name of a specific package.
26+
27+
## Testing instructions
28+
29+
- There are unit, integration, and e2e tests in the monorepo.
30+
- Unit tests can be run with `pnpm test:unit`.
31+
- Integration tests can be run with `pnpm test:int`. Individual test suites can be run with `pnpm test:int <directory_name>`, which will point at `test/<directory_name>/int.spec.ts`.
32+
- E2E tests can be run with `pnpm test:e2e`.
33+
- All tests can be run with `pnpm test`.
34+
- Prefer running `pnpm test:int` for verifying local code changes.
35+
36+
## PR Guidelines
37+
38+
- This repository follows conventional commits for PR titles
39+
- PR Title format: <type>(<scope>): <title>. Title must start with a lowercase letter.
40+
- Valid types are build, chore, ci, docs, examples, feat, fix, perf, refactor, revert, style, templates, test
41+
- Prefer `feat` for new features and `fix` for bug fixes.
42+
- Valid scopes are the following regex patterns: cpa, db-\*, db-mongodb, db-postgres, db-vercel-postgres, db-sqlite, drizzle, email-\*, email-nodemailer, email-resend, eslint, graphql, live-preview, live-preview-react, next, payload-cloud, plugin-cloud, plugin-cloud-storage, plugin-form-builder, plugin-import-export, plugin-multi-tenant, plugin-nested-docs, plugin-redirects, plugin-search, plugin-sentry, plugin-seo, plugin-stripe, richtext-\*, richtext-lexical, richtext-slate, storage-\*, storage-azure, storage-gcs, storage-uploadthing, storage-vercel-blob, storage-s3, translations, ui, templates, examples(\/(\w|-)+)?, deps
43+
- Scopes should be chosen based upon the package(s) being modified. If multiple packages are being modified, choose the most relevant one or no scope at all.
44+
- Example PR titles:
45+
- `feat(db-mongodb): add support for transactions`
46+
- `feat(richtext-lexical): add options to hide block handles`
47+
- `fix(ui): json field type ignoring editorOptions`
48+
49+
## Commit Guidelines
50+
51+
- This repository follows conventional commits for commit messages
52+
- The first commit of a branch should follow the PR title format: <type>(<scope>): <title>. Follow the same rules as PR titles.
53+
- Subsequent commits should prefer `chore` commits without a scope unless a specific package is being modified.
54+
- These will eventually be squashed into the first commit when merging the PR.

0 commit comments

Comments
 (0)