Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
28 changes: 28 additions & 0 deletions test/community-links.test.js
Original file line number Diff line number Diff line change
@@ -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}`);
});
}
Loading