Skip to content

Latest commit

 

History

History
107 lines (69 loc) · 4.51 KB

CONTRIBUTING.md

File metadata and controls

107 lines (69 loc) · 4.51 KB

Contributing

The MicroCloud team welcomes contributions through pull requests, issue reports, and discussions.

Review the following guidelines before contributing to the project.

Code of Conduct

All contributors must adhere to the Ubuntu Code of Conduct.

License and copyright

All external contributors must sign the Canonical contributor license agreement (CCLA), which grants Canonical permission to use the contributions.

  • You retain copyright ownership of your contributions (no copyright assignment).
  • By default, contributions are licensed under the project's AGPL-3.0-only license.

Pull requests

Submit pull requests on GitHub at: https://github.com/canonical/microcloud.

All pull requests undergo review and must be approved before being merged into the main branch.

Commit structure

  • Use separate commits for each logical change, and for changes to different components.
  • Prefix commits with the affected component, following the code tree structure.
  • Format: <component/subcomponent>: <concise change description>
  • Examples:
    • api/services: Use the authHandlerMTLS func
    • cmd/microcloud: Remove token add command

Depending on complexity, large changes might be further split into smaller, logical commits. This commit structure facilitates the review process and simplifies backporting fixes to stable branches.

Developer Certificate of Origin sign-off

To ensure transparency and accountability in contributions to this project, all contributors must include a Signed-off-by line in their commits in accordance with DCO 1.1:

Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Including a Signed-off-by line in your commits

Every commit must include a Signed-off-by line, even when part of a larger set of contributions. To do this, use the -s flag when committing:

git commit -s -m "Your commit message"

This automatically adds the following to your commit message:

Signed-off-by: Your Name <[email protected]>

By including this line, you acknowledge your agreement to the DCO 1.1 for that specific contribution.

  • Use a valid name and email address—anonymous contributions are not accepted.
  • Ensure your email matches the one associated with your GitHub account.

Commit signature verification

In addition to the sign-off requirement, contributors must also cryptographically sign their commits to verify authenticity. See: GitHub's documentation on commit signature verification.

More information

For more information, see How to contribute to MicroCloud in the documentation.