F2 is currently maintained by Markit On Demand and you're encouraged to contribute to this project right here on GitHub. The following are guidelines for contributing; please familiarize yourself before sending pull requests.
Thank you to the growing list of contributors!
First, a couple of ground rules.
- Make sure you have a GitHub account.
- Submit a ticket for your issue, assuming one does not already exist. (Search first!)
- Clearly describe the issue including steps to reproduce when it is a bug.
- Include the F2 version number.
- Fork the F2 repository.
The latest F2 changes can be found in the -wip
branch. This branch's name uses the upcoming version number followed by -wip
which stands for "work-in-progress", for example 1.3.1-wip
as shown below. There will only be one -wip
branch at any given time.
Do not work directly in master
!
Once you've forked the F2 repository:
- Create a new branch in your fork from the
next.version-wip
branch. Do not work directly inmaster
!$> git checkout -b 'your_branch_name' next.version-wip
- Read the F2 coding standards.
- Add and document unit test(s) for your changes. At least one unit test is required.
- Re-run all the Jasmine tests to confirm your changes didn't break anything.
$> grunt test
- Perform browser testing in supported browsers.
- Add a detailed commit message.
- You should only commit files you have changed. Do not commit compiled or generated F2 files, except:
- If you've modified any file in the
/sdk/src/
directory, you must commit/sdk/f2.min.js
for the Travis unit tests.
- If you've modified any file in the
- Push committed changes to your branch.
- Submit a pull request for
F2\next.version-wip
notF2\master
. - Add a message or additional detail for your changes in the pull request.
- Wait for your change(s) to be reviewed.
Coding standards promote a common vocabulary and syntax so that our fellow developers can concentrate on what you're saying rather than on how you're saying it. It is ultimately up to you how you write your own code, but please become familiar with the standards and use them when contributing to F2.
Coding standards help an individual project, and also make it easier for one project to reuse components from another project. This, of course, is a core component of F2.
Read our coding standards on the wiki.
If you have any questions while writing code to contribute to F2, post a message on the Google Group, find us on Twitter @OpenF2 or by email at info@openf2.org. You can also follow our blog for more in-depth F2 updates.
- F2 Google Group
- F2 Coding Standards
- GitHub Documentation: Using Pull Requests
- GitHub Documentation
- Markit On Demand or @markitondemand
- Markit On Demand Labs - @MOD/L