Skip to content

Commit

Permalink
chore: update all project files (#95)
Browse files Browse the repository at this point in the history
* chore: update all project files

* fix: linter happiness

* fix: linter happiness
  • Loading branch information
cbrgm authored Jan 5, 2024
1 parent 39e03a3 commit f3989a9
Show file tree
Hide file tree
Showing 41 changed files with 1,076 additions and 205 deletions.
90 changes: 90 additions & 0 deletions .anvil.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"generated_at": "2024-01-05T19:47:09.507592+01:00",
"version": "v1.1.5-dirty",
"files": [
{
"path": ".editorconfig"
},
{
"path": ".github/FUNDING.yml"
},
{
"path": ".github/auto_assign.yml"
},
{
"path": ".github/issue_template.md"
},
{
"path": ".github/pull_request_template.md"
},
{
"path": ".github/renovate.json"
},
{
"path": ".github/settings.yml"
},
{
"path": ".github/workflows/autoassign.yml"
},
{
"path": ".github/workflows/automerge.yml"
},
{
"path": ".github/workflows/notify.yml"
},
{
"path": ".github/workflows/stale.yml"
},
{
"path": ".github/workflows/tag.yml"
},
{
"path": "CODEOWNERS"
},
{
"path": "CONTRIBUTING.md"
},
{
"path": "LICENSE"
},
{
"path": ".dockerignore"
},
{
"path": ".github/workflows/container.yml"
},
{
"path": ".github/workflows/go-binaries.yml"
},
{
"path": ".github/workflows/go-lint-test.yml"
},
{
"path": ".gitignore"
},
{
"path": ".golangci.yml"
},
{
"path": "Dockerfile.linux.386"
},
{
"path": "Dockerfile.linux.amd64"
},
{
"path": "Dockerfile.linux.arm"
},
{
"path": "Dockerfile.linux.arm64"
},
{
"path": "Makefile"
},
{
"path": "flake.lock"
},
{
"path": "flake.nix"
}
]
}
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!bin/
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab
indent_size = 4

[*.go]
indent_style = tab
indent_size = 4

[*.md]
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion .errcheck_excludes.txt

This file was deleted.

4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

ko_fi: chrisbargmann

13 changes: 13 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- cbrgm

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1
14 changes: 0 additions & 14 deletions .github/dependabot.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- PLEASE READ BEFORE DELETING
Please write in English, as it's a language understood by all maintainers of this project. Before submitting your issue, please take a moment to ensure it hasn't already been reported or addressed.
Additionally, we highly recommend reading our contributing guidelines to familiarize yourself with the process and increase the effectiveness of your contribution:
https://github.com/cbrgm/promcheck/blob/main/CONTRIBUTING.md
Thank you for your help and understanding!
-->
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- PLEASE READ BEFORE DELETING
Before proceeding, ensure your pull request is targeting the main branch. Clearly describe the purpose of your pull request and the issue it addresses, if applicable. We also encourage you to read our contributing guidelines for a smoother contribution process:
https://github.com/cbrgm/promcheck/blob/main/CONTRIBUTING.md
Thank you for your contribution!
-->
6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>cbrgm/cbrgm//renovate/preset"
]
}
34 changes: 34 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
repository:
name: promcheck
description: A tool and exporter to identify faulty Prometheus rules
homepage: https://cbrgm.net
topics: rules, alert, monitoring, metrics, exporter, alerting, prometheus, recording

private: false
has_issues: true
has_wiki: false
has_downloads: false

default_branch: main

allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: true

allow_update_branch: true
allow_auto_merge: true
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

branches:
- name: main
protection:
required_pull_request_reviews: null
required_status_checks:
strict: true
contexts:
- testing
enforce_admins: true
...
13 changes: 13 additions & 0 deletions .github/workflows/autoassign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: 'add-reviews'
on:
pull_request_target:
types: [opened, ready_for_review]

jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@v1.2.5

...
56 changes: 56 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: automerge

on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:

- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: ${{ secrets.BOT_PAT_TOKEN }}

- name: Approve request
id: approve
run: gh pr review --approve ${{ github.event.pull_request.html_url }}
env:
GH_TOKEN: ${{ secrets.BOT_PAT_TOKEN }}

- name: Enable automerge
id: automerge
run: gh pr merge --rebase --auto ${{ github.event.pull_request.html_url }}
env:
GH_TOKEN: ${{ secrets.BOT_PAT_TOKEN }}

renovate:
runs-on: ubuntu-latest
if: github.actor == 'renovate[bot]'

steps:
- name: Approve request
id: approve
run: gh pr review --approve ${{ github.event.pull_request.html_url }}
env:
GH_TOKEN: ${{ secrets.BOT_PAT_TOKEN }}

cbrgm:
runs-on: ubuntu-latest
if: github.actor == 'cbrgm' && contains(github.event.pull_request.labels.*.name, 'auto-merge')

steps:
- name: Enable automerge
id: automerge
run: gh pr merge --rebase --auto ${{ github.event.pull_request.html_url }}
env:
GH_TOKEN: ${{ secrets.BOT_PAT_TOKEN }}
...
26 changes: 0 additions & 26 deletions .github/workflows/build.yaml

This file was deleted.

Loading

0 comments on commit f3989a9

Please sign in to comment.