Skip to content

Commit 3044a4b

Browse files
committed
feat: Initial commit
0 parents  commit 3044a4b

File tree

13 files changed

+1392
-0
lines changed

13 files changed

+1392
-0
lines changed

.dev.vars.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GITHUB_TOKEN=
2+
WEBHOOK_ID=
3+
WEBHOOK_TOKEN=

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
on: push
3+
jobs:
4+
style:
5+
name: Styling
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v5
9+
10+
- uses: biomejs/setup-biome@v2
11+
12+
- name: Run Biome
13+
run: biome ci --reporter=github
14+
typescript:
15+
name: TypeScript
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v5
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
25+
- name: Install dependencies
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: 10.14.0
29+
run_install: |
30+
- args: [--frozen-lockfile]
31+
32+
- name: Validate TypeScript
33+
run: pnpm run test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.dev.vars
2+
.DS_Store
3+
.wrangler
4+
node_modules

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["biomejs.biome"]
3+
}

.vscode/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.biome": "explicit",
4+
"source.organizeImports.biome": "explicit"
5+
},
6+
"editor.defaultFormatter": "biomejs.biome",
7+
"editor.formatOnSave": true,
8+
"npm.packageManager": "pnpm",
9+
"typescript.enablePromptUseWorkspaceTsdk": true,
10+
"typescript.preferences.importModuleSpecifierEnding": "js",
11+
"typescript.tsdk": "node_modules/typescript/lib"
12+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 thatskyapplication
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GitHub-Discord
2+
3+
Receives events from GitHub and sends them off to Discord.

biome.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on",
7+
"useSortedAttributes": "on",
8+
"useSortedProperties": "on"
9+
}
10+
}
11+
},
12+
"formatter": {
13+
"lineWidth": 100,
14+
"formatWithErrors": true
15+
},
16+
"javascript": {
17+
"formatter": {
18+
"enabled": true
19+
}
20+
},
21+
"linter": {
22+
"rules": {
23+
"complexity": {
24+
"noForEach": "on",
25+
"noThisInStatic": "off",
26+
"noVoid": "off",
27+
"useSimplifiedLogicExpression": "on"
28+
},
29+
"correctness": {
30+
"noUndeclaredDependencies": "on",
31+
"useJsxKeyInIterable": "on"
32+
},
33+
"nursery": {
34+
"noFloatingPromises": "on"
35+
},
36+
"performance": {
37+
"noBarrelFile": "on",
38+
"noDelete": "on"
39+
},
40+
"style": {
41+
"noInferrableTypes": "error",
42+
"noNegationElse": "error",
43+
"noNonNullAssertion": "off",
44+
"noParameterAssign": "error",
45+
"noUnusedTemplateLiteral": "error",
46+
"noUselessElse": "error",
47+
"noYodaExpression": "error",
48+
"useAsConstAssertion": "error",
49+
"useBlockStatements": "error",
50+
"useCollapsedElseIf": "error",
51+
"useCollapsedIf": "error",
52+
"useConsistentArrayType": "error",
53+
"useConsistentCurlyBraces": "error",
54+
"useConsistentMemberAccessibility": {
55+
"level": "error",
56+
"options": {
57+
"accessibility": "explicit"
58+
}
59+
},
60+
"useDefaultParameterLast": "error",
61+
"useEnumInitializers": "error",
62+
"useExplicitLengthCheck": "error",
63+
"useForOf": "error",
64+
"useFragmentSyntax": "error",
65+
"useNamingConvention": "off",
66+
"useNumberNamespace": "error",
67+
"useSelfClosingElements": "error",
68+
"useShorthandAssign": "error",
69+
"useSingleVarDeclarator": "error"
70+
},
71+
"suspicious": {
72+
"noAlert": "error",
73+
"noConstantBinaryExpressions": "on",
74+
"noConstEnum": "off"
75+
}
76+
}
77+
},
78+
"vcs": {
79+
"clientKind": "git",
80+
"defaultBranch": "main",
81+
"enabled": true,
82+
"useIgnoreFile": true
83+
}
84+
}

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "@thatskyapplication/github-discord",
3+
"type": "module",
4+
"private": true,
5+
"scripts": {
6+
"test": "tsc",
7+
"lint": "biome check",
8+
"format": "biome check --write",
9+
"dev": "wrangler dev",
10+
"deploy": "wrangler deploy",
11+
"update": "pnpm update --interactive --latest"
12+
},
13+
"dependencies": {
14+
"@discordjs/core": "^2.2.1",
15+
"@discordjs/rest": "^2.6.0"
16+
},
17+
"devDependencies": {
18+
"@biomejs/biome": "^2.2.2",
19+
"@cloudflare/workers-types": "^4.20250830.0",
20+
"typescript": "^5.9.2",
21+
"wrangler": "^4.33.1"
22+
}
23+
}

0 commit comments

Comments
 (0)