mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 03:38:43 +00:00
chore: add github comment PR action
Fixes #6993 Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
This commit is contained in:
parent
d237cd274b
commit
21f57d510d
1 changed files with 31 additions and 0 deletions
31
.github/workflows/checks.yaml
vendored
31
.github/workflows/checks.yaml
vendored
|
@ -33,6 +33,21 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
comment-generate-failure:
|
||||
if: ${{ failure() }}
|
||||
permissions:
|
||||
pull-requests: write
|
||||
needs: generate
|
||||
name: Comment troubleshooting message for format and generate failure
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Comment PR
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
message: 'Auto-generated files are likely not up-to-date. Please make sure to run `make --always-make format generate`, commit the modifications and push the updated branch.'
|
||||
|
||||
check-docs:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check Documentation formatting and links
|
||||
|
@ -48,6 +63,22 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
comment-docs-failure:
|
||||
if: ${{ failure() }}
|
||||
permissions:
|
||||
pull-requests: write
|
||||
needs: check-docs
|
||||
name: Comment troubleshooting message for check-docs failure
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Comment PR
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
message: |
|
||||
message: 'Formatting and local/remote links likely not correct. Please make sure to run `make check-docs`, commit the modifications and push the updated branch.'
|
||||
|
||||
check-golang:
|
||||
runs-on: ubuntu-latest
|
||||
name: Golang linter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue