Contribution guide

Interested in contributing to the Invenio project? There are lots of ways to help.

Code of conduct

Overall, we’re open, considerate, respectful and good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, our Code of Conduct will come naturally.

Get in touch

See Link and Communication channels. Don’t hesitate to get in touch with the Invenio maintainers. The maintainers can help you kick start your contribution.

Types of contributions

Report bugs

  • Found a bug? Want a new feature? Open a GitHub issue on the applicable repository and get the conversation started (do search if the issue has already been reported). Not sure exactly where, how, or what to do? See Link.
  • Found a security issue? Alert us privately at, this will allow us to distribute a security patch before potential attackers look at the issue.


  • Missing your favourite language? Translate Invenio on Transifex
  • Missing context for a text string? Add context notes to translation strings or report the issue as a bug (see above).
  • Need help getting started? See our Translation guide.

Write documentation

  • Found a typo? You can edit the file and submit a pull request directly on GitHub.
  • Debugged something for hours? Spare others time by writing up a short troubleshooting piece on
  • Wished you knew earlier what you know now? Help write both non-technical and technical topical guides.

Write code

  • Need help getting started? See our Quickstart.
  • Need help setting up your editor? See our Developer environment guide guide which helps your automate the tedious tasks.
  • Want to refactor APIs? Get in touch with the maintainers and get the conversation started.
  • Troubles getting green light on Travis? Be sure to check our Style guide and the Developer environment guide. It will make your contributor life easier.
  • Bootstrapping a new awesome module? Use our Invenio cookiecutter templates for modules, instances or data models

Style guide (TL;DR)

Travis CI is our style police officer who will check your pull request against most of our Style guide, so do make sure you get a green light from him.

ProTip: Make sure your editor is setup to do checking, linting, static analysis etc. so you don’t have to think. Need help setting up your editor? See Developer environment guide.

Commit messages

Commit message is first and foremost about the content. You are communicating with fellow developers, so be clear and brief.

(Inspired by How to Write a Git Commit Message)

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Indicate the component follow by a short description
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how, using bullet points

ProTip: Really! Spend some time to ensure your editor is top tuned. It will pay off many-fold in the long run. See Developer environment guide.

For example:

component: summarize changes in 50 char or less

* More detailed explanatory text, if necessary. Formatted using
  bullet points, preferably `*`. Wrapped to 72 characters.

* Explain the problem that this commit is solving. Focus on why you
  are making this change as opposed to how (the code explains that).
  Are there side effects or other unintuitive consequences of this
  change? Here's the place to explain them.

* The blank line separating the summary from the body is critical
  (unless you omit the body entirely); various tools like `log`,
  `shortlog` and `rebase` can get confused if you run the two

* Use words like "Adds", "Fixes" or "Breaks" in the listed bullets to help
  others understand what you did.

* If your commit closes or addresses an issue, you can mention
  it in any of the bullets after the dot. (closes #XXX) (addresses

Co-authored-by: John Doe <>

Git signature: The only signature we use is Co-authored-by (see above) to provide credit to co-authors. Previously we required a Signed-off-by signature, however this is no longer required.

Pull requests

Need help making your first pull request? Check out the GitHub guide Forking Projects.

When making your pull request, please keep the following in mind:

  • Create logically separate commits for logically separate things.
  • Include tests and don’t decrease test coverage.
  • Do write documentation. We all love well-documented frameworks, right?
  • Run tests locally using script.
  • Make sure you have the rights if you include third-party code (and do credit the original creator). Note, you cannot include GPL or AGPL licensed code. LGPL and other more permissive open source license or fine.
  • Green light on all GitHub status checks is required in order to merge your PR.

Work in progress (WIP)

Do publish your code as pull request sooner than later. Just prefix the pull request title with WIP (=work in progress) if it is not quite ready.

Allow edits from maintainers

To speed up the integration process, it helps if on GitHub you allow maintainers to edit your pull request so they can fix small issues autonomously.