Pull Requests

Our process for contributing pull requests to Directus.

Due to an overwhelming increase in the number of AI generated pull requests, we have decided to suspend the opening of new pull requests to members of the Directus organization and a select number of external collaborators on an invite-only basis.

Please read here to learn more.

Choosing What to Implement

When a maintainer sees a change we want to take on and a contributor who can help, we’ll look at their understanding of the problem and their ability to work through the implementation. If it’s a good fit, a maintainer will reach out directly, agree on the scope, and invite them to the repo so they can open a PR. From there, the PR will go through our usual review process.

If you’re interested in implementing a fix, let us know in the issue and wait for a maintainer to reach out before spending time on a patch for upstream. If you use AI, avoid one-shotting the fix and sending it straight to review. Make sure you understand the change, test it yourself, and can explain why and how it fixes the problem.

We welcome proposals for any open Issue. Issues labeled "Good First Issue" are typically easier to resolve for those who haven't contributed to the codebase before, and are therefore a great starting point.

Contributor License Agreement (CLA)

All code contributors are required to sign the Contributor License Agreement (CLA). When you start a pull request, a GitHub Action will prompt you to review the CLA and sign it by adding your name to contributors.yml. To clarify the intellectual property rights in the project and any Contributions, Directus requires that You accept the Contributor License Agreement. This license is for your protection as a contributor as well as the protection of Directus, recipients of software distributed or made available by Directus, and other contributors; it does not change your rights to use your own Contributions for any other purpose.

Changesets

To properly generate changelogs and determine the right version number after a change is merged, we rely on changesets. Each pull request should include a changeset that describes whether the change is a patch/minor/major version bump, and describe what the change is. Changesets should be written in past tense.

A changeset can be generated via the following command:

pnpm changeset

Changeset Bump Definitions

The following are the types of version bumps that can be specified in a changeset:

  • Major (x.0.0) - A change has been made that is incompatible with previous versions.
  • Minor (0.x.0) - A feature has been added that is backwards compatible with previous versions.
  • Patch (0.0.x) - A bug has been fixed that is backwards compatible with previous versions.

Notices

Use a notice for changes that deserve extra visibility in the release notes, such as deprecations, required migrations, or behavior changes that users upgrading and/or extension authors should be aware of.

Add a ::: notice block at the end of the changeset body:

---
"@directus/app": minor
---

Deprecated the `VResizeable` component

::: notice

- Deprecation for extensions: The globally registered `VResizeable` component has been deprecated. Extension authors should migrate to `@directus/vue-split-panel` or provide their own implementation.

:::

The notice is extracted and displayed in the Potential Breaking Changes section at the top of the release notes. The rest of the changeset remains in its normal category.

Notices always appear under Potential Breaking Changes, regardless of whether the changeset is a major, minor, or patch release. Adding a notice does not affect the version bump. Choose the bump type based on the impact of the change, and add a notice whenever the change warrants additional attention.

Notice detection is strict. If the syntax does not match exactly, the notice will not be extracted.

To ensure your notice is recognized:

  • Start the block with exactly ::: notice: all lowercase, with a single space between ::: and notice.
  • End the block with ::: on its own line.
  • Do not indent the opening or closing markers, or include trailing whitespace.
  • Include some content between the markers. An empty block is not detected.
  • Include exactly one notice block per changeset. Multiple notce blocks will result in a malformed output

Get once-a-month release notes & real‑world code tips...no fluff. 🐰