255 Commits

Author SHA1 Message Date
Brainslug
0deadb9062 Improve stale github action (#19551)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-29 18:23:26 +02:00
Pascal Jufer
96bb544c56 Support for prereleases in release workflow (#19510)
* Make release workflow compatible for prereleases

* Support prereleases in release-notes-generator

* Update readme

* Create metal-dodos-return.md

* Update .changeset/metal-dodos-return.md

* Override version of main package

* Rework & enable usage with changesets's prerelease mode

* Fix conditional DIRECTUS_PRERELEASE_ID output

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Add hint to beforeExit event

* Add basic test for getInfo

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-08-25 16:48:50 +02:00
ian
66a5e60fbe Enable more checks for branch (#19514) 2023-08-23 20:24:29 +02:00
Pascal Jufer
921ac972d0 Enable checks for next branch (#19511) 2023-08-23 13:22:36 -04:00
Rijk van Zanten
930550b546 Update config.yml 2023-08-10 10:57:10 -04:00
Rijk van Zanten
0fb1438b42 Create tiny_tweak.yml 2023-08-10 10:56:21 -04:00
Connor
92621429ee Linting and Formatting Upgrade (#18892)
* add docs to eslint

* update prettier ignore

* fix vitepress linting

* eslint ignore fixes

* prettier run

* update prettier ignore

* fix formatting

* enable linting of markdown files

* revert format command change

* fix irregular whitespace

* update dictionary

* (Changelog) Create four-boxes-shake.md

* Rework ESLint / Prettier setup

- Disable js/ts/vue files for Prettier to ensure linting/formatting is
  only happening via ESLint
- Rework formatting of code blocks in md files
  - Disable formatting of code blocks in md files under '/docs' by Prettier
  - Instead use "eslint-plugin-markdown" to format & __lint__ js*/ts*/vue such code blocks
  - Replace unmaintained "eslint-plugin-md" plugin by official "eslint-plugin-markdown" plugin
  - I'll check whether we can use this to format other code blocks
    (json, html, ...) as well
- Restructure, clean-up and apply some fixes to the ESLint config
  (Note: Not ready for flat config yet since not supported by
  vscode-eslint)
- Enable cache for ESLint / Prettier in scripts
- Clean-up ignore file
  - Explicit folder declaration (.../)
  - Don't ignore all 'extensions' folders in ESLint (only
    '/api/extensions/')
  - Enable formatting in '/.github' folder

* Fix all formatting issues with Prettier

* Update md files under /docs/.typedocs

* Fix lint issues in vue/js files

* ESLint / Prettier config revision v2

Enable Prettier for md code blocks, but only as warnings since it can
get into the way with Vitepress md extensions like '[!code ...]'
comments

* Remove prettier-ignore comments

* Make spellchecker happy

* Remove changeset

* Revert lint setup for code blocks

There are many cases in the docs where linting / formatting of code
blocks doesn't make
sense:
- Code block is only an excerpt - linter fails
- Code block contains special comments (e.g. markdown extensions) which
  needs to remain at the same place - formatting would break it
- ...

* Apply lint issues / formatting from temp lint setup

* Run formatter

* Fix merge failure

* Simplify & modernize ESLint / Prettier setup

No longer run Prettier via ESLint. Nowadays, this is the recommended
setup. There's no real need to run it this way, it's just an additional
layer.

Add VS Code settings to make the work with the new setup easier.

* Remove unused eslint disable directives

* Make editorconfig more useful

* Fix formatting issues reported by editorconfig

* Format files with Prettier

* Enable formatting of source translations file

* Format source translations file

* Remove unnecessary console error

* Remove unnecessary line

* Only ignore md files under .changeset

* Add CI reporter for Prettier

* Fail job on wrongly formatted files

* Fix format

* Test Prettier action on changed/added file

* Use simple CI format check for now & no cache

* Revert "Test Prettier action on changed/added file"

This reverts commit 4f7d8826ad.

* Introduce code blocks check for docs

* Fix code block issues

* Ignore auto-generated packages dir

* Fix comment position

* Also lint `/app/.storybook`

* Reformat modified files

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-29 11:54:01 +02:00
Pascal Jufer
82aff75443 Fix "Assign Next Release Milestone" workflow for PR's from forks (#19009)
* Make "Assign Next Release Milestone" workflow work on external PR's

* Reduce external factors, replacing actions by gh api calls
2023-06-27 11:49:41 -04:00
Rijk van Zanten
cd1b1ec70d Delete CODEOWNERS 2023-06-22 18:56:28 -04:00
Rijk van Zanten
d089b31a91 Update pull_request_template.md 2023-06-12 09:30:54 -04:00
ian
4249bc7734 Fix existing milestone error (#18828) 2023-06-06 15:46:46 -04:00
ian
79a915301e Automatically assign next release milestone (#18827)
* Automatically assign next release milestone

* Automatically create milestone

* Rename workflow job

* Update to latest version
2023-06-06 15:31:19 -04:00
Rijk van Zanten
d6c0d31b39 Add auto-closer for stale issues (#18780)
* Add auto-closer for stale issues

* Tweak name

* Tweak language
2023-05-30 16:23:43 -04:00
ian
101ec6649d Specify oracledb version for blackbox tests (#18720) 2023-05-25 17:02:15 +08:00
Rijk van Zanten
8401cd5a8e Delete linear-auto.yml 2023-05-24 14:08:35 -04:00
Rijk van Zanten
3603b34c9a Delete slash-commands.yaml 2023-05-24 14:08:23 -04:00
Rijk van Zanten
86527cde84 Delete linear-dispatch.yaml 2023-05-24 14:08:13 -04:00
ian
eb82110b7e Update gh-action-linear to fix workflow failure (#18699) 2023-05-23 12:19:26 +02:00
Pascal Jufer
10043da973 Update CODEOWNERS (#18665) 2023-05-19 17:30:18 -04:00
Pascal Jufer
2e647d80e6 Patch Tuesday 🐸 (#18643)
* Update `directus-monorepo` deps

* Update `@directus/api` deps

* Update `@directus/app` deps

* Update `@directus/composables` deps

* Update `create-directus-extension` deps

* Update `@directus/exceptions` deps

* Update `@directus/data` deps

* Update `@directus/data-driver-postgres` deps

* Update `@directus/extensions-sdk` deps

* Update `@directus/pressure` deps

* Update `@directus/random` deps

* Update `@directus/release-notes-generator` deps

* Update `@directus/storage` deps

* Update `@directus/storage-driver-azure` deps

* Update `@directus/storage-driver-cloudinary` deps

* Update `@directus/storage-driver-gcs` deps

* Update `@directus/storage-driver-local` deps

* Update `@directus/storage-driver-s3` deps

* Update `@directus/types` deps

* Update `@directus/update-check` deps

* Update `@directus/utils` deps

* Update `docs` deps

* Update `tests-blackbox` deps

* Bump pnpm to 8.5.1

* Bump build-push-action in release workflow to v4

* Assign new spy instances before each test

See https://github.com/vitest-dev/vitest/pull/3386

* Create clean-needles-nail.md

* Remove leftover 'beforeAll' imports

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-19 10:48:21 -04:00
Rijk van Zanten
138f8a7931 Rename draft-requests.yml to feature-requests.yml 2023-05-10 12:04:33 -04:00
Rijk van Zanten
06a765045b Rename feature-requests.yml to draft-requests.yml 2023-05-08 16:25:45 -04:00
Rijk van Zanten
58cdc7c8da Update discussion/issue links (#18520)
* Issue template links

* Update link in nav sidebar

* Create metal-chairs-push.md
2023-05-08 16:08:41 -04:00
Rijk van Zanten
2bc226d16f Change license to BSL-1.1 (#18330)
* Change license to BSL1.1

* Mark major version

* Fix formatting

* Remove duplicate heading

* Update formatting

* Copy paste error

* Update license

* Update license

* Format covenants

* Update readme.md

* Update licenses for packages

* Update readme.md

* Update contributors.yml

OG... but to be clear, rijkvanzanten is the one who really built all of this ❤️

* Tweak license in openapi

* Update packages/specs/src/openapi.yaml

* Add MIT license headers

* Use v10 in examples

* Update additional examples

* Update generate-extensions-entrypoint.test.ts

* Update tests to use latest v9 and v10 versions

* use lowercase for naming consistency

* change casing for api license

* Update migrations doc

* Update dictionary

* Consistent ordering of license field in app/package.json

* Use major version in specs again (but as string)

So it's valid for all v10 versions

* Consolidate readme's

---------

Co-authored-by: Ben Haynes <ben@directus.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-26 14:10:42 -04:00
Rijk van Zanten
d4769a1df1 Update docs-suggestions.yml 2023-04-17 11:29:23 -04:00
Rijk van Zanten
549195ed08 Create docs-suggestions.yml (#18218) 2023-04-17 11:28:32 -04:00
Rijk van Zanten
5d3fc18c53 Update bug_report.yml 2023-04-14 09:43:58 -04:00
Rijk van Zanten
4692a0026e Update bug_report.yml 2023-04-14 09:43:46 -04:00
Pascal Jufer
cfe5227798 Clarify SMTP configs (client / server) (#18152) 2023-04-12 12:36:12 +00:00
Pascal Jufer
15b91dee34 Blackbox tests restructuring (#18122)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 18:28:37 +02:00
rijkvanzanten
cc25205494 Gh itself doesn't use title case 2023-04-11 10:18:14 -04:00
rijkvanzanten
6987b5a195 Update labels 2023-04-11 10:16:05 -04:00
Pascal Jufer
f7c2f14181 Check if there are any missing contributors (#18099) 2023-04-07 07:58:47 -04:00
ian
6bf5327614 Remove double bracket from CLA message (#18086) 2023-04-06 16:58:39 +02:00
Rijk van Zanten
535edd7d7e Update cla.yml 2023-04-05 17:42:21 -04:00
Rijk van Zanten
7db025b95c Create CODEOWNERS 2023-04-05 17:37:42 -04:00
Rijk van Zanten
1505a2cc8c Update pull_request_template.md (#18075) 2023-04-05 17:34:52 -04:00
Rijk van Zanten
8a654433e1 Update cla.yml 2023-04-05 14:01:27 -04:00
Rijk van Zanten
a9d45fc4a5 Add CLA + automation (#18071) 2023-04-05 13:59:50 -04:00
Pascal Jufer
8c0ac96358 Add workflow for docs spellchecker (#18063)
* Ignore node_modules for docs spellchecking

* Add workflows for docs spellchecking

* Update command to new structure

* Skip core checks on pure docs changes

* Don't build packages for spellcheck workflow

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-05 09:54:11 -04:00
Rijk van Zanten
31e575202c Update docs_problem.yml 2023-04-05 09:19:47 -04:00
Pascal Jufer
aeb26bdbaa Update pull request template after move of docs (#18058) 2023-04-05 11:07:45 +00:00
rijkvanzanten
11e10742a4 Update issue templates 2023-04-04 18:57:00 -04:00
rijkvanzanten
8ea179248e No emoji please 2023-04-04 17:49:08 -04:00
Pascal Jufer
5b256f64c6 Use pnpm 8.1.0, define version via packageManager field, clean-up other version definitions (#17993)
* Use `packageManager` field to define pnpm version in one place

* Update to pnpm 8.1.0 (see also #17990)

* Enforce pnpm >= 8 via `engines`

* Clean-up `engines` & remove `volta`

* Add dedup workaround, consolidate test env prepare steps

* No checkout, no action :-)

* Bump minimal pnpm version to 8.1.0

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-04 15:20:25 -04:00
Pascal Jufer
5d6468b477 Fix publishing of packages to NPM in release workflow (#17900)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-23 14:02:55 -04:00
Rijk van Zanten
59f965cc8d Update release.yml 2023-03-23 13:40:26 -04:00
Rijk van Zanten
0d8b3a52c7 Simplify / improve release flow (#17858)
* Remove git-hook

This is already running in GH Actions as well

* Start new Dockerfile

* Remove unused files

* Close, but not quite

* Line break between environment specific commands / operational ones

* Cleanup dockerfile

* Update github release automation

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Improve based on review comments

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-23 13:20:14 -04:00
Rijk van Zanten
5ea0ecaa2d Update bug_report.yml 2023-03-23 10:13:27 -04:00
ian
cce33436d1 Rework schema caching to use memory (#17763)
Co-authored-by: Nitwel <mail@nitwel.de>
Co-authored-by: Jan Arends <jaads@users.noreply.github.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-23 12:52:06 +01:00