Skip to content

docs: complete the GitHub community profile - #1376

Merged
c-vigo merged 1 commit into
devfrom
feature/1372-community-files
Aug 7, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/1372-community-files

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Description

Two rows of repos/vig-os/devkit/community/profile were unchecked
(health_percentage: 62): the contributing guide was named CONTRIBUTE.md,
which GitHub does not recognise, and there was no code of conduct at all.

Type of Change

  • docs -- Documentation only

Changes Made

(a) CONTRIBUTE.md -> CONTRIBUTING.md (git mv, history preserved). The
file is generated, so the rename covers the whole chain:

  • docs/templates/CONTRIBUTE.md.j2 -> docs/templates/CONTRIBUTING.md.j2
    (git mv), including its own "auto-generated / do not edit" banner
  • docs/generate.py — the templates_to_generate entry
  • .pre-commit-config.yaml — the pymarkdown exclude for generated docs
  • .github/workflows/release.yml — the expected_doc guard in "Collect
    finalization files"
  • docs/templates/README.md.j2 + the regenerated README.md — the contributing
    link
  • docs/NIX.md — three cross-references
  • .github/ISSUE_TEMPLATE/docs.yml — the "generated docs must not be edited
    directly" note and the source-template URL; the manifest-synced
    assets/workspace/.github/ISSUE_TEMPLATE/docs.yml follows automatically via
    the sync-manifest hook

(b) CODE_OF_CONDUCT.md — Contributor Covenant 2.1 standard text at the
repository root. The enforcement contact is the
GitHub Private Vulnerability Reporting
channel SECURITY.md already designates, so there is a single private route to
the maintainers rather than a second one to keep in sync.

Deliberately untouched

  • Historical records keep the old name: released CHANGELOG.md entries,
    docs/issues/*.md, docs/pull-requests/*.md.
  • assets/workspace/.pre-commit-config.yaml still excludes CONTRIBUTE.md from
    pymarkdown. That is the consumer scaffold's own exclude list, not devkit's
    community profile; devkit never generates a contributing guide for consumers,
    so editing it would drift every consumer for no benefit here.

Changelog Entry

### Added

- **`CODE_OF_CONDUCT.md`** ([#1372](https://github.com/vig-os/devkit/issues/1372))
  - Contributor Covenant 2.1 at the repository root. Enforcement reports go
    through the same [GitHub Private Vulnerability Reporting](https://github.com/vig-os/devkit/security/advisories/new)
    channel `SECURITY.md` already designates, so there is one private route to
    the maintainers rather than two.

### Changed

- **`CONTRIBUTE.md` renamed to `CONTRIBUTING.md`** ([#1372](https://github.com/vig-os/devkit/issues/1372))
  - GitHub's community profile only recognises `CONTRIBUTING.md`, so the guide
    was invisible to it and no "Contributing guidelines" link appeared on new
    issues and pull requests.
  - The file is generated, so the rename covers the whole chain:
    `docs/templates/CONTRIBUTE.md.j2` -> `docs/templates/CONTRIBUTING.md.j2`,
    `docs/generate.py`, the pymarkdown exclude in `.pre-commit-config.yaml`, the
    `expected_doc` guard in `release.yml`, the `README.md` link (and its
    template), `docs/NIX.md`, and the `docs.yml` issue template. Historical
    records — released changelog entries, `docs/issues/`, `docs/pull-requests/`
    — keep the old name.

Testing

  • Tests pass locally
  • Manual testing performed (describe below)

Manual Testing Details

  • prek run --all-files — green; the generate-docs hook is a no-op on a
    second run, confirming docs/generate.py resolves the renamed template and
    CONTRIBUTING.md regenerates byte-identically.
  • Full lightweight suite: uv run pytest tests/ <CI ignore set> packages/vig-utils/tests — 904 passed.
  • Repo-wide grep for CONTRIBUTE.md leaves only historical archives and the
    consumer scaffold exclude noted above.
  • No TDD cycle: the change is a file rename plus static documentation, with no
    behaviour to drive from a test. The generate-docs and sync-manifest hooks
    are the executable guard.
  • gh api repos/vig-os/devkit/community/profile will only reflect this after
    the merge lands on the default branch, and GitHub caches that endpoint —
    verified post-merge, noted rather than asserted here.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • I have updated CHANGELOG.md in the [Unreleased] section
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective (n/a — see above)
  • New and existing unit tests pass locally with my changes

Refs: #1372

Rename CONTRIBUTE.md and its template chain to CONTRIBUTING.md so GitHub
recognises the contributing guide, and add a Contributor Covenant 2.1
CODE_OF_CONDUCT.md routed to the SECURITY.md reporting channel.

Refs: #1372
@c-vigo
c-vigo force-pushed the feature/1372-community-files branch from c97a28e to d7ba54f Compare August 7, 2026 15:06
@c-vigo
c-vigo merged commit 0b3cf55 into dev Aug 7, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1372-community-files branch August 7, 2026 15:17
c-vigo added a commit that referenced this pull request Aug 7, 2026
…rror

PR #1376 renamed CONTRIBUTE.md to CONTRIBUTING.md and updated the root
.pre-commit-config.yaml, but missed the flake-side mirror in nix/hooks.nix
(runner yaml, check, and consumer profiles) and the scaffold template
assets/workspace/.pre-commit-config.yaml. The drift gate
test_runner_render_matches_committed_config failed on dev; both mirrors now
exclude the renamed guide again.

Refs: #1380
c-vigo added a commit that referenced this pull request Aug 7, 2026
…rror (#1383)

## Summary

PR #1376 (#1372) renamed `CONTRIBUTE.md` to `CONTRIBUTING.md` and updated the pymarkdown exclude in the root `.pre-commit-config.yaml`, but missed the flake-side mirror. This PR completes the rename:

- `nix/hooks.nix`: the three pymarkdown exclude patterns (runner `yaml`, `check`, and `consumer` profiles) and the line-436 comment now say `CONTRIBUTING`.
- `assets/workspace/.pre-commit-config.yaml`: the scaffold template's pymarkdown exclude — same rename fallout, and required for the scaffold half of the drift gate (`test_scaffold_render_matches_scaffold_config`) to stay green once the shared render in `nix/hooks.nix` is fixed.
- `CHANGELOG.md` `## Unreleased` → Fixed entry (plus its managed `assets/workspace/.devcontainer/CHANGELOG.md` mirror, updated by the `sync-manifest` hook).

## Testing

No new test: the existing drift gate `tests/test_flake_hooks.py::TestPortableRenderFidelity::test_runner_render_matches_committed_config` already fails on `origin/dev` and pins this fix (TDD RED pre-satisfied).

- Before: `uv run pytest tests/test_flake_hooks.py -k test_runner_render_matches_committed_config` → **FAILED** with `pymarkdown.exclude: rendered='^(README\\.md|CONTRIBUTE\\.md|TESTING\\.md)' committed='^(README\\.md|CONTRIBUTING\\.md|TESTING\\.md)'`.
- After: `uv run pytest tests/test_flake_hooks.py` → **36 passed**.
- `just precommit` (full suite, all files) green.

Closes #1380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant