Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How would you include a pull_request_template in multiple repos?

I'm working with a software development team that wants a standard pull_request_template.md file included across multiple repositories (the file is a standard checklist for authors and reviewers to go through when doing a PR).

If I want to change this file and have it update in an automatic or semi-automatic manner across multiple repos, how would I do that? Do I need to start using git-submodules?

like image 714
Ben Seymour Avatar asked Sep 02 '25 09:09

Ben Seymour


1 Answers

If you're happy for this to be a default for all repos in your organisation, you can create a repo called .github with a default pull request template:

https://github.blog/changelog/2019-02-21-organization-wide-community-health-files/

Unfortunately without some external tooling like git-submodules there's no way to share this across only certain repos however.

like image 52
Leon Aves Avatar answered Sep 04 '25 23:09

Leon Aves