GitHub repo description should have a short brief about the repo and site url if applicable.
Example Description: A completely new look and branding of example.com along with Gutenberg, AMP, PWA, a PDF generator for case study. Example Url: example.com
GitHub repo topics tags should contain the following:
- Describe the technologies used in the project. (PHP, node, etc.)
- Describe the hosting service and EasyEngine version if used. (AWS, EE4 | VIP-GO, etc.)
Guide on how to add topics: https://help.github.com/en/github/administering-a-repository/classifying-your-repository-with-topics
Branch protection rules should be added to the main branches of the project. It is also necessary to add branch protection rules when adding branch delete mechanism by default as described below, so that these default and main branches are not deleted.
A good startpoint is to protect main
, staging
, develop
, qa
, testing
.
Any branch other than protected branch should be created according to branch naming guidelines given in project readme.
Guide to enable branch protection: https://help.github.com/en/enterprise/2.16/admin/developer-workflow/configuring-protected-branches-and-required-status-checks#enabling-a-protected-branch-for-a-repository
Branches other than protected branches should be removed as soon as their work is done. To setup automatic deletion of branches when they are merged go through the below guide. Please make sure to protect branches before setting this up. Otherwise it can lead to deletion of required branches.
Guide to setup auto deletion of merged branches: https://help.github.com/en/github/administering-a-repository/managing-the-automatic-deletion-of-branches
Please note: This will delete any branch other than protected branches that is merged via PR against any branch. If you want to delete branches that should deleted only if a PR is merged against main
. Then that will be a seprate integration. Contact sys team for it until it's setup instructions are added here.
You need to add VAULT_ADDR
and VAULT_TOKEN
secrets to GitHub repository. Contact sys team if you don’t have these.
.github/workflows/deploy_on_push.yml
- UpdateWP_VERSION
according to WordPress version required in project andSLACK_CHANNEL
to channel for deployment notifications..github/workflows/plugin_update_every_week.yml
- By default this will raise PRs against develop branch when plugin update is found. If you want to change the branch, updatedevelop
in the file at both places with required file name.
For more details, refer: https://github.com/rtCamp/action-deploy-wordpress/ https://github.com/rtCamp/action-plugin-update/
GitHub slack integration is present in rtCamp slack.
Guide to subscribe for GitHub notifications in slack channel: https://github.com/integrations/slack#subscribing-and-unsubscribing/
Ideally create a bot channel to subscribe the GitHub notifications of the project.
Guide: https://help.github.com/en/github/managing-your-work-on-github/about-labels
Dependabot has been installed rtCamp organization wide.
For your repo, if you are using php-composer or javascript or submodule packages, you can create dependabot config file so that it knows which dependencies to check for.
Guide to create config file: https://dependabot.com/docs/config-file/#dependabot-config-files
In case you want to update settings for dependabot or face any issues you can ping sys team.