Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup #1

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file is the top-most EditorConfig file
root = true

# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# Makefiles
[{Makefile,**.mk}]
indent_style = tab

# Python Files
[*.py]
indent_style = space
indent_size = 4
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
day: 'saturday'
versioning-strategy: 'increase'
labels:
- 'dependencies'
- 'automerge'
open-pull-requests-limit: 5
pull-request-branch-name:
separator: '-'
commit-message:
# cause a release for non-dev-deps
prefix: fix(deps)
# no release for dev-deps
prefix-development: chore(dev-deps)
ignore:
- dependency-name: '@salesforce/dev-scripts'
- dependency-name: '*'
update-types: ['version-update:semver-major']
79 changes: 79 additions & 0 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
# Use the following command to test globs locally:

# Add 'agent' label to any changes within 'guides' that references 'agent'
agent:
- '(agent|alloy|collector)'

# Add 'alerting' label to any changes within 'guides' that references 'alert'
alerting:
- '(alert|alerting|notification|rule|silence|receiver|route|route)'

# Add 'alertmanager' label to any changes within 'guides' that references 'alert'
alertmanager:
- '(alertmanager|am|amtool)'

# Add 'dashboard' label to any changes within 'guides' that references 'dashboard'
dashboard:
- '(dashboard|dash|graph|panel|row|stat|table|singlestat|gauge|graph|heatmap|timeseries)'

# Add 'grafana' label to any changes within 'guides' that references 'grafana'
grafana:
- '(grafana|datasource)'

# Add 'helm' label to any changes within 'guides' that references 'helm'
helm:
- ('helm|chart|values')

# Add 'incident' label to any changes within 'guides' that references 'helm'
incident:
- '(incident)'

# Add 'k6' label to any changes within 'guides' that references 'k6'
k6:
- '(k6|loadtest)'

# Add 'kubernetes' label to any changes within 'guides' that references 'kube' or 'k8s'
kubernetes:
- '(kube|k8s|kubernetes|cdadvisor|cadvisor|kubeadm|kubectl|kubeproxy|kube-proxy|kube-scheduler|kube-scheduler|kube-controller|kube-controller|kube-apiserver|kube-apiserver|kubelet)'

# Add 'loki' label to any changes within 'guides' that references 'loki' or 'gel' or 'log'
loki:
- '(loki|gel|log|logql|enterprise(-| )log)'

# Add 'mimir' label to any changes within 'guides' that references 'mimir' or 'gem' or 'metrics'
# or 'prometheus' or 'promql'
mimir:
- '(mimir|gem|metrics|prometheus|promql|enterprise(-| )metric)'

# Add 'oncall' label to any changes within 'guides' that references 'oncall'
oncall:
- '(oncall|on-call)'

# Add 'openshift' label to any changes within 'guides' that references 'openshift'
openshift:
- '(openshift|oc|oadm|oadmin|ocp|okd|openshift-origin)'

# Add 'otel' label to any changes within 'guides' that references 'otel' or 'instrument' or 'telemetry' or 'tracing'
otel:
- '(otel|instrument|telemetry|trace|tracing|opentelemetry|jaeger|zipkin)'

# Add 'plugin' label to any changes within 'guides' that references 'openshift'
plugin:
- '(plugin|extension|integration)'

# Add 'pyroscope' label to any changes within 'guides' that references 'pyroscope' or 'profil'
pyroscope:
- '(pyroscope|profile|profiling|cpu|memory|heap|goroutine|goroutines|flamegraph|flame)'

# Add 'tempo' label to any changes within 'guides' that references 'tempo' or 'trac'
tempo:
- '(tempo|trace|tracing|jaeger|zipkin|opentelemetry)'

# Add 'terraform' label to any changes within 'guides' that references 'terraform' or 'tf'
terraform:
- '(terraform|tf|provider)'

# Add 'windows' label to any changes within 'guides' that references 'windows'
windows:
- '(windows|win|wmi|perfmon|eventlog|event-log|eventviewer|event-viewer)'
122 changes: 122 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
# Use the following command to test globs locally:
# compgen -G '<glob-pattern>'

# Add 'agent' label to any changes within 'guides' that references 'agent'
agent:
- changed-files:
- any-glob-to-any-file: 'guides/**/**agent**'

# Add 'alerting' label to any changes within 'guides' that references 'alert'
alerting:
- changed-files:
- any-glob-to-any-file: 'guides/**/**alert**'

# Add 'alertmanager' label to any changes within 'guides' that references 'alert'
alertmanager:
- changed-files:
- any-glob-to-any-file: 'guides/**/**alertmanager**'

