Last updated by admin 1 year ago
How to ContributeWe're always on the lookout for people who can contribute to Grails. There are four main areas of activity: raising issues, improving the documentation, contributing to the Grails codebase, and developing plugins.In addition to the information given below, there are some screencasts on contributing to Grails - check them out!
Raising issuesAll Grails issues are stored in a JIRA instance. You have to create an account before you can start raising issues, but once that's done you're good to go.Here are a few tips that will help us process your issues:
- Do a quick search beforehand to check whether someone else has already raised the issue. You can use the quick search box in the top righthand corner, but if you do, start your query with "grails" so that it only searches the Grails project.
- Try to include as much pertinent information as you can in the summary. "Pages are displayed wrong" is not helpful. "Stylesheet in GSP layout is not being applied" is much better.
- If you can't categorise your issue with one of the available components, don't worry - just leave it empty.
- Provide a reproducible example with instructions on how to reproduce the problem - running
grails bug-reportwithin a project is the best way of providing a full sample project
- Even better, provide some test cases in the project if you can. Integration or functional tests are usually the most appropriate. This will make it much easier for us to diagnose and fix the issue.
Reviewing issuesThere are quite a few old issues in JIRA, some of which may no longer be valid. The core team can't track down these alone, so a very simple contribution that you can make is to verify one or two issues occasionally.Which issues need verification? A shared JIRA filter will display all issues that haven't been resolved and haven't been reviewed by someone else in the last 6 months. Just pick one or two of them and check whether they are still relevant.Once you've verified an issue, simply edit it and set the "Last Reviewed" field to today. If you think the issue can be closed, then also check the "Flagged" field and add a short comment explaining why. Once those changes are saved, the issue will disappear from the results of the above filter. If you've flagged it, the core team will review and close if it really is no longer relevant.One last thing: you can easily set the above filter as a favourite on this JIRA screen so that it appears in the "Issues" drop down. Just click on the star next to a filter to make it a favourite.
DocumentationGrails documentation currently falls into two categories: the user guide and the wiki (what you're looking at right now). To update the wiki or add new pages, you just need to register and then log in - here's a description of the wiki syntax that we use.Providing patches for the user guide is more involved. You first need to get hold of the source from GitHub. How you do that depends on how significant a contribution you plan to make.You will probably want to start by getting a read-only clone of the repository from which you can create patches to attach to JIRA issues.If you know you're likely to contribute frequently, then create your own fork of the grails-doc repository and send pull requests to the development team.
Whichever approach you take, it's a good idea to check the Developer Guidelines for information on how to use git.
CodingIf you want to get involved in the development of Grails then these documents should help you get started:
Before we accept a non-trivial patch or pull request we will need you to sign the contributor's agreement. We will let you know if this is necessary for your particular contributions. Signing the contributor's agreement does not grant anyone commit rights to the main repository, but it does mean that we can accept your contributions, and you will get an author credit if we do. Active contributors might be asked to join the core team, and given the ability to merge pull requests.The source code for the Grails Core project is hosted on GitHub, as are the other main Grails projects, such as the documentation, sample applications, and functional test suite. If you'd like to fix bugs or implement features in Core, you have two options:
- Provide a patch and attach it to a JIRA issue.
- Fork the repository and send pull requests for your changes.