Every project has a main GIT repository, either on Bitbucket or on GitHub, that is called upstream and every deploy is made from upstream's master branch.
With that in mind is important that the master branch from upstream repositories are kept clean and stable, to achieve that, all work done in a project should be done on a fork from the upstream repository and NEVER straight into the upstream repository.
Add a new article (NewArticle.md) to the Development Guideline.
- Go to Development Guideline's page on BitBucket
- Fork it (https://bitbucket.org/veridu/development-guidelines/fork)
- Clone your fork on your dev machine (
git clone [email protected]:devUser/development-guidelines.git) - Add upstream repository remote (
git remote add upstream [email protected]:veridu/development-guidelines.git) - Create a new branch for your new article (
git branch new-article -c) - Add your content (
echo "woot!" > NewArticle.md) - Add your changes (
git add NewArticle.md) - Commit your changes (
git commit -m "Added my new Article!") - Push your commits to your fork (
git push origin new-article) - Create a pull request (https://bitbucket.org/devUser/development-guidelines/pull-requests/new)
- Enjoy!
- You should always sync your repository (
git pull upstream master) with upstream before pushing changes to be sure your changes are compatible with the latest work available. - Project settings (except for the ones that should be consistent between dev/prod environments) must not be added to code repository and instead should be be distributed as
.distfiles, including documentation for each entry and possible different syntaxes whenever applicable. .gitignorefiles should ensure that log files, core dump files, backup files, editor/IDE files, build binaries and whatever else that shouldn't be part of the code repository is properly ignored from git tracking.
Go to Repository Settings (e.g. https://bitbucket.org/veridu/scoringreports/admin/access), under General, click on Access management (e.g. https://bitbucket.org/veridu/scoringreports/admin/access).
Ensure you remove yourself as an admin (change group access before removing yourself).
Ensure the following access policies according to your project audience:
- Backend
- Administrators:
ADMIN - Back-End:
READ - Front-End:
READ - Operations:
READ - Scoring:
READ
- Administrators:
- Frontend
- Administrators:
ADMIN - Front-End:
READ - Operations:
READ
- Administrators:
- Scoring
- Administrators:
ADMIN - Operations:
READ - Scoring:
READ
- Administrators:
Go to Repository Settings (e.g. https://bitbucket.org/veridu/development-guidelines/admin), under Integrations, click on Webhooks (e.g. https://bitbucket.org/veridu/development-guidelines/admin/addon/admin/bitbucket-webhooks/bb-webhooks-repo-admin).
- Title:
Slack - URL:
***REMOVED*** - Status:
Active - Triggers:
Choose from a full list of triggers- Pull Request:
CreatedandMerged
- Pull Request:
Go to Repository Settings (e.g. https://github.com/veridu/veridu-php/settings), on the left menu, click on Webhooks & services (e.g. https://github.com/veridu/veridu-php/settings/hooks).
- Payload URL:
***REMOVED*** - Content type:
application/json - Secret: empty
- Which events would you like to trigger this webhook?:
Let me select individual events.Pull request