Contributing to Lemline
This document explains how to contribute to the Lemline project. Whether you're interested in fixing bugs, adding features, improving documentation, or helping with community support, your contributions are welcome and appreciated.
Table of Contents
Code of Conduct
The Lemline project is committed to fostering an open and welcoming environment. All participants in our project and community are expected to adhere to our Code of Conduct:
Treat everyone with respect and kindness
Be thoughtful in your communications
Be welcoming and inclusive
Be considerate
Give and gracefully accept constructive feedback
Respect the privacy and safety of others
For the full Code of Conduct, please see CODE_OF_CONDUCT.md.
Getting Started
Prerequisites
Before you start contributing, you'll need:
Java Development Kit (JDK) - Version 17 or higher
Gradle - The project uses the Gradle wrapper, so you don't need to install it separately
Git - For version control
Docker - For running integration tests with containerized dependencies
IDE - IntelliJ IDEA is recommended, but any IDE with Kotlin support will work
Setting Up Your Development Environment
Fork the repository on GitHub
Clone your fork locally:
git clone https://github.com/<your-username>/lemline.git cd lemlineSet up the upstream remote:
git remote add upstream https://github.com/lemline/lemline.gitBuild the project:
./gradlew buildRun tests:
./gradlew test
Project Structure Overview
Lemline follows a modular architecture:
lemline-core - Core execution engine and workflow model
lemline-runner - Quarkus-based runtime for executing workflows
lemline-common - Shared utilities and common functionality
lemline-docs - Project documentation
Development Workflow
Branching Strategy
Lemline uses a feature branch workflow:
Create a branch from
mainfor your work:git checkout -b feature/<feature-name> # For new features git checkout -b fix/<issue-number> # For bug fixes git checkout -b docs/<description> # For documentation changesMake your changes, commit them with clear, descriptive commit messages
Push your branch to your fork
Create a pull request to the
mainbranch
Commit Message Guidelines
Follow these guidelines for commit messages:
Use the present tense ("Add feature" not "Added feature")
Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
Limit the first line to 72 characters or less
Reference issues and pull requests after the first line
Use semantic prefixes for your commits:
feat:- A new featurefix:- A bug fixdocs:- Documentation only changesstyle:- Changes that do not affect the meaning of the coderefactor:- A code change that neither fixes a bug nor adds a featureperf:- A code change that improves performancetest:- Adding missing tests or correcting existing testschore:- Changes to the build process or auxiliary tools
Example:
Code Style and Standards
Lemline follows Kotlin coding conventions and style:
Use 4 spaces for indentation
Maximum line length is 120 characters
Use explicit type declarations for public API methods
Include KDoc for all public APIs
The repository includes a Spotless configuration for formatting. Before submitting a pull request, run:
Testing Guidelines
All contributions should include appropriate tests:
Unit Tests - For testing components in isolation
Integration Tests - For testing interactions between components
Behavior Tests - For testing user-facing behaviors
When writing tests:
Aim for high test coverage (>80%)
Test both success and failure cases
Use clear, descriptive test names
Organize tests to mirror the structure of the code being tested
Run tests with:
For specific test classes:
Contribution Types
Bug Fixes
Search the issue tracker to check if the bug has already been reported
If it hasn't, create a new issue with a clear description
Include steps to reproduce, expected behavior, and actual behavior
If possible, include a minimal code sample that reproduces the issue
Fix the bug on a branch named
fix/<issue-number>Add tests that verify the fix
Submit a pull request referencing the issue
Feature Additions
For significant features, first open an issue for discussion
Clearly describe the feature and its use cases
Wait for feedback and agreement on the approach
Implement the feature on a branch named
feature/<feature-name>Add comprehensive tests for the feature
Update documentation to cover the new feature
Submit a pull request referencing the issue
Documentation Improvements
For minor documentation fixes, you can submit a PR directly
For larger documentation changes, open an issue for discussion first
Create a branch named
docs/<description>Make your changes, following the Documentation Guide
Submit a pull request
Performance Improvements
First establish a performance baseline with benchmarks
Create a branch named
perf/<description>Make your performance improvements
Include before and after benchmark results in your PR
Ensure existing tests still pass
Submit a pull request
Pull Request Process
Open a Pull Request:
Provide a clear description of the changes and the problem they solve
Reference any related issues
Include any special instructions for testing
Pass Automated Checks:
Ensure your code passes all CI checks
This includes tests, code style, and other automated verifications
Code Review:
At least one core contributor will review your code
Address any feedback or questions
Make requested changes as needed
Final Review and Merge:
Once approved, a core contributor will merge your pull request
In some cases, additional changes might be requested before merging
Documentation Contributions
Good documentation is crucial for Lemline's usability. When contributing to documentation:
Types of Documentation
Reference Documentation - Technical descriptions of APIs, configurations, and options
Tutorials - Step-by-step guides for specific tasks
How-to Guides - Practical guides for solving specific problems
Explanations - Conceptual information about how things work
Documentation Guidelines
Structure - Follow the Diátaxis documentation framework
Clarity - Use clear, simple language
Examples - Include practical examples where appropriate
Formatting - Use proper Markdown formatting
Consistency - Maintain consistent tone and style
For detailed documentation guidelines, see the Documentation Style Guide.
Community Support
Ways to Support the Community
Answer Questions - Help answer questions on GitHub Discussions, Stack Overflow, or Discord
Improve Documentation - Update docs to cover common questions
Create Examples - Create example workflows for common use cases
Mentor New Contributors - Help new contributors navigate the project
Community Channels
GitHub Discussions - For feature discussions and general questions
Discord - For real-time communication and community building
Stack Overflow - For technical questions (use the
lemlinetag)Monthly Community Call - Join our monthly video call for project updates
Becoming a Core Contributor
Core contributors have additional responsibilities and privileges:
Path to Core Contributor
Consistent Contributions - Make regular, high-quality contributions
Code Reviews - Participate in reviewing other contributors' pull requests
Community Engagement - Help answer questions and support the community
Project Understanding - Demonstrate a deep understanding of the project's goals and architecture
Core Contributor Responsibilities
Code Review - Review pull requests from the community
Mentorship - Help new contributors get started
Project Direction - Participate in discussions about project direction
Quality Assurance - Help maintain the quality and stability of the codebase
Applying for Core Contributor Status
After you've made substantial contributions over time, you can be nominated for core contributor status by an existing core contributor, or you can express interest by contacting the project maintainers.
Recognition and Credits
All contributors are recognized in the project:
Contributors List - All contributors are listed in CONTRIBUTORS.md
Release Notes - Significant contributions are highlighted in release notes
Community Spotlights - Regular spotlights on notable contributors
Questions and Contact
If you have any questions about contributing that aren't answered here, please:
Check the Frequently Asked Questions
Ask in the GitHub Discussions
Reach out on Discord
Contact the maintainers at community@lemline.io
Thank you for contributing to Lemline!
For more information on the Lemline community, see: