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 @@ -6,6 +6,9 @@ contact_links:
- name: Join our Discord
url: https://hivecommons.dev/discord
about: Ask setup, contributor, and community questions in the Hive Commons Discord.
- 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: 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.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ promptargs is part of [Hive Commons](https://hivecommons.dev), a family of tools

- Want to contribute? See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, checks, and pull request guidelines.
- Found a bug or have an idea? Open an [issue](https://github.com/hivecommons/promptargs/issues).
- Have a question? Ask on [Discord](https://hivecommons.dev/discord), or watch the hive live on [Twitch](https://www.twitch.tv/hivecommons).
- Reporting a security vulnerability? Follow [SECURITY.md](SECURITY.md) to report it privately, not through public issues.
- Please follow the [Hive Commons Code of Conduct](https://github.com/hivecommons/.github/blob/main/CODE_OF_CONDUCT.md).

Expand Down
1 change: 1 addition & 0 deletions changelog.d/changed-414-community-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README and the issue chooser link the Hive Commons Discord and Twitch live stream. (#414)
1 change: 1 addition & 0 deletions dist/community.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
25 changes: 25 additions & 0 deletions dist/community.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/community.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions src/community.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { test } from 'node:test';
import assert from 'node:assert';
import { readFileSync } from 'node:fs';
import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');

// The Hive Commons community links (hivecommons/promptargs#414) must
// stay reachable from both places newcomers land: the README npm renders and
// the GitHub "New issue" chooser.
const LINKS = ['https://hivecommons.dev/discord', 'https://www.twitch.tv/hivecommons'];

test('README Contributing & Community section links Discord and Twitch', () => {
const readme = readFileSync(join(ROOT, 'README.md'), 'utf-8');
const start = readme.indexOf('## Contributing & Community');
assert.notStrictEqual(start, -1, 'README lost its "Contributing & Community" section');
const end = readme.indexOf('\n## ', start + 1);
const section = readme.slice(start, end === -1 ? undefined : end);
for (const url of LINKS) assert.ok(section.includes(`(${url})`), `README community section is missing ${url}`);
});

test('issue chooser config lists Discord and Twitch contact links', () => {
const config = readFileSync(join(ROOT, '.github', 'ISSUE_TEMPLATE', 'config.yml'), 'utf-8');
for (const url of LINKS) assert.match(config, new RegExp(`^\\s+url: ${url.replace(/[.]/g, '\\.')}$`, 'm'), `config.yml is missing ${url}`);
});
Loading