Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 4.82 KB

CONTRIBUTING.md

File metadata and controls

71 lines (51 loc) · 4.82 KB

Contributing to Promitor

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

Reporting Bugs

This section guides you through submitting a bug report for Promitor. Following these guidelines helps maintainers and the community understand your report 📝, reproduce the behavior 💻 💻, and find related reports 🔎.

Before creating bug reports, please check issue tracker as you might find out that you don't need to create one.

Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.

How Do I Submit A (Good) Bug Report or Feature Request?

Explain the problem and include additional details to help maintainers reproduce the problem:

  • Use a clear and descriptive title for the issue to identify the problem.
  • Describe the exact steps which reproduce the problem in as many details as possible. For example, start by explaining how you started Promitor, e.g. which command exactly you used to start the Docker image. When listing steps, don't just say what you did, but explain what information the logs provided.
  • Provide specific examples to demonstrate the steps. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use Markdown code blocks.
  • Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior.
  • Explain which behavior you expected to see instead and why.
  • If you're reporting that Promitor crashed, include a crash report with a stack trace from logs. Include the crash report in the issue in a code block or put it in a gist and provide link to that gist.

Include details about your configuration and environment:

  • Which version of Promitor are you using?
  • What's the name and version of the container host that you're using? Is it Docker, Kubernetes,...?
  • What configuration is it using and how does your scraping declaration look like?

Your First Code Contribution

Unsure where to begin contributing to Atom? You can start by looking through these beginner and help-wanted issues:

  • Beginner issues - issues which should only require a few lines of code, and a test or two.
  • Help wanted issues - issues which should be a bit more involved than beginner issues.

Pull Requests

  • Fill in the required template
  • Always create an issue and discuss changes before sending PRs. This is to avoid wasting your time because it's not part of the roadmap or not as how we would approach it.
  • Do not include issue numbers in the PR title
  • Include thoughtfully-worded, well-structured OpenAPI specs when appropriate.

Styleguides

Git Commit Messages

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji:
    • 🎨 :art: when improving the format/structure of the code
    • 🐎 :racehorse: when improving performance
    • 📝 :memo: when writing docs
    • 🐳 :whale: when fixing something Docker related
    • ☁️ :cloud: when fixing something Azure related
    • 🔥 :fire: when fixing something Prometheus related
    • 📊 :bar_chart: when fixing something metrics related
    • 🔎 :mag_right: when fixing something operations related
    • 🐛 :bug: when fixing a bug
    • 🔥 :fire: when removing code or files
    • 💚 :green_heart: when fixing the CI build
    • :white_check_mark: when adding tests
    • 🔒 :lock: when dealing with security
    • ⬆️ :arrow_up: when upgrading dependencies
    • ⬇️ :arrow_down: when downgrading dependencies