GitHub
Rest API
GitHub offers a Rest API, check documentation here.
Repository Configurations
Following a Gitflow workflow, it is good practice make some configurations.
Deafult branch
Change the repository default branch to develop, inside project's settings.
Configure Pull Requests
Configure Pull Requests on project's settings to ONLY squash commits on merge. Disable the others.
Added Rulesets
Inside the project's settings "Branch protection rules".
main and develop
main and developAdd restriction rules on the main branch, so that code is not commited or pushed directly on it, but only pushed with Pull Requests.
feature
featurerelease
releasehotfix
hotfixPull Request Templates
Create a template inside the projects folder at /.github/PULL_REQUEST_TEMPLATE.md.
Ideal to create at Repository start.
Codeowners
You can use this functionality to specify users as owners of folders, file, extensions, etc inside the project.
This will make them automatically a required Reviewer for PRs on these files.
To add Codeowners add this file to the project's .github folder.
Releases
Last updated