docs(agent): add organization governance context #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Community Health CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| issue-forms: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate Issue form YAML | |
| shell: ruby {0} | |
| run: | | |
| require "yaml" | |
| paths = Dir["ISSUE_TEMPLATE/*.yml"].sort | |
| abort "no issue forms found" if paths.empty? | |
| paths.each do |path| | |
| doc = YAML.safe_load(File.read(path), aliases: true) | |
| abort "#{path}: root must be a mapping" unless doc.is_a?(Hash) | |
| next if path.end_with?("config.yml") | |
| %w[name description body].each do |key| | |
| abort "#{path}: missing #{key}" unless doc[key] | |
| end | |
| abort "#{path}: body must be an array" unless doc["body"].is_a?(Array) | |
| end | |
| puts "validated #{paths.length} issue-form files" | |
| profile-maturity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate organization profile maturity claims | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| test -s profile/README.md | |
| test -s REPOSITORY_MATURITY.md | |
| grep -Fq '1.0.0-draft' profile/README.md | |
| grep -Fq 'Prerelease Alpha' profile/README.md | |
| grep -Fq 'Scaffold · Planned' profile/README.md | |
| grep -Fq 'CoreLinkPlatform/platform' REPOSITORY_MATURITY.md | |
| if grep -Fq 'CoreLinkPlatform/examples' profile/README.md; then | |
| echo "organization profile references the unavailable examples repository" >&2 | |
| exit 1 | |
| fi |