Skip to content

Commit

Permalink
chore(global): format on things and update README
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Jiroh Halili <[email protected]>
  • Loading branch information
ajhalili2006 committed Jul 22, 2024
1 parent 8b96b09 commit f3c89e1
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 82 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version: 2
enable-beta-ecosystems: true
updates:
- directories:
- /
- apps/**
- packages/**
- /
- apps/**
- packages/**
open-pull-requests-limit: 5
rebase-strategy: auto
package-ecosystem: npm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bump-all-packages.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Bump all packages
on:
workflow_dispatch:
schedule:
- cron: 30 12 * * 6
workflow_dispatch:
schedule:
- cron: 30 12 * * 6
permissions:
contents: write
pull-requests: write
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/wrangler-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
outputs:
golinks-next: ${{ steps.filter.outputs.golinks-next }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
golinks-next:
- 'apps/golinks-v2/**'
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
golinks-next:
- 'apps/golinks-v2/**'
golinks-next:
name: Deploy golinks-next to staging
environment:
Expand Down
14 changes: 7 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"printWidth": 140,
"singleQuote": false,
"semi": true,
"useTabs": false,
"endOfLine": "lf",
"tabWidth": 2,
"arrowParens": "always"
"printWidth": 140,
"singleQuote": false,
"semi": true,
"useTabs": false,
"endOfLine": "lf",
"tabWidth": 2,
"arrowParens": "always"
}
20 changes: 11 additions & 9 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode",
"prisma.prisma",
"redhat.vscode-yaml",
"codiium.wrangler",
"ms-vscode-remote.remote-containers",
"ms-azuretools.vscode-docker"
]
"recommendations": [
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode",
"prisma.prisma",
"redhat.vscode-yaml",
"codiium.wrangler",
"ms-vscode-remote.remote-containers",
"ms-azuretools.vscode-docker",
"mtxr.sqltools-driver-sqlite",
"mtxr.sqltools"
]
}
53 changes: 29 additions & 24 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"git.alwaysSignOff": true,
"gitlens.remotes": [
{
"domain": "mau.dev",
"type": "GitLab"
}
],
"yaml.schemas": {
"https://raw.githubusercontent.com/devfile/api/v2.2.0/schemas/latest/devfile.json": ".devfile.yml",
"https://raw.githubusercontent.com/slackapi/manifest-schema/main/manifest.schema.json": [
"apps/golinks-v2/app-manifest.yml",
"apps/golinks-v2/dev-manifest.yml"
]
},
"conventionalCommits.scopes": [
"golinks",
"global",
"github-actions"
],
"dotenv.enableAutocloaking": false
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"git.alwaysSignOff": true,
"gitlens.remotes": [
{
"domain": "mau.dev",
"type": "GitLab"
}
],
"yaml.schemas": {
"https://raw.githubusercontent.com/devfile/api/v2.2.0/schemas/latest/devfile.json": ".devfile.yml",
"https://raw.githubusercontent.com/slackapi/manifest-schema/main/manifest.schema.json": [
"apps/golinks-v2/app-manifest.yml",
"apps/golinks-v2/dev-manifest.yml"
]
},
"conventionalCommits.scopes": ["golinks", "global", "github-actions"],
"dotenv.enableAutocloaking": false,
"sqltools.connections": [
{
"previewLimit": 50,
"driver": "SQLite",
"database": "${workspaceFolder:api-servers}/apps/golinks-v2/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/0c387ee1750819f278da29686bfd9e894e71486eed5952c4c869b0b96c99e1d0.sqlite",
"name": "d1-localdev-go"
}
],
"sqltools.useNodeRuntime": true
}
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# api-servers
Monorepo for different Cloudflare Workers and Deno Deploy hosted APIs I build
# `@andreijiroh-dev/api-servers`

Monorepo for different Cloudflare Workers and Deno Deploy hosted APIs I build.
Licensed under MPL-2.0

## CI

- [Dependabot Updates](https://github.com/andreijiroh-dev/api-servers/actions/workflows/dependabot/dependabot-updates)
on GitHub Actions, although I do the updates myself via `yarn-upgrade-all` command.
12 changes: 7 additions & 5 deletions apps/golinks-v2/dev-manifest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
display_information:
name: localdev.go.andreijiroh.xyz
name: slack-staging.go-next.ajhalili2006
description: Access Andrei Jiroh's golinks service API via Slack
background_color: "#1710e3"
long_description: "Access @ajhalili2006's golinks API service via /go Slack
Expand All @@ -20,13 +20,13 @@ features:
slash_commands:
- command: /go-dev
url: https://stellapent-cier.fawn-cod.ts.net/api/slack/slash-commands/go
description: Access the golinks service API via Slack
description: Access the golinks service API via Slack on dev environment
usage_hint: "[command] [args]"
should_escape: true
- command: /ping-dev
url: https://stellapent-cier.fawn-cod.ts.net/api/slack/slash-commands/ping
description: Check if everything's up
should_escape: false
description: Check if everything's up from dev environment
should_escape: true
- command: /go-stg
url: https://staging.go-next.andreijiroh.xyz/api/slack/slash-commands/go
description: Access the golinks service API via Slack from staging environment.
Expand All @@ -38,7 +38,9 @@ features:
should_escape: true
oauth_config:
redirect_urls:
- https://stellapent-cier.fawn-cod.ts.net/slack/callback
- https://stellapent-cier.fawn-cod.ts.net/auth/slack/callback
- https://staging.go-next.andreijiroh.xyz/auth/slack/callback
- https://golinks-next-staging.ajhalili2006.workers.dev/auth/slack/callback
scopes:
bot:
- commands
Expand Down
35 changes: 16 additions & 19 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"target": "ES2020",
"jsx": "react",
"allowImportingTsExtensions": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"sourceMap": true,
"checkJs": true
},
"exclude": [
"node_modules",
"**/node_modules/*"
],
"buildOptions": {
"verbose": true
}
}
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"target": "ES2020",
"jsx": "react",
"allowImportingTsExtensions": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"sourceMap": true,
"checkJs": true
},
"exclude": ["node_modules", "**/node_modules/*"],
"buildOptions": {
"verbose": true
}
}
14 changes: 11 additions & 3 deletions scripts/get-commit-url
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#!/usr/bin/env bash
set -e
set -ex

GIT_ROOTDIR=$(git rev-parse --show-toplevel)
REMOTE_NAME=${1:-"origin"}
GIT_REPO_URL=$(git config remote.${REMOTE_NAME}.url)
GIT_REPO_URL=$(git -C ${GIT_ROOTDIR} config --get remote.${REMOTE_NAME}.url)
CURRENT_COMMIT=$(git rev-parse HEAD)
COMPARE_HEAD=${2:-"${REMOTE_NAME}/main"}
if [[ $COMPARE_HEAD == "${REMOTE_NAME}/main" ]]; then
export COMPARE_HASH=$(git rev-parse ${COMPARE_HEAD})
else
export COMPARE_HASH=$(git rev-parse HEAD~${COMPARE_HEAD})
fi

echo "Commit head: $GIT_REPO_URL/commit/$(git rev-parse HEAD)"
echo "Commit head: $GIT_REPO_URL/commit/$CURRENT_COMMIT"
echo "Compare link: $GIT_REPO_URL/compare/$COMPARE_HASH...$CURRENT_COMMIT"

0 comments on commit f3c89e1

Please sign in to comment.