Labs/Jetpack/FlightDeck/Contribution: Difference between revisions
< Labs | Jetpack | FlightDeck
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
*Development is done on [http://github.com/ Github], but we certainly don't want to limit the user experience to github only. Feel free to use the server of your choice. | *Development is done on [http://github.com/ Github], but we certainly don't want to limit the user experience to github only. Feel free to use the server of your choice. | ||
*Every change should have a corresponding bug in [https://bugzilla.mozilla.org/buglist.cgi?component=FlightDeck&product=Mozilla%20Labs bugzilla] | *Every change should have a corresponding bug in [https://bugzilla.mozilla.org/buglist.cgi?component=FlightDeck&product=Mozilla%20Labs bugzilla] | ||
*Every change should be developed in a specific branch | *Every change should be developed in a specific branch, it would be good if it would contain the number of the bug in bugzilla (i.e. bug-12345-human_readable where 123245 is a number of the bug) | ||
*There is a number of developers who are able to merge and push from the | *There is a number of developers who are able to merge and push from the contributor's branch to the main repository | ||
*Production | *Production is updated from the tags marked before launch of the specific version (i.e. 0.9.4) | ||
*You may also like to read the [[Labs/Jetpack/FlightDeck/Code_Workflow|Code Workflow]] document. | |||
== Development installation == | == Development installation == | ||
| Line 16: | Line 17: | ||
== Contact the team == | == Contact the team == | ||
If you have questions, ask in [irc://irc.mozilla.org/#flightdeck #flightdeck on irc.mozilla.org] or on the [http://groups.google.com/group/mozilla-labs-jetpack Jetpack mailing list]. | If you have questions, ask in [irc://irc.mozilla.org/#flightdeck #flightdeck on irc.mozilla.org] or on the [http://groups.google.com/group/mozilla-labs-jetpack Jetpack mailing list]. | ||
= How to commit = | = How to commit = | ||
Revision as of 16:10, 13 May 2011
Overview
- Changes should follow Style Guide
- All changes should be accompanied with test. (front-end tests soon)
- Development is done on Github, but we certainly don't want to limit the user experience to github only. Feel free to use the server of your choice.
- Every change should have a corresponding bug in bugzilla
- Every change should be developed in a specific branch, it would be good if it would contain the number of the bug in bugzilla (i.e. bug-12345-human_readable where 123245 is a number of the bug)
- There is a number of developers who are able to merge and push from the contributor's branch to the main repository
- Production is updated from the tags marked before launch of the specific version (i.e. 0.9.4)
- You may also like to read the Code Workflow document.
Development installation
Contact the team
If you have questions, ask in #flightdeck on irc.mozilla.org or on the Jetpack mailing list.
How to commit
- Findor create bug in bugzilla
- checkout and update the branch you want to fix
- master for current development
git checkout master; git pull main master
- release-# branches for fixing the release
git checkout release-1.0a3; git pull origin release-1.0a3
- master for current development
- fetch current remote branches
git fetch
- create the branch you want to work on
git checkout -b bug-12345-name_of_the_feature
- code
- test
./manage test
- commit changes
git commit -am "Please add comment here"
- push to your repository
git push origin bug-12345-name_of_the_feature
- provide the link to the commit in bugzilla
- switch back to master branch
git checkout master
Ad 4. Sometimes you may want to work on some else's repository do following instead:
git remote add {username} {user_read_repository_at_github}
git fetch {username}
git checkout -b bug-12345-name_of_the_feature {username}/bug-12345-name_of_the_feature
If this is a fix to the current production system and it has to be implemented immediately please use the hotfix prefix instead of the bug one. Like hotfix-12345-name_of_the_fix.
Merging
Please always add --no-ff if using git merge