# Add 'ci / cd' label to any changes within 'guides' that references 'ci' or 'cd
ci-cd:
- changed-files:
- any-glob-to-any-file: '.*' # dotfiles
- any-glob-to-any-file: 'Makefile'
- any-glob-to-any-file: 'package.json'
- any-glob-to-any-file: 'Pipefile'
- any-glob-to-any-file: 'tools/**/*'
- any-glob-to-any-file: 'assets/**/*'

# Add 'dashboard' label to any changes within 'guides' that references 'dashboard'
dashboard:
- changed-files:
- any-glob-to-any-file: 'guides/**/**dashboard**'

# Add 'grafana' label to any changes within 'guides' that references 'grafana'
grafana:
- changed-files:
- any-glob-to-any-file: 'guides/**/**grafana**'

# Add 'helm' label to any changes within 'guides' that references 'helm'
helm:
- changed-files:
- any-glob-to-any-file: 'guides/**/**helm**'

# Add 'incident' label to any changes within 'guides' that references 'helm'
incident:
- changed-files:
- any-glob-to-any-file: 'guides/**/**incident**'

# Add 'k6' label to any changes within 'guides' that references 'k6'
k6:
- changed-files:
- any-glob-to-any-file: 'guides/**/**k6**'

# Add 'kubernetes' label to any changes within 'guides' that references 'kube' or 'k8s'
kubernetes:
- changed-files:
- any-glob-to-any-file: 'guides/**/**kube**'
- any-glob-to-any-file: 'guides/**/**k8s**'

# Add 'loki' label to any changes within 'guides' that references 'loki' or 'gel' or 'log'
loki:
- changed-files:
- any-glob-to-any-file: 'guides/**/**loki**'
- any-glob-to-any-file: 'guides/**/**gel**'
- any-glob-to-any-file: 'guides/**/**log**'

# Add 'mimir' label to any changes within 'guides' that references 'mimir' or 'gem' or 'metrics'
# or 'prometheus' or 'promql'
mimir:
- changed-files:
- any-glob-to-any-file: 'guides/**/**mimir**'
- any-glob-to-any-file: 'guides/**/**gem**'
- any-glob-to-any-file: 'guides/**/**metrics**'
- any-glob-to-any-file: 'guides/**/**prometheus**'
- any-glob-to-any-file: 'guides/**/**promql**'

# Add 'oncall' label to any changes within 'guides' that references 'oncall'
oncall:
- changed-files:
- any-glob-to-any-file: 'guides/**/**oncall**'

# Add 'openshift' label to any changes within 'guides' that references 'openshift'
openshift:
- changed-files:
- any-glob-to-any-file: 'guides/**/**openshift**'

# Add 'otel' label to any changes within 'guides' that references 'otel' or 'instrument' or 'telemetry' or 'tracing'
otel:
- changed-files:
- any-glob-to-any-file: 'guides/**/**otel**'
- any-glob-to-any-file: 'guides/**/**instrument**'
- any-glob-to-any-file: 'guides/**/**telemetry**'
- any-glob-to-any-file: 'guides/**/**tracing**'

# Add 'plugin' label to any changes within 'guides' that references 'openshift'
plugin:
- changed-files:
- any-glob-to-any-file: 'guides/**/**plugin**'

# Add 'pyroscope' label to any changes within 'guides' that references 'pyroscope' or 'profil'
pyroscope:
- changed-files:
- any-glob-to-any-file: 'guides/**/**pyroscope**'
- any-glob-to-any-file: 'guides/**/**profil**'

# Add 'tempo' label to any changes within 'guides' that references 'tempo' or 'trac'
tempo:
- changed-files:
- any-glob-to-any-file: 'guides/**/**tempo**'
- any-glob-to-any-file: 'guides/**/**trac**'

# Add 'terraform' label to any changes within 'guides' that references 'terraform' or 'tf'
terraform:
- changed-files:
- any-glob-to-any-file: 'guides/**/**terraform**'
- any-glob-to-any-file: 'guides/**/**tf**'

# Add 'windows' label to any changes within 'guides' that references 'windows'
windows:
- changed-files:
- any-glob-to-any-file: 'guides/**/**windows**'
27 changes: 27 additions & 0 deletions .github/workflows/auto-approve-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Dependabot Auto-Approve
# yamllint disable-line rule:truthy
on:
# run when a PR is opened or updated to main
pull_request:
branches: ["main"]

permissions:
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
30 changes: 30 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Auto-Merge
# yamllint disable-line rule:truthy
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
22 changes: 22 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Issue Labeler

# yamllint disable-line rule:truthy
on:
issues:
types: [opened, edited]

permissions:
issues: write
contents: read

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/[email protected]
with:
configuration-path: .github/issue-labeler.yml
include-title: 1
include-body: 1
repo-token: ${{ github.token }}
18 changes: 18 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Pull Request Labeler

# yamllint disable-line rule:truthy
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
# automatically add labels to pull requests based on the files changed
configuration-path: .github/pr-labeler.yml
Loading
Loading