forked from prometheus/prometheus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f57d534
commit ac694f9
Showing
4 changed files
with
20 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Prometheus Community Code of Conduct | ||
|
||
Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). | ||
# Code of Conduct | ||
|
||
All open source projects managed by OpenZiti share a common [code of conduct](https://docs.openziti.io/policies/CODE_OF_CONDUCT.html) | ||
which all contributors are expected to follow. Please be sure you read, understand and adhere to the guidelines expressed therein. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,6 @@ | ||
# Contributing | ||
|
||
Prometheus uses GitHub to manage reviews of pull requests. | ||
|
||
* If you are a new contributor see: [Steps to Contribute](#steps-to-contribute) | ||
|
||
* If you have a trivial fix or improvement, go ahead and create a pull request, | ||
addressing (with `@...`) a suitable maintainer of this repository (see | ||
[MAINTAINERS.md](MAINTAINERS.md)) in the description of the pull request. | ||
|
||
* If you plan to do something more involved, first discuss your ideas | ||
on our [mailing list](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers). | ||
This will avoid unnecessary work and surely give you and us a good deal | ||
of inspiration. Also please see our [non-goals issue](https://github.com/prometheus/docs/issues/149) on areas that the Prometheus community doesn't plan to work on. | ||
|
||
* Relevant coding style guidelines are the [Go Code Review | ||
Comments](https://code.google.com/p/go-wiki/wiki/CodeReviewComments) | ||
and the _Formatting and style_ section of Peter Bourgon's [Go: Best | ||
Practices for Production | ||
Environments](https://peter.bourgon.org/go-in-production/#formatting-and-style). | ||
|
||
* Be sure to sign off on the [DCO](https://github.com/probot/dco#how-it-works). | ||
|
||
## Steps to Contribute | ||
|
||
Should you wish to work on an issue, please claim it first by commenting on the GitHub issue that you want to work on it. This is to prevent duplicated efforts from contributors on the same issue. | ||
|
||
Please check the [`low-hanging-fruit`](https://github.com/prometheus/prometheus/issues?q=is%3Aissue+is%3Aopen+label%3A%22low+hanging+fruit%22) label to find issues that are good for getting started. If you have questions about one of the issues, with or without the tag, please comment on them and one of the maintainers will clarify it. For a quicker response, contact us over [IRC](https://prometheus.io/community). | ||
|
||
You can [spin up a prebuilt dev environment](https://gitpod.io/#https://github.com/prometheus/prometheus) using Gitpod.io. | ||
|
||
For complete instructions on how to compile see: [Building From Source](https://github.com/prometheus/prometheus#building-from-source) | ||
|
||
For quickly compiling and testing your changes do: | ||
|
||
```bash | ||
# For building. | ||
go build ./cmd/prometheus/ | ||
./prometheus | ||
|
||
# For testing. | ||
make test # Make sure all the tests pass before you commit and push :) | ||
``` | ||
|
||
We use [`golangci-lint`](https://github.com/golangci/golangci-lint) for linting the code. If it reports an issue and you think that the warning needs to be disregarded or is a false-positive, you can add a special comment `//nolint:linter1[,linter2,...]` before the offending line. Use this sparingly though, fixing the code to comply with the linter's recommendation is in general the preferred course of action. | ||
|
||
All our issues are regularly tagged so that you can also filter down the issues involving the components you want to work on. For our labeling policy refer [the wiki page](https://github.com/prometheus/prometheus/wiki/Label-Names-and-Descriptions). | ||
|
||
## Pull Request Checklist | ||
|
||
* Branch from the main branch and, if needed, rebase to the current main branch before submitting your pull request. If it doesn't merge cleanly with main you may be asked to rebase your changes. | ||
|
||
* Commits should be as small as possible, while ensuring that each commit is correct independently (i.e., each commit should compile and pass tests). | ||
|
||
* If your patch is not getting reviewed or you need a specific person to review it, you can @-reply a reviewer asking for a review in the pull request or a comment, or you can ask for a review on the IRC channel [#prometheus-dev](https://web.libera.chat/?channels=#prometheus-dev) on irc.libera.chat (for the easiest start, [join via Element](https://app.element.io/#/room/#prometheus-dev:matrix.org)). | ||
|
||
* Add tests relevant to the fixed bug or new feature. | ||
|
||
## Dependency management | ||
|
||
The Prometheus project uses [Go modules](https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more) to manage dependencies on external packages. | ||
|
||
To add or update a new dependency, use the `go get` command: | ||
|
||
```bash | ||
# Pick the latest tagged release. | ||
go install example.com/some/module/pkg@latest | ||
|
||
# Pick a specific version. | ||
go install example.com/some/module/pkg@vX.Y.Z | ||
``` | ||
|
||
Tidy up the `go.mod` and `go.sum` files: | ||
|
||
```bash | ||
# The GO111MODULE variable can be omitted when the code isn't located in GOPATH. | ||
GO111MODULE=on go mod tidy | ||
``` | ||
|
||
You have to commit the changes to `go.mod` and `go.sum` before submitting the pull request. | ||
# Contributing | ||
|
||
NetFoundry welcomes all and any contributions. All open source projects managed by NetFoundry share a common | ||
[guide for contributions](https://docs.openziti.io/policies/CONTRIBUTING.html). | ||
|
||
If you are eager to contribute to a NetFoundry-managed open source project please read and act accordingly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# Reporting a security issue | ||
# Security Policy | ||
|
||
The Prometheus security policy, including how to report vulnerabilities, can be | ||
found here: | ||
## Supported Versions | ||
|
||
<https://prometheus.io/docs/operating/security/> | ||
Until v1.0.0 or higher is reached, only the most recent version is supported. After v1.0.0 a new version support statement will be released. | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you have an issue that is not a sensitive security issue, please submit your issue via the GitHub issue tracker on either the main repository. | ||
|
||
If you have a sensitive security issue or are unsure if it is sensitive, please email it to: security@openziti.org |