Skip to content
/ .github Public template

Community health files and templates for Calibre’s open source and private repositories.

Notifications You must be signed in to change notification settings

calibreapp/.github

Repository files navigation

Calibre’s templates and governance policies

This repository holds community health files and templates for Calibre’s open source and private repositories.

Table of Contents

  1. Code of Conduct
  2. Contribution Guidelines
  3. Security Guidelines
  4. Pull Request Templates
  5. Issue Templates
  6. Code Owner Definitions
  7. Organisation Profile
  8. Licenses

Code of Conduct

The CODE_OF_CONDUCT is a critical document outlining our standards and responsibilities in maintaining safe and inclusive spaces for everyone involved. We use Contributor Covenant to communicate the community values and rules. All of our open source repositories should have a Code of Conduct.

🖇 Learn more about CODE_OF_CONDUCT

Contribution Guidelines

We use the CONTRIBUTING file to set expectations on how people should contribute to our open source projects. Following the contribution guidelines makes it easier for owners to review issues and pull requests. For contributors, following the guidelines helps avoid improperly created pull requests or issues, so they can get help or review faster. All of our open source repositories should have a Contributing guide.

🖇 Learn more about CONTRIBUTING

Security Guidelines

The SECURITY file outlines our approach to handling security issues in any of our open source repositories. With a clear disclosure policy, we can triage and respond to vulnerability reports as quickly as possible. Open source repositories should have Security guidelines (where relevant).

🖇 Learn more about SECURITY

Pull Request Templates

We use pull requests to introduce changes in all of our projects. We’ve set up two templates depending on whether the project is private (pull_request_template_private.md) or open source (pull_request_template_oss.md).

⚠️ To use the template, you will have to adjust the name to be PULL_REQUEST_TEMPLATE.md.

🖇 Learn more about PULL_REQUEST_TEMPLATES

Issue Templates

We use GitHub’s issue tracking in our open source projects. We’ve set up two templates using issue forms (in beta) in ISSUE_TEMPLATE folder to make creating issues (bug-report.yml) and feature requests (feature-request.yml) easier. When someone opens a new issue, they will be able to choose the option that feels right:

An example of issue templates in action in our React Live Chat Loader repository (see demo).

When working with issue templates, you might want to consider adding any relevant details that aren’t covered by the defaults. All of our open source repositories should have issue templates.

🖇 Learn more about ISSUE_TEMPLATES

Code Owner Definitions

We use the CODEOWNERS file to define people (or teams) who are responsible for an entire repository (or a certain area). Thanks to CODEOWNERS, GitHub will automatically request reviews from relevant teammates as pull requests are created. All of our repositories should have a Codeowners definition.

🖇 Learn more about CODEOWNERS

Organisation Profile

The profile README is displayed on our GitHub organisation profile. We use it to introduce ourselves and our projects to the community.

🖇 Learn more about organisation profile README

Licenses

The license defines what others can and cannot do with open source code. Because the type of license will largely depend on the project, it’s been omitted here and should be added manually when you create one. All of our public repositories should have a carefully chosen license file.

🖇 Learn more about LICENSE