Skip to content

Edburns/re enable pre commit hooks#49

Open
edburns wants to merge 2 commits intomainfrom
edburns/re-enable-pre-commit-hooks
Open

Edburns/re enable pre commit hooks#49
edburns wants to merge 2 commits intomainfrom
edburns/re-enable-pre-commit-hooks

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented Mar 31, 2026

I have determined that a possible cause of the problems is a series of 500 errors on GitHub. Given that we reverted some commits in this session as a means to determine the cause of the problem, I would now like to un-revert those reversions and push those changes to upstream/edburns/re-enable-pre-commit-hooks.

Copilot AI review requested due to automatic review settings March 31, 2026 20:36
@edburns
Copy link
Copy Markdown
Collaborator Author

edburns commented Mar 31, 2026

Merge this when https://www.githubstatus.com/ returns to all clear.

Copy link
Copy Markdown
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

Re-enables repository pre-commit hook enforcement in the Copilot coding agent environment and documents how to handle hook failures.

Changes:

  • Configure the Copilot setup workflow to enable repository hooks via core.hooksPath.
  • Add Copilot-specific documentation describing the pre-commit hook behavior and remediation steps.
  • Add workflow logging to show the configured hooks path during setup verification.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/copilot-setup-steps.yml Enables .githooks via git config core.hooksPath during Copilot agent setup and prints the configured hooks path.
.github/copilot-instructions.md Adds guidance about pre-commit hook behavior in the Copilot coding agent environment and how to fix Spotless failures.

Comment on lines +247 to +250
## Pre-commit Hooks and Formatting (Coding Agent)

The repository has a pre-commit hook (`.githooks/pre-commit`) that is **automatically enabled** in the Copilot coding agent environment via `copilot-setup-steps.yml`. The hook runs `mvn spotless:check` on any commit that includes changes under `src/`.

Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

This new section says the pre-commit hook is “automatically enabled” via copilot-setup-steps.yml, but earlier in the same document (and in CONTRIBUTING/README) the hook is described as something developers must manually enable with git config core.hooksPath .githooks. Please clarify the scope (e.g., auto-enabled only in the Copilot coding agent environment; local development still requires manual enablement) to avoid conflicting guidance, and consider linking explicitly to .github/workflows/copilot-setup-steps.yml for precision.

Copilot uses AI. Check for mistakes.
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.

2 participants