-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into NewConstHistogramWithCreatedTimestamp
- Loading branch information
Showing
32 changed files
with
1,572 additions
and
274 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Config file for pr-auto-label workflow | ||
|
||
# enable auto-labeler on issues, prs, or both. | ||
enable: | ||
prs: true | ||
|
||
# Labels is an object where: | ||
# - keys are labels | ||
# - values are objects of { include: [ pattern ], exclude: [ pattern ] } | ||
# - pattern must be a valid regex, and is applied globally to | ||
# title + description of issues and/or prs (see enabled config above) | ||
# - 'include' patterns will associate a label if any of these patterns match | ||
# - 'exclude' patterns will ignore this label if any of these patterns match | ||
labels: | ||
'kind/BUGFIX': | ||
include: | ||
- '/kind (fix|bugfix)' | ||
exclude: [] | ||
'kind/ENHANCEMENT': | ||
include: | ||
- '/kind enhancement' | ||
exclude: [] | ||
'kind/FEATURE': | ||
include: | ||
- '/kind (feat|feature)' | ||
exclude: [] | ||
'kind/CHANGE': | ||
include: | ||
- '/kind change' | ||
exclude: [] | ||
'release-note-none': | ||
include: | ||
- '/kind (none|NONE|release-note-none|release-notes-none)' | ||
exclude: [] |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- Refer to CONTRIBUTING.md for more details and examples. | ||
https://github.com/prometheus/client_golang/blob/main/CONTRIBUTING.md#how-to-write-a-pr-description | ||
--> | ||
### Describe your PR | ||
|
||
|
||
### What type of PR is this? | ||
|
||
<!-- Format: /kind followed by ONE of the type {fix, bugfix, enhancement, feature, feat, change, release-note-none} --> | ||
|
||
|
||
### Changelog Entry | ||
```release-note | ||
``` | ||
<!-- Briefly describe any USER-FACING changes introduced in your PR. If your change should not appear in the changelog, write NONE. --> |
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
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: Push README to Docker Hub | ||
on: | ||
push: | ||
paths: | ||
- "README.md" | ||
- "README-containers.md" | ||
- ".github/workflows/container_description.yml" | ||
branches: [ main, master ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
PushDockerHubReadme: | ||
runs-on: ubuntu-latest | ||
name: Push README to Docker Hub | ||
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Set docker hub repo name | ||
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV | ||
- name: Push README to Dockerhub | ||
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1 | ||
env: | ||
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }} | ||
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
with: | ||
destination_container_repo: ${{ env.DOCKER_REPO_NAME }} | ||
provider: dockerhub | ||
short_description: ${{ env.DOCKER_REPO_NAME }} | ||
# Empty string results in README-containers.md being pushed if it | ||
# exists. Otherwise, README.md is pushed. | ||
readme_file: '' | ||
|
||
PushQuayIoReadme: | ||
runs-on: ubuntu-latest | ||
name: Push README to quay.io | ||
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Set quay.io org name | ||
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV | ||
- name: Set quay.io repo name | ||
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV | ||
- name: Push README to quay.io | ||
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1 | ||
env: | ||
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }} | ||
with: | ||
destination_container_repo: ${{ env.DOCKER_REPO_NAME }} | ||
provider: quay | ||
# Empty string results in README-containers.md being pushed if it | ||
# exists. Otherwise, README.md is pushed. | ||
readme_file: '' |
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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Changelog automation | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, edited] | ||
|
||
permissions: | ||
contents: read # the config file | ||
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request) | ||
statuses: write # to generate status | ||
checks: write # to generate status | ||
|
||
jobs: | ||
changelog-automation: | ||
name: Changelog automation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Remove old PR labels | ||
uses: mondeja/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
kind/BUGFIX | ||
kind/ENHANCEMENT | ||
kind/FEATURE | ||
kind/CHANGE | ||
release-note-none | ||
- name: Add label to PR | ||
id: labeler | ||
uses: jimschubert/labeler-action@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Adjust the configuration in /.github/labeler.yml | ||
|
||
- name: Verify Label | ||
id: preview_label_check | ||
uses: docker://agilepathway/pull-request-label-checker:latest | ||
with: | ||
any_of: kind/BUGFIX,kind/ENHANCEMENT,kind/FEATURE,kind/CHANGE,release-note-none | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
allow_failure: true | ||
- name: Comment on Label Check Failure | ||
uses: thollander/[email protected] | ||
if: steps.preview_label_check.outputs.label_check == 'failure' | ||
with: | ||
message: | | ||
PR body does not contain a valid type of change. Please refer to [CONTRIBUTING.md](https://github.com/prometheus/client_golang/blob/main/CONTRIBUTING.md#how-to-write-a-pr-description) for more information. | ||
comment_tag: labelfailure | ||
mode: recreate | ||
- name: Remove Label Check Failure Comment | ||
uses: thollander/[email protected] | ||
if: steps.preview_label_check.outputs.label_check == 'success' | ||
with: | ||
message: | | ||
PR body contains a valid type of change. | ||
comment_tag: labelfailure | ||
mode: delete | ||
create_if_not_exists: false | ||
- name: Exit on Failure | ||
if: steps.preview_label_check.outputs.label_check == 'failure' | ||
run: exit 1 |
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,6 @@ | ||
--- | ||
run: | ||
deadline: 5m | ||
timeout: 5m | ||
skip-files: | ||
# Skip autogenerated files. | ||
- ^.*\.(pb|y)\.go$ | ||
|
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
Oops, something went wrong.