Skip to content

Commit 2b80bdb

Browse files
Merge pull request #5 from NotReeceHarris/develop/rename
Rename project to Discussion Kit and update configurations
2 parents ea15283 + 74363d1 commit 2b80bdb

10 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# git-forums
1+
# Discussion Kit
22

33
[![Follow us on product hunt](https://api.producthunt.com/widgets/embed-image/v1/follow.svg?product_id=1273493&theme=light&size=small)](https://www.producthunt.com/products/git-forum?utm_source=badge-follow&utm_medium=badge&utm_source=badge-git-forum)
44

@@ -87,7 +87,7 @@ npx wrangler deploy
8787
npx wrangler secret put GITHUB_CLIENT_SECRET # paste the client secret when prompted
8888
```
8989

90-
The deploy output prints your Worker URL, e.g. `https://git-forums-oauth.<account>.workers.dev`.
90+
The deploy output prints your Worker URL, e.g. `https://discussion-kit-oauth.<account>.workers.dev`.
9191

9292
**Option B — Cloudflare dashboard (no CLI):**
9393

@@ -103,7 +103,7 @@ In [`forum.config.ts`](forum.config.ts):
103103
auth: {
104104
oauth: {
105105
clientId: '<your client id>',
106-
proxyUrl: 'https://git-forums-oauth.<account>.workers.dev'
106+
proxyUrl: 'https://discussion-kit-oauth.<account>.workers.dev'
107107
}
108108
}
109109
```

‎forum.config.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineForumConfig } from './src/lib/config/schema';
22

33
/**
44
* ─────────────────────────────────────────────────────────────────────────────
5-
* git-forums configuration
5+
* Discussion Kit configuration
66
* ─────────────────────────────────────────────────────────────────────────────
77
* Every option is optional — anything you omit falls back to a sensible
88
* default (see src/lib/config/schema.ts for the full schema and defaults).
@@ -17,7 +17,7 @@ import { defineForumConfig } from './src/lib/config/schema';
1717
*/
1818
export default defineForumConfig({
1919
site: {
20-
name: 'Git Forums',
20+
name: 'Discussion Kit',
2121
description: 'A community forum powered by GitHub Discussions',
2222
// logo: '💬', // emoji shown instead of the default icon
2323
footer: 'Powered by GitHub Discussions'
@@ -26,7 +26,7 @@ export default defineForumConfig({
2626
repo: {
2727
// Omit owner/name to auto-detect when building in GitHub Actions.
2828
owner: 'NotReeceHarris',
29-
name: 'git-forums'
29+
name: 'discussion-kit'
3030
},
3131

3232
// Extra header links
@@ -39,7 +39,7 @@ export default defineForumConfig({
3939
oauth: {
4040
// Fill both to enable the "Continue with GitHub" button (see README):
4141
clientId: 'Ov23li1QctsLGHqbcIwq',
42-
proxyUrl: 'https://git-forums-oauth.reeceharris.workers.dev'
42+
proxyUrl: 'https://discussion-kit-oauth.reeceharris.workers.dev'
4343
}
4444
},
4545

‎oauth-proxy/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npx wrangler secret put GITHUB_CLIENT_SECRET # paste the secret when prompted
2727
```
2828

2929
The deploy output prints your Worker URL, e.g.
30-
`https://git-forums-oauth.<account>.workers.dev`.
30+
`https://discussion-kit-oauth.<account>.workers.dev`.
3131

3232
### Option B — Cloudflare dashboard (no CLI)
3333

@@ -46,7 +46,7 @@ In `forum.config.ts`:
4646
auth: {
4747
oauth: {
4848
clientId: '<your client id>',
49-
proxyUrl: 'https://git-forums-oauth.<account>.workers.dev'
49+
proxyUrl: 'https://discussion-kit-oauth.<account>.workers.dev'
5050
}
5151
}
5252
```

‎oauth-proxy/worker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* GitHub OAuth token-exchange proxy for Git Forums.
2+
* GitHub OAuth token-exchange proxy for Discussion Kit.
33
*
44
* GitHub's /login/oauth/access_token endpoint doesn't allow browser CORS,
55
* so this tiny Worker performs the exchange server-side. It holds the OAuth

‎oauth-proxy/wrangler.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "git-forums-oauth"
1+
name = "discussion-kit-oauth"
22
main = "worker.js"
33
compatibility_date = "2025-01-01"
44

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "git-forums",
2+
"name": "discussion-kit",
33
"private": true,
44
"version": "0.0.1",
55
"type": "module",

‎src/lib/config/schema.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function defineForumConfig(config: UserForumConfig): UserForumConfig {
130130

131131
export const defaultConfig: ForumConfig = {
132132
site: {
133-
name: 'Git Forums',
133+
name: 'Discussion Kit',
134134
description: 'A community forum powered by GitHub Discussions',
135135
logo: '',
136136
footer: ''

‎tests/config.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { configIncomplete, forumConfig, themeCss } from '$lib/config';
66
describe('resolved config', () => {
77
it('merges the root forum.config.ts over defaults', () => {
88
expect(forumConfig.repo.owner).toBe('NotReeceHarris');
9-
expect(forumConfig.repo.name).toBe('git-forums');
10-
expect(forumConfig.site.name).toBe('Git Forums');
9+
expect(forumConfig.repo.name).toBe('discussion-kit');
10+
expect(forumConfig.site.name).toBe('Discussion Kit');
1111
// default that forum.config.ts does not override
1212
expect(forumConfig.content.articles.marker).toBe('<!-- gf:article -->');
1313
});

‎tests/schema.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('mergeConfig', () => {
4646

4747
it('does not mutate the defaults', () => {
4848
mergeConfig({ site: { name: 'Mutant' } });
49-
expect(defaultConfig.site.name).toBe('Git Forums');
49+
expect(defaultConfig.site.name).toBe('Discussion Kit');
5050
});
5151
});
5252

0 commit comments

Comments
 (0)