Copilot agent ignores instructions for inital planning commit. #160091
Replies: 5 comments
-
|
I am seeing the same behavior. Yet, when assigning an issue to copilot and it creates a PR with an initial commit, the commit message does not follow our guidelines. |
Beta Was this translation helpful? Give feedback.
-
|
Its a real ballache having to go manually rebase the branch to remove this commit. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
Yeah, I use conventional commits, and do not want this commit to be included in the history. |
Beta Was this translation helpful? Give feedback.
-
|
I'm using |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot Agent Mode
Body
Statement
When operating GH copilot in agent mode starting from assigning it to a review, I do not want the project CI to be run for every update as we iterate through solutions in the PR it creates.
Partial fix
Adding explicit instructions to include [skip ci] to every commit message works for all commit messages created by the agent except the first one. This reduces the CI burden, but it would be great if the inital commit message also honored this instruction.
Details of attempted solution
I have the following in in .github/workflows/copilot-instructions.md
Commit Messages
Always add
[skip ci]to the end of all commit messages, including the initial plan for issue, when making commits in this repository. This prevents CI workflows from being triggered unnecessarily when changes are made by Copilot.Example commit message format:
or
or
This instruction applies to all forks of this repository.
As this was not sufficient, I also added .github/workflows/copilot-instructions.yml (per ghcp chat rec) with the following:
commit_message_guidelines: |
All commit messages (including the initial commit for an issue or PR) must end with [skip ci] to prevent CI from running. This applies to every commit, including 'Initial plan for issue'.
Beta Was this translation helpful? Give feedback.
All reactions