Examples of custom PR templates
The following example templates show how to use the variables in a PR template.
API custom PR template example
{
"data": {
"attributes": {
"title": "[{{ snyk_pull_request_type }}] for {{ package_name }}",
"commit_message": "{{ snyk_pull_request_type}}: for {{ package_name }}",
"description": "Moving package {{ package_name }} from {{ package_from }} to {{ package_to }}\nFixes {{ issue_count }} issues\nFor more details see {{ snyk_project_url }}\nProject {{ snyk_project_name }}\nOrg {{ snyk_org_name }}"
},
"type": "pull_request_template"
}
}