GitHub - template repository to copy settings and labels

Viewed 2027

I really liked the feature GitHub Template Repository where according to the documentation

After you make your repository a template, anyone with access to the repository can generate a new repository with the same directory structure and files.

What I also want to accomplish is to copy the the labels and settings of the template repository. This would ease processes and bring in standardisation.

Following could be the possible settings which I would like to be inherited from template repository

  • Disable Allow merge commits
  • Rule of master branch i.e. Protected branches
  • GitHub pages source should be master branch /docs folder
  • Activate After pull requests are merged, you can have head branches deleted automatically

Have you tried this ? If yes, how were you able to do it ?

1 Answers
Related