Skip to content
Closed
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
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci

on:
push:
branches:
- main
- moltenhub-*
pull_request:
branches:
- main

jobs:
repository-checks:
name: repository-checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Validate repository layout
run: bash scripts/validate-repo.sh
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Local runtime artifacts
.codex
.task-logs/
AGENTS.md
.moltenhub-agents-*.md
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# .github
# .github

Organization metadata repository for `Molten-Bot`.

## Scope

This repository is intentionally minimal and currently only contains:

- `README.md`
- `profile/README.md`

It does **not** contain product application source code (frontend, backend, or tests).

## Task Routing

If a task is about product behavior (for example, UI bugs such as form fields not rendering),
run the task against the product repository that owns that code, not `Molten-Bot/.github`.
31 changes: 31 additions & 0 deletions scripts/validate-repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -euo pipefail

for required_ignore_pattern in .codex .task-logs/ AGENTS.md ".moltenhub-agents-*.md"; do
if ! grep -Fqx "$required_ignore_pattern" .gitignore; then
echo "error: .gitignore is missing '$required_ignore_pattern'"
exit 1
fi
done

for required_file in README.md profile/README.md; do
if [[ ! -f "$required_file" ]]; then
echo "error: missing required file '$required_file'"
exit 1
fi
done

if ! grep -Fq "## Task Routing" README.md; then
echo "error: README.md must include the 'Task Routing' section"
exit 1
fi

while IFS= read -r markdown_file; do
if grep -nE "[[:blank:]]$" "$markdown_file" >/dev/null; then
echo "error: trailing whitespace found in $markdown_file"
grep -nE "[[:blank:]]$" "$markdown_file"
exit 1
fi
done < <(git ls-files "*.md")

echo "repository validation passed"
Loading