Commit Graph

307 Commits

Author SHA1 Message Date
Fleny
fb9aac0531 Remove turbo cache from release (#3995) 2024-11-19 16:43:17 -06:00
Fleny
cf5e0336c4 Add id-token permission to release workflow (#3989) 2024-11-17 11:34:47 -06:00
Fleny
1e8873b3cb ci: Release v19 (#3988)
* Bump to 19.0.0, Add conditions for CI release

* Use next tag instead
2024-11-17 11:25:37 -06:00
dependabot[bot]
3f3801ede8 build(deps): bump codecov/codecov-action from 4 to 5 (#3985)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-17 08:40:53 -06:00
Fleny
ee11d39744 Add discordeno to the release workflow (#3790) 2024-07-23 00:29:42 -05:00
Fleny
31222855d8 fix(docker): prevent snyk null in severity scores for unassigned CVEs (#3746)
* Fix snyk null in severity scores for unassigned CVEs

* Keep node 18
2024-07-20 16:54:11 -05:00
Fleny
4778968aba Update actions versions (#3760)
Especially actions/cache and the artifacts related ones
2024-07-20 16:54:00 -05:00
Fleny
495c532d9f ci: Add token parameter to codecov action (#3759)
* Add token parameter to codecov action

* add secrets: inherit
2024-07-20 16:53:08 -05:00
Fleny
27fc12ec34 feat(cli)!: CLI generated types (#3453)
* Move transformers types to a single file

* Add script to test TS Compiler api capabilities
Remove nested objects where possible

* Use Partial<Role> and DiscordOverwrite instead of objects in AuditLogChange

* Fix typescript errors

* Remove interfaces.json

It is a generated file from the test script, not something that should be commited

* Start work on the test generation script
The TS version got bumped to 5.5.3

* Fix any type, use node16 module resolution

"node" is a deprecated alias for "node10", node16 is the recommended

Add code to check for type errors when getting the types from the interfaces

Fix errors when TS tries to find the files that the root tsconfig.json handles

* remove some useless compile options in TSApiTest

* Add jsdoc parsing
JSDoc tags with the next right after are not supported

* fix small format issue

* Fix ApplicationCommandPermissions todo

* Fix CI error

* Simplify parseDocumentation

* get type directly from the sourceFile

* remove hasUndefinedUnion as it is no longer used

* fix discordeno bin file name

* Update the yarn lockfile

* Merge scripts into one

* Use `@internal` instead of `@private` + `@deprecated`

* work on .d.ts files

* Process interface members once

* Move emit/preEmit diagnostics to a unit test

they can take quite a while, even 3-4 seconds, so running in the CLI every time does not seem ideal

* test: add build:types to test:unit dependencies

This is a test commit, it will provably get reversed. The scope is to see what CI does with this

* add find-up to deno import map

* add typescript to the deno import map

* Add node:assert to deno import map

* check for this.timeout that exists

deno does not have the timeout

* add build:type to deno-unit

* Temp hack to work-around the script deno tests

* Test with bun running the test as well

* fix turbo deps for unit tests

* remove test scripts

* Update CI to use build:type cache

* Apply code review suggestion

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Add code to modify the interface member

* use an actual config

The config source is still a dummy object for now

* Search and use discordeno.config.js file

* provide config from cli options

* Handle props in base objects
The dependencies of an object need to be declared/updated manually, it would be painful to fix this in such a way that would be something that Typescript can give us from the compiler API

* add some tests for desired proprieties

* also check for a .mjs config file

* Add support for .ts config files

We use the typescript compiler to emit an in-memory version of the config file, import it and then remove it. It does not do bundling so if the config imports local files it will not work. Also the file is not type-checked as it would slow down the config loading

* remove compiler host, use callback on program.emit

* fix deno ci error

* add node:fs/promises to deno import map

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-07-20 16:52:21 -05:00
Fleny
991609d336 build(deps-dev): Update turbo to v2 (#3735)
* Update turbo to v2

Also some small config changes

* Remove test for the non-exiting "client" pkg

* Re-add build:type dependency to lint

* Add missing comma

* Use turbo in build:watch
2024-07-14 12:59:34 -05:00
Fleny
6cf16bdc6b fix(docker): Fix invalid snyk serif (#3737)
* Add code to prevent invalid snyk serif

* Prevent the fix for snyk to run on pr
2024-07-13 08:17:59 -05:00
Fleny
97a8016041 chore: Code changes & formatting and linting (#3552)
* Do some code changes & run prettier and eslint

* Fix test:test-type script

* Apply code review suggestions

* update heartbeat interval & add a reason for the specific value

* Fix husky error

* Update to TS 5.5

And use ${configDir}

* Fix test.json tsconfig base

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-08 15:11:41 -05:00
dependabot[bot]
fda3003929 build(deps): bump docker/build-push-action from 5 to 6 (#3671)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-06 13:51:55 -05:00
dependabot[bot]
c132b0d24b build(deps): bump oven-sh/setup-bun from 1 to 2 (#3683)
Bumps [oven-sh/setup-bun](https://github.com/oven-sh/setup-bun) from 1 to 2.
- [Release notes](https://github.com/oven-sh/setup-bun/releases)
- [Commits](https://github.com/oven-sh/setup-bun/compare/v1...v2)

---
updated-dependencies:
- dependency-name: oven-sh/setup-bun
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-06 13:51:39 -05:00
Jonathan Ho
27bf2cfbc4 ci: labeler exclude dependabot and api-docs-commits (#3454) 2024-02-25 09:23:00 +00:00
dependabot[bot]
a4aeea2a27 build(deps): bump fuxingloh/multi-labeler from 2 to 4 (#3436)
Bumps [fuxingloh/multi-labeler](https://github.com/fuxingloh/multi-labeler) from 2 to 4.
- [Release notes](https://github.com/fuxingloh/multi-labeler/releases)
- [Commits](https://github.com/fuxingloh/multi-labeler/compare/v2...v4)

---
updated-dependencies:
- dependency-name: fuxingloh/multi-labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-25 01:06:41 +00:00
Fleny
f0ac958903 chore(website): Cleanup docusaurus setup (#3355)
* Update docusaurus typescript setup for v3

And fix lint-staged and eslint

* Enable automatic JSX runtime

* Remove babel config and dependencies

* update yarn.lock

* add typecheck to site workflow

* update typedoc config

* downgrade docusaurus packages

* Update site.yml

* Type context and options in webpack-docusaurus-plugin.ts

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
2024-02-09 20:34:59 +00:00
dependabot[bot]
1a9dc69492 build(deps): bump codecov/codecov-action from 3 to 4 (#3412)
* build(deps): bump codecov/codecov-action from 3 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove temp fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: H01001000 <heiheiho000@gmail.com>
2024-02-02 03:00:26 +00:00
dependabot[bot]
bdb0ac9524 build(deps-dev): bump typedoc from 0.25.6 to 0.25.7 (#3356)
* build(deps-dev): bump typedoc from 0.25.6 to 0.25.7

Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.6 to 0.25.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.6...v0.25.7)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: dont wait

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: H01001000 <heiheiho000@gmail.com>
2024-01-11 21:02:57 +00:00
Matthew Hatcher
5a12def591 fix: remove release-script for now (#3333)
It's not completely needed and may only cause issues.
2023-12-21 16:01:31 +00:00
Matthew Hatcher
c5d501025a fix: docker app workflow (#3332)
* fix: docker app workflow

* fix: missing checkout

* chore: upgrade upload-artifact

* fix: feedback from H0
2023-12-21 06:09:42 +00:00
Matthew Hatcher
fa5cbd8ac9 feat!: rewrite proxy app with fastify (#3269)
* feat: initial fastify source

* chore: remove extra stuff from git ignore

* feat: rename to rest passthrough

* feat: add swcrc file

* feat: add Dockerfile

* feat: more rest passthrough stuff

* fix: add node_modules to Dockerfile

* feat: misc passthrough changes

* feat: add host to dockerfile

* feat: add version tags and update names

* feat: remove the old proxy application

* feat: update registry package name

* feat: re-add schedule

* feat: cliff jumper initi

* feat: update changelog

* style: git cliff formatting

* feat: update cliffjumper rc

* feat: updating version for future cliff-jump run

* revert: package name back

* feat: add release script

* feat: update dependabot configuration to manage rest passthrough app

* chore: update actions/download-artifact version

* feat: adding removal of the version in URL.

* feat: making readme better
2023-12-20 23:05:43 +00:00
dependabot[bot]
2ec79e5372 build(deps): bump actions/upload-pages-artifact from 2 to 3 (#3327)
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 13:19:03 +00:00
dependabot[bot]
93a4d196ab build(deps): bump actions/deploy-pages from 3 to 4 (#3328)
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 3 to 4.
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/deploy-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 13:17:02 +00:00
Jonathan Ho
a0e5b4d22f ci: fix-labeler (#3317) 2023-12-16 15:48:29 +00:00
dependabot[bot]
1a88bc9b7d build(deps): bump github/codeql-action from 2 to 3 (#3312)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-14 13:06:22 +00:00
Awesome Stickz
0a84f8fbd2 ci: fix labeler workflow (#3303)
* ci: fix labeler workflow

* fix syntax
2023-12-11 21:51:55 +00:00
Awesome Stickz
e573b24722 ci: add w-unverified to new issues and prs, change labels tracked for stale issues (#3302) 2023-12-11 20:44:40 +00:00
Jonathan Ho
860bbe1820 ci: temp fix #3299 (#3300)
* fix: temp fix #3299

* ci: add Workflow Queue
2023-12-11 20:24:06 +00:00
dependabot[bot]
6f35cf6483 build(deps): bump actions/github-script from 6 to 7 (#3289)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 19:07:40 +00:00
dependabot[bot]
2545d334be build(deps): bump docker/setup-qemu-action from 2 to 3 (#3293)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 18:55:21 +00:00
dependabot[bot]
283f634fa0 build(deps): bump actions/setup-node from 3 to 4 (#3292)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 18:55:10 +00:00
dependabot[bot]
70e1030468 build(deps): bump actions/stale from 5 to 9 (#3291)
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 18:54:47 +00:00
dependabot[bot]
0a11f600af build(deps): bump actions/deploy-pages from 1 to 3 (#3290)
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 1 to 3.
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/deploy-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 18:54:20 +00:00
dependabot[bot]
7b32a76a61 build(deps): bump docker/setup-buildx-action from 2 to 3 (#3280)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-10 13:50:03 +00:00
dependabot[bot]
148367c3c4 build(deps): bump docker/login-action from 2 to 3 (#3281)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-10 13:45:43 +00:00
dependabot[bot]
bb5fe86336 build(deps): bump docker/build-push-action from 4 to 5 (#3282)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-10 13:40:58 +00:00
dependabot[bot]
2657023972 build(deps): bump actions/upload-pages-artifact from 1 to 2 (#3283)
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1 to 2.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-10 13:40:45 +00:00
dependabot[bot]
d895725dfc build(deps): bump actions/checkout from 3 to 4 (#3279)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-10 13:36:48 +00:00
Jonathan Ho
c1fed5a163 ci: make required ci always run (#3278) 2023-12-10 13:04:02 +00:00
Jonathan Ho
a65e911214 ci: add merge group event to site (#3277) 2023-12-09 13:25:57 +00:00
Fleny
d81b28a24b Update help wanted label name (#3262)
Update the label name in the stale action

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-12-07 03:19:23 +00:00
Fleny
b567c1317d Update stale action config (#3198)
Exclude issues that have the `api-docs-commit`  or the `[HELP WANTED] good first issue` label and run the action once a week
2023-12-01 20:57:37 +00:00
Skillz4Killz
c460c88a84 Create stale.yml (#3160) 2023-10-28 21:22:54 +00:00
Skillz4Killz
914dc30396 test: bun test (#2798)
* test: bun test

* Update package.json

* ci: update bun version

* Update package.json

* Update package.json

* test

* ci: update bun

* chore(ci): update bun version

---------

Co-authored-by: H01001000 <heiheiho000@gmail.com>
2023-10-28 12:52:58 +00:00
Jonathan Ho
8f2daff769 feat(ci): add cache for deno (#3158)
* feat(ci): add cache for deno

* refactor(ci): per package cache
2023-10-28 12:50:19 +00:00
Jonathan Ho
abfa0bb8fb test(rest-proxy): add image scan on push to main (#3046) 2023-06-06 01:46:39 +00:00
Jonathan Ho
169e11771d ci: add snyk for image scan (#3031) 2023-05-11 15:12:20 +00:00
Jonathan Ho
7151b338e4 ci(bench): fix benchmark result not saved for pr (#2981) 2023-04-08 16:31:35 +02:00
Jonathan Ho
0b8cb1e463 ci(rest): proxy multi arch image (#2980)
* ci(rest-proxy): multi arch image

* ci(rest-proxy): fix doc

* ci(rest-proxy): add test build multi arch image

* ci(rest-proxy): update version

* ci(rest-proxy): fix missing setup buildx

* ci(rest-proxy): fix target

* ci(rest-proxy): fix trivy

* ci(rest-proxy): fix cache

* ci(rest-proxy): load true

* ci(rest-proxy): move image scan

* ci(rest-proxy): fix name

* ci(rest-proxy): fix cache

* ci(rest-proxy): add name

* ci(rest-proxy): add schedule scan

* ci(rest-proxy): fix string

* ci(rest-proxy): update cache version
2023-04-08 16:30:42 +02:00