Commit 2ba6e1d
committed
On branch edburns/spotless-agentic-workflow-42
modified: .github/copilot-instructions.md
- Added a new "Pre-commit Hooks and Formatting (Coding Agent)" section
that:
- Explains the hook is automatically enabled via copilot-setup-steps.yml
- Gives explicit 3-step recovery instructions: mvn spotless:apply → git
add -u → retry commit
- Recommends running mvn spotless:apply proactively before committing
Now when the Copilot coding agent starts a session, the setup steps will
enable the pre-commit hook, and if a commit is rejected by Spotless
formatting checks, the agent has clear instructions to fix and retry.
modified: .github/workflows/copilot-setup-steps.yml
- Added a new step "Enable pre-commit hooks" that runs git config
core.hooksPath .githooks before the verification step
- Updated the verification step to also print the configured hooks path for
confirmation
Signed-off-by: Ed Burns <edburns@microsoft.com>1 parent 01c6248 commit 2ba6e1d
File tree
2 files changed
+18
-0
lines changed- .github
- workflows
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
247 | 259 | | |
248 | 260 | | |
249 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
0 commit comments