Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 6.56 KB

contributing.md

File metadata and controls

74 lines (52 loc) · 6.56 KB

Contributing Guide

What's the contribution

Here are some guidelines for contributing to this project:

  1. Report issues/bugs: If you find any issues or bugs in the project, please report them by creating an issue on the issue tracker. Describe the issue in detail and also mention the steps to reproduce it. The more details you provide, the easier it will be for me to investigate and fix the issue. When using Codex in this repository, libra-issue-triage can help clarify the report and draft a copy-ready title and body. Review the draft, then create the Issue through GitHub or with gh issue create; Codex only submits it when you explicitly authorize that remote action.
  2. Suggest enhancements: If you have an idea to enhance or improve this project, you can suggest it by creating an issue on the issue tracker. Explain your enhancement in detail along with its use cases and benefits. I appreciate well-thought-out enhancement suggestions.
  3. Contribute code: If you want to develop and contribute code, follow these steps:
    • Familiarize yourself with the Code of Conduct. libra has a strict policy against abusive, unethical, or illegal behavior.
    • Choose an issue to work on. Issues labeled good first issue are suitable for newcomers. You can also look for issues marked help wanted.
    • Fork the libra repository and create a branch for your changes.
    • Make your changes and commit them with a clear commit message. Sign the Developer Certificate of Origin (DCO) by adding a Signed-off-by line to your commit messages. This certifies that you wrote or have the right to submit the code you are contributing to the project.
    • Push your changes to GitHub and open a pull request.
    • Respond to any feedback on your pull request. The libra maintainers will review your changes and may request modifications before merging. Please ensure your code is properly formatted and follows the same style as the existing codebase.
    • Once your pull request is merged, you will be listed as a contributor in the project repository and documentation.
  4. Write tutorials/blog posts: You can contribute by writing tutorials or blog posts to help users get started with this project. Submit your posts on the issue tracker for review and inclusion. High quality posts that provide value to users are highly appreciated.
  5. Improve documentation: If you find any gaps in the documentation or think any part can be improved, you can make changes to files in the documentation folder and submit a PR. Ensure the documentation is up-to-date with the latest changes.

Your contributions are highly appreciated. Feel free to ask any questions if you have any doubts or facing issues while contributing. The more you contribute, the more you will learn and improve your skills.

Using the contribution skills with Codex

When Codex opens this repository, these project skills help move work from an initial report to an implementation. Ask in natural language or name the skill directly:

  • libra-issue-triage: clarify a bug, feature request, documentation issue, or usage question; check facts and draft a new Issue for you to review and create.
  • libra-work-discovery: check whether an Issue or described problem already exists, and report the state of related Issues, plans, and task cards.
  • libra-plan-task-authoring: find reusable planned work or assess and draft task cards/plans for maintainer review. A draft does not authorize implementation.
  • libra-contribution-execution: implement a selected task card after you authorize implementation; it checks readiness, runs required verification, and prepares a reviewable contribution.

A common path is: clarify or draft the Issue → create it on GitHub → check for duplicates and existing plans → select or draft a task card → obtain maintainer acceptance and resolve dependencies → explicitly authorize implementation. If the Issue or card already exists, skip the earlier steps that are not needed. The skills may recommend handing work to one another, but a recommendation does not authorize a remote Issue change, plan write, or implementation.

Examples:

  • “Help me clarify this bug report and draft an Issue I can file.”
  • “Check whether Issue #123 is already planned and what its task card status is.”
  • “Assess this request and draft a task card for maintainer review.”
  • “Implement the accepted card ABC-02; I authorize the implementation.”

DCO & PGP

To comply with the requirements, contributors must include both a Signed-off-by line and a PGP signature in their commit messages. You can find more information about how to generate a PGP key here.

Both libra and git accept a -s command line option that appends the Signed-off-by trailer automatically, and a -S (or vault-managed identity configured via libra config) that signs the commit. For example:

# With Libra (recommended — Libra-managed vault signing identity)
$ libra commit -s -m 'This is my commit message'

# With Git (Git-managed PGP key)
$ git commit -S -s -m 'This is my commit message'

Libra commits are vault-signed by default once vault.signing=true is configured. See config.md for vault key generation and identity selection.

Rebase the branch

If you have a local git environment and meet the criteria below, one option is to rebase the branch and add your Signed-off-by lines in the new commits. Please note that if others have already begun work based upon the commits in this branch, this solution will rewrite history and may cause serious issues for collaborators (described in the git documentation under “The Perils of Rebasing”).

You should only do this if:

  • You are the only author of the commits in this branch
  • You are absolutely certain nobody else is doing any work based upon this branch
  • There are no empty commits in the branch (for example, a DCO Remediation Commit which was added using -allow-empty)

To add your Signed-off-by line to every commit in this branch:

  • Ensure you have a local copy of your branch by checking out the pull request locally via command line.
  • In your local branch, run: git rebase HEAD~1 --signoff
  • Force push your changes to overwrite the branch: git push --force-with-lease origin main