Skip to content

docs: clarify that .github/ deployed files should be committed#290

Merged
danielmeppiel merged 3 commits intomainfrom
docs/clarify-github-commit-guidance
Mar 13, 2026
Merged

docs: clarify that .github/ deployed files should be committed#290
danielmeppiel merged 3 commits intomainfrom
docs/clarify-github-commit-guidance

Conversation

@danielmeppiel
Copy link
Collaborator

Summary

Addresses #288 — the docs were silent on whether files APM deploys to .github/ should be committed or gitignored.

Stance: commit them. Rationale in the issue reply.

Changes

Quick-start guide (getting-started/quick-start.md)

  • Expanded "What to commit" section to explicitly list .github/ and .claude/ deployed files
  • Added a tip about keeping deployed files in sync via CI drift checks

CI/CD guide (integrations/ci-cd.md)

  • Added "Verify Deployed Primitives" section with a concrete git diff drift check workflow step
  • Added best-practices bullet about committing .github/ and .claude/ files

No code changes

The current behavior (not gitignoring .github/) is already correct. This is a docs-only clarification.

Closes #288

Expand the quick-start 'What to commit' section to explicitly address
.github/ and .claude/ deployed files, and add a CI drift check example
to the CI/CD guide.

Closes #288

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 13, 2026 21:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR clarifies the recommended Git workflow for APM’s deployed integration files by explicitly documenting that .github/ and .claude/ outputs should be committed (not gitignored), and adds a CI drift-check pattern to keep those files in sync with apm.yml.

Changes:

  • Update Quick Start “What to commit” guidance to include .github/ and .claude/ deployed files and add a CI drift-check tip.
  • Add a “Verify Deployed Primitives” section to the CI/CD guide with an example drift-check step.
  • Extend CI/CD best-practices bullets to recommend committing deployed integration files.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/src/content/docs/integrations/ci-cd.md Adds a deployed-primitives drift check snippet and updates best-practice guidance to commit .github//.claude/ outputs.
docs/src/content/docs/getting-started/quick-start.md Expands “What to commit” to explicitly include .github//.claude/ deployed files and links to CI drift checks.
Comments suppressed due to low confidence (1)

docs/src/content/docs/integrations/ci-cd.md:75

  • This workflow step may fail in repos that don’t use Claude integration because .claude/ may not exist after apm install, and git diff ... .claude/ can error on a missing pathspec. Consider guarding the .claude/ check (only include it if the directory exists) and using git diff --exit-code -- <paths> to disambiguate paths.
          apm install
          git diff --exit-code .github/ .claude/ || \
            (echo "APM integration files are out of date. Run 'apm install' and commit." && exit 1)

Comment on lines +72 to +75
run: |
apm install
git diff --exit-code .github/ .claude/ || \
(echo "APM integration files are out of date. Run 'apm install' and commit." && exit 1)
Comment on lines +129 to +131
- `.github/` deployed files (`prompts/`, `agents/`, `instructions/`, `skills/`, `hooks/`) — commit them so every contributor (and [Copilot on github.com](https://docs.github.com/en/copilot)) gets agent context without running `apm install`.
- `.claude/` deployed files (`agents/`, `commands/`, `skills/`, `hooks/`) — same rationale, for Claude Code users.
- `apm_modules/` — add to `.gitignore`. Rebuilt from the lockfile on install.
danielmeppiel and others added 2 commits March 13, 2026 22:33
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
git diff --exit-code misses new untracked files (the most common drift
case when adding dependencies). git status --porcelain catches both
modified and untracked files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danielmeppiel danielmeppiel merged commit a9c5daa into main Mar 13, 2026
6 checks passed
@danielmeppiel danielmeppiel deleted the docs/clarify-github-commit-guidance branch March 13, 2026 21:41
danielmeppiel added a commit that referenced this pull request Mar 13, 2026
- Fix Codex runtime download 404: Windows assets use .exe.tar.gz naming
- Configure UTF-8 encoding on Windows consoles to prevent UnicodeEncodeError
- Resolve .cmd/.ps1 shell wrappers via shutil.which() on Windows
- Replace GIT_CONFIG_GLOBAL=NUL with empty temp file for git compatibility
- Update CHANGELOG v0.7.9 with Windows fixes, PR #289, PR #290

Closes #285

Co-authored-by: Sergio Sisternes <207026618+sergio-sisternes-epam@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Docs: Clarify whether .github/ agent files should be committed to version control

2 participants