Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Shared secret — include this as the x-webhook-secret header on incoming requests.
# Must match COMMUNITY_FEED_GENERIC_WEBHOOK_SECRET used by the feed notifier.
WEBHOOK_SECRET=

# LINE Messaging API channel access token (from LINE Developers console)
LINE_CHANNEL_TOKEN=

# LINE target ID to push messages to (userId, groupId, or roomId)
LINE_TARGET_ID=

# ---- Feed notifier (scripts/community-feed-notifier.mjs) ----

# URL of the LINE hook endpoint — set this to https://kyototechmeetup.com/api/line-hook
# Also add as COMMUNITY_FEED_GENERIC_WEBHOOK_URL in GitHub Actions secrets
COMMUNITY_FEED_GENERIC_WEBHOOK_URL=

# Must match WEBHOOK_SECRET above
COMMUNITY_FEED_GENERIC_WEBHOOK_SECRET=
1 change: 1 addition & 0 deletions .github/workflows/community-feed-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
GH_GIST_TOKEN: ${{ secrets.GH_GIST_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
COMMUNITY_FEED_GENERIC_WEBHOOK_URL: ${{ secrets.COMMUNITY_FEED_GENERIC_WEBHOOK_URL }}
COMMUNITY_FEED_GENERIC_WEBHOOK_SECRET: ${{ secrets.COMMUNITY_FEED_GENERIC_WEBHOOK_SECRET }}
WORKFLOW_DEMO_MODE: ${{ github.event.inputs.demo_mode || 'false' }}
WORKFLOW_DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
WORKFLOW_ALLOW_INITIAL_POSTS: ${{ github.event.inputs.allow_initial_posts || 'false' }}
Expand Down
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import react from "@astrojs/react";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
import cloudflare from "@astrojs/cloudflare";

// https://astro.build/config
export default defineConfig({
site: "https://kyototechmeetup.com",
output: "static",
adapter: cloudflare(),
integrations: [react(), sitemap(), mdx()],

i18n: {
Expand Down
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ export default [
parser: tsParser
}
},
{
files: ["src/pages/api/**/*.ts"],
languageOptions: {
parser: tsParser,
globals: {
Request: "readonly",
Response: "readonly",
fetch: "readonly",
console: "readonly",
}
}
},
{
files: ["scripts/**/*.{js,ts,tsx}", "tmp/**/*.{js,ts,tsx}"],
rules: {
Expand Down
Loading
Loading