Changing the initial commit from Copilot Coding Agent #178992
-
Select Topic AreaQuestion Copilot Feature AreaCopilot Coding Agent BodyWe have rulesets in place that require a ticket number to be present on every commit on our repositories. In my testing of Copilot Coding Agent (CCA), I see that it always creates its first commit with the message "Initial plan". This commit does not follow our standards. I tried to create a Any subsequent commits from CCA (after the first one) are created correctly, and they have the ticket number in them. It's that first commit which is causing problems. Is there anything I can do about this? Will that first commit always say "Initial plan" regardless of my custom instructions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Right now that first commit with the message “Initial plan” is built into how the Copilot Coding Agent works, and you can’t override it through .github/copilot-instructions.md or any other configuration. The agent automatically creates that commit when it starts a new task, and it doesn’t follow your custom commit message rules for that one. All later commits do respect your instructions, but the first one is system-generated. The only real workarounds are either to create the branch and make the initial compliant commit yourself before running the agent, or to adjust your repository rules so that the ticket requirement applies only to subsequent commits or to the pull request title instead. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
I re-opened this discussion as I have a follow-up question. I updated my Ruleset to allow commit messages of Is it possible that the agent is making a commit with a message like "XYZ" and then at a later stage is updating the commit message to say "Initial plan"? Simply allowing a commit message of |
Beta Was this translation helpful? Give feedback.
Right now that first commit with the message “Initial plan” is built into how the Copilot Coding Agent works, and you can’t override it through .github/copilot-instructions.md or any other configuration. The agent automatically creates that commit when it starts a new task, and it doesn’t follow your custom commit message rules for that one. All later commits do respect your instructions, but the first one is system-generated. The only real workarounds are either to create the branch and make the initial compliant commit yourself before running the agent, or to adjust your repository rules so that the ticket requirement applies only to subsequent commits or to the pull request title instead.