그 외

[그 외] github pr template

Dong's Universe 2023. 12. 26. 22:07

여러개를 만들고 싶으면 .github/PULL_REQUEST_TEMPLATE/ 안에 md 파일을 넣고

pull requset url에 &template=name으로 쿼리파라미터를 주면된다.

예를 들어 다음과 같다.

https://github.com/username/repo/compare/main...branch?expand=1&template=feature_request.md

 

Reference


https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository

 

Creating a pull request template for your repository - GitHub Docs

When you add a pull request template to your repository, project contributors will automatically see the template's contents in the pull request body.

docs.github.com