I keep finding piecemeal examples of things that can go into a .github
directory on a GitHub repository.
I can see that it is used for GitHub actions and workflow and for Pull request and issue templates, but I can't see a page outlining what you can put in there with ideally some documentation. I also think I've seen a funding example too.
Basically every time I see something you can do there, I think "that's neat I should do that", but other than examples I can't see a way to discover new things other than by example.
Due to the fact that the directory is called .github
it seems to defy Google and SO search as well.
The . github directory houses workflows, issue templates, pull request templates, funding information, and some other files specific to that project. But another special repository you can create is the . github repository.
“Watchers” are Github users who have asked to be notified of activity in a repository, but have not become collaborators. Watching a repository is similar to following an RSS feed to see changes. Forks, pulls, and commits are counted by the Git software running on the Github servers.
You have no way to see who has checked out your repository using standard git commands such as git clone , but you can see who has forked your repository on GitHub using the Network Graph Visualizer.
On Github, folder .github
is just a convention folder used to place Github related stuff inside it. Github handles some of these files even when you place it in root of your project (such as CONTRIBUTING.md
, CODE_OF_CONDUCT.md
etc). Because Github is constantly bringing in new features, these features are documented on their own, so there is no "all possible files in .github" page. Feel free to place anything that is related to Github specifically inside it.
Some of the most used files in .github
folder:
CODE_OF_CONDUCT.md
-> How to engage in community and how to behave yourself.CONTRIBUTING.md
-> How to contribute to repo (making pull request, setting development environment...)LICENSE.md
- A software license tells others what they can and can't do with your source code.github
folder. You can find this file while browsing other Git hosting services such as GitLab, Bitbucket etc.)FUNDING.yml
-> Supporting a projectISSUE_TEMPLATE
-> Folder that contains a templates of possible issues user can use to open issue (such as if issue is related to documentation, if it's a bug, if user wants new feature etc) P.S. Take a look at tensorflow ISSUE_TEMPLATE PULL_REQUEST_TEMPLATE.md
-> How to make a pull request to projectstale.yml
-> Probot configuration to close stale issues. There are many other apps on Github Marketplace that place their configurations inside .github
folder because they are related to GitHub specifically.SECURITY.md
-> How to responsibly report a security vulnerability in projectworkflows
-> Configuration folder containing yaml files for GitHub ActionsCODEOWNERS
-> Pull request reviewer rules. More info here.dependabot.yml
-> Configuration options for dependency updates. More info here.You don't have to create all these files immediately. If there are lot of bugs reported in your project, create ISSUE_TEMPLATE
. If several people wants to support you, create FUNDING.yml
. You will create more and more files when the need comes.
Github lists all of the files you can use in the documentation page titled Creating a default community health file and the workflows you can add to the .github
directory are detailed in the Introduction to GitHub Actions documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With