diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index d1ebde2..e5e1829 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -9,6 +9,9 @@ contact_links: - name: Watch the hive live on Twitch url: https://www.twitch.tv/hivecommons about: Live stream of the hosted hive's Activity Monitor — see issues and PRs move through the pipeline in real time. + - name: Join the community meeting + url: https://docs.hivecommons.dev/docs/community/meetings + about: Public Hive Commons meeting every other Thursday — schedule, join link, agenda and calendar. - name: Propose a project to join Hive Commons url: https://github.com/hivecommons/.github/issues/new?template=join-hive-commons.yml about: Project proposals for the Hive Commons family are handled in the hivecommons/.github repository. diff --git a/README.md b/README.md index a8e47b1..f942aa9 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ See `patterns/*.patterns` in this repo for complete, real-world examples. ## Contributing -Contributions are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) covers local setup, tests, and how to add or fix a CLI pattern set. If an agent CLI's output is misclassified, or you want pluk to support a new CLI, open a [pattern request](https://github.com/hivecommons/pluk/issues/new?template=pattern_request.yml). For questions, join the [Hive Commons Discord](https://hivecommons.dev/discord), or watch the hive live on [Twitch](https://www.twitch.tv/hivecommons). +Contributions are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) covers local setup, tests, and how to add or fix a CLI pattern set. If an agent CLI's output is misclassified, or you want pluk to support a new CLI, open a [pattern request](https://github.com/hivecommons/pluk/issues/new?template=pattern_request.yml). For questions, join the [Hive Commons Discord](https://hivecommons.dev/discord), or watch the hive live on [Twitch](https://www.twitch.tv/hivecommons). To talk to the maintainers live, join the biweekly [Hive Commons community meeting](https://docs.hivecommons.dev/docs/community/meetings). ## License diff --git a/test/community-links.test.js b/test/community-links.test.js new file mode 100644 index 0000000..f6507a8 --- /dev/null +++ b/test/community-links.test.js @@ -0,0 +1,28 @@ +// Guards the community entry points in the README and the issue chooser so +// they stay in step with the hivecommons/hive README Community line. +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..'); +const README = readFileSync(join(ROOT, 'README.md'), 'utf8'); +const CHOOSER = readFileSync(join(ROOT, '.github', 'ISSUE_TEMPLATE', 'config.yml'), 'utf8'); +const chooserUrls = [...CHOOSER.matchAll(/^\s+url:[ \t]*(\S+)$/gm)].map((m) => m[1]); + +const COMMUNITY_LINKS = [ + ['Discord', 'https://hivecommons.dev/discord'], + ['Twitch live stream', 'https://www.twitch.tv/hivecommons'], + ['community meeting', 'https://docs.hivecommons.dev/docs/community/meetings'], +]; + +for (const [name, url] of COMMUNITY_LINKS) { + test(`README links the Hive Commons ${name}`, () => { + assert.ok(README.includes(`](${url})`), `README.md is missing ${url}`); + }); + + test(`issue chooser links the Hive Commons ${name}`, () => { + assert.ok(chooserUrls.includes(url), `.github/ISSUE_TEMPLATE/config.yml is missing ${url}`); + }); +}