> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/scan-fix-and-prevent/fix/snyk-pull-or-merge-requests/customize-pr-templates.md).

# Customize PR templates

How to customize Snyk pull request templates

When you fix or upgrade Snyk Open Source and Snyk Container Projects imported using the [SCM integrations](https://docs.snyk.io/developer-tools/integrations/scm-integrations/organization-level-integrations), Snyk raises pull requests (PRs) against your repository.

Snyk has default PR templates for the title, description, and commit message. These indicate what packages are being changed, which issues are being fixed, and many other details.

You may have your own standards and practices for submitting pull requests. For instance, if a pull request comes from Snyk, you may require the title to begin with `SNYK:`.

You can set custom PR templates using the following methods:

* API request - set all PRs in the Group to the custom template that is uploaded. Refer to [Create an API request with a Custom template](/scan-fix-and-prevent/fix/snyk-pull-or-merge-requests/customize-pr-templates/apply-a-custom-pr-template.md#create-and-manage-a-custom-pr-template-using-the-api) on the [Apply a Custom PR template](/scan-fix-and-prevent/fix/snyk-pull-or-merge-requests/customize-pr-templates/apply-a-custom-pr-template.md) page.
* [YAML upload ](/scan-fix-and-prevent/fix/snyk-pull-or-merge-requests/customize-pr-templates/apply-a-custom-pr-template.md#customize-using-a-yaml-pr-template-file)- set the custom template for a specific repository

After the template is set, the custom PR template feature is enabled.

PR templates are opened with a custom template in the following order of precedence:

* First, Snyk applies anything that is set for the specific repository, that is, the YAML upload.
* If there is anything missing from that template or the Project does not have a YAML file, Snyk checks for your Group template uploaded and set using the API request.
* If anything is missing in the Group template or no custom template is found, Snyk applies the default template.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.snyk.io/scan-fix-and-prevent/fix/snyk-pull-or-merge-requests/customize-pr-templates.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
