GitHub Repo Care
A npm CLI tool which help your GitHub repository to make it community supportive by generating necessary health files such as security/support/contribution/funding and customized template for pull requests/issues and discussions which boost your project for better contribution.
npx gh-repo-care
[!TIP]
Read official Github docs to know more about Community Health Files.
What this package does ?
This is a npm based CLI tool check your GitHub repo and generate community health files in .github
folder (if not exist) or user defined folder.
This tool generate total 15 files with your personalized information
- Github Community health files (5)
- Issues template files (5)
- Discussions template files (2)
- Pull Request template file(1)
- Funding (1)
- CODEOWENERS file (1)
below is the final folder structure
Health File Tree
├── .github
│ ├── CODEOWNERS
│ ├── CODE_OF_CONDUCT.md
│ ├── CONTRIBUTING.md
│ ├── DISCUSSION_TEMPLATE
│ │ ├── announcements.yml
│ │ └── ideas.yml
│ ├── FUNDING.yml
│ ├── GOVERNANCE.md
│ ├── ISSUE_TEMPLATE
│ │ ├── BUG_REPORT.yml
│ │ ├── ENHANCEMENT.yml
│ │ ├── FEATURE_REQUEST.md
│ │ ├── QUESTION.md
│ │ └── config.yml
│ ├── PULL_REQUEST_TEMPLATE.md
│ ├── SECURITY.md
│ ├── SUPPORT.md
Pre-requisite
How to start
install the repo in your node based project
npm install @xkeshav/gh-repo-care
and then run
npx gh-repo-care
type y to continue on asking
then it will ask few questions and ask for your consent and then generate necessary health files.
Notes
[!NOTE]
if you have .github
folder in your repo, then it will ask for a folder name, where it will generate the files, but later you have to move these files into .github
folder, to make it useful.
- Enable Discussions tab from Github repository settings to use discussions template
- You must have Github Sponsor profile to enable funding for your GitHub Repository;
[!CAUTION]
if you already have .github
folder and choose No for that question then it will overwrite the files under .github
folder
License
This project is licensed under the MIT License.