From fbda96c861f918773b52f59b92ecd224b45b600b Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Wed, 26 Jun 2024 15:12:54 +0200 Subject: [PATCH 1/2] ci: add workflows - commitlint - notify-discord --- .commitlintrc.cjs | 3 +++ .github/workflows/commitlint.yml | 13 +++++++++++++ .github/workflows/notify-discord.yml | 16 ++++++++++++++++ bun.lockb | Bin 75897 -> 110146 bytes package.json | 4 +++- 5 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .commitlintrc.cjs create mode 100644 .github/workflows/commitlint.yml create mode 100644 .github/workflows/notify-discord.yml diff --git a/.commitlintrc.cjs b/.commitlintrc.cjs new file mode 100644 index 0000000..c34aa79 --- /dev/null +++ b/.commitlintrc.cjs @@ -0,0 +1,3 @@ +module.exports = { + extends: ['@commitlint/config-conventional'] +}; diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..ebd3799 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,13 @@ +name: Lint Commit Messages +on: [pull_request, push] + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v5 + with: + configFile: .commitlintrc.cjs diff --git a/.github/workflows/notify-discord.yml b/.github/workflows/notify-discord.yml new file mode 100644 index 0000000..9c19de1 --- /dev/null +++ b/.github/workflows/notify-discord.yml @@ -0,0 +1,16 @@ +name: Discord notification + +on: + release: + types: [published] + +jobs: + discord-notification: + runs-on: ubuntu-latest + steps: + - name: Discord notification 📯 + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@0.3.2 + with: + args: '${{ github.event.repository.name }} [${{ github.event.release.tag_name }}](${{ github.event.release.html_url }}) has been released. 🚀' diff --git a/bun.lockb b/bun.lockb index 29ff425fe5d525d4532bf48077e80f863decf51d..a31dd9c76ed7bd86df6de834d3464feaee9e4b97 100755 GIT binary patch delta 30956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=BEM8FPwK-3rZe`0M?2<55MinLafdFR>1vW#>$k}!x8^QS@s-CNnL>L5jHm>mmpfk zfTWAb#MKF(8~MLltRZfb*x_aqZRX4T%*~#ipD&$t7y3f#kg4G!DW6Sb>&2XWO5RAZ zEFY1YB)%zz_RRvJjTL9}S@^)?QTkhS^NoGQ?vyvjt%^MlQ#tl*G6m)0k;rR4CS$L7u_}OB2M3LJVbx=qA!E(nqk^c=I*?y}@aZOx*DFW{4xz z?fEzt6T~eeSO>!Q;|K)INP{#{QUq?SxT^@e!VSstu=am>VOICd{vkQiIoa6>w9qzw z`kLg}(7OjY(P9i}qj-lbz+MlDwVWOxCV8;dhl^?t+pl*P6^Ny@LX>HUbceW2W2dh6 z#g>*NuMqypPaa%w=5TDT>;vB8@E5NXqmQ0x!UhnPg!=z!a-6K6XdFo!{ZReg|K`>+ z-oX_^DT+q=+QqJsaA=%3N@SYo9uHC_`i=t8+v3eP?Qg&P-WPFG%I*D_rzm-m3n$Lu zVWNB#@~29)kAi=0;h@Z%B94=GotQTcWQABUo@I-%qgf5&ux&Kv)cj!Jy~yz+H-3BT z-{Flz {|7(1O&DLd&e%Ez!EoB5f{jMvUuA3kASPZ1)nDAX-#=z<+xth9a+jbmpE`8t_$X8 zA!^--x4tOrcuBuI<>9^niL(<}OlULRol!2}CW+reT9D3)r>3*4l(|^XIF0>F+_~?v z=02BJ<9gBu{En!{p3GQ!t7D5`GgwmG7F5$_+yBJPPfmT=lRT8};wUGEh=Li+y<_bR Lw%N@`9$59CBUm)I diff --git a/package.json b/package.json index c938645..5027b52 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "bun test", "dev": "bun run --watch src/index.ts", "start": "bun run src/index.ts", - "lint": "eslint -c .eslintrc.cjs src/**/*.ts*" + "lint": "eslint -c .eslintrc.cjs src/**.ts*" }, "keywords": [ "GeoStyler", @@ -35,6 +35,8 @@ "loggisch": "^0.0.1" }, "devDependencies": { + "@commitlint/cli": "^19.3.0", + "@commitlint/config-conventional": "^19.2.2", "bun-types": "latest" }, "funding": "https://opencollective.com/geostyler" From 4218a98fdb2ca8a0bef59898ae5022e4220fcec7 Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Wed, 26 Jun 2024 15:13:02 +0200 Subject: [PATCH 2/2] chore: linting --- src/index.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/index.ts b/src/index.ts index 95d92ac..80cade5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,12 +25,12 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ -import { Elysia } from "elysia"; -import { swagger } from '@elysiajs/swagger' -import { html } from '@elysiajs/html' -import { transFormApi, transform } from "./routes/api"; +import { Elysia } from 'elysia'; +import { swagger } from '@elysiajs/swagger'; +import { html } from '@elysiajs/html'; +import { transFormApi, transform } from './routes/api'; import loggisch from 'loggisch'; -import { versions, versionsApi } from "./routes/info"; +import { versions, versionsApi } from './routes/info'; loggisch.setLogLevel('trace'); @@ -38,14 +38,14 @@ const port = process.env.NODE_API_PORT || 8888; export const app = new Elysia() .get('/', ({ redirect }) => { - return redirect('/api-docs') + return redirect('/api-docs'); }) .use(swagger({ - path: "/api-docs", + path: '/api-docs', exclude: [ - "/api-docs", - "/api-docs/json", - "/" + '/api-docs', + '/api-docs/json', + '/' ], documentation: { info: { @@ -55,15 +55,15 @@ export const app = new Elysia() } } })) - .group("/info", (app) => app + .group('/info', (a) => a .use(html()) - .get("/versions", versions, versionsApi) + .get('/versions', versions, versionsApi) ) - .group("/api", (app) => app - .post("/transform", transform, transFormApi) + .group('/api', (a) => a + .post('/transform', transform, transFormApi) ) .listen(port); -console.log( +loggisch.info( `🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}` );