mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add PR Check action enforcing a milestone is set (#43025)
Adds a PR Check action with a rule that enforces a milestone is set on the PR. Ref grafana/grafana-github-actions#34 Ref grafana/grafana-github-actions#42
This commit is contained in:
committed by
GitHub
parent
155487bfb0
commit
8e0da70026
9
.github/pr-checks.json
vendored
Normal file
9
.github/pr-checks.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "check-milestone",
|
||||||
|
"title": "Milestone Check",
|
||||||
|
"targetUrl": "https://github.com/grafana/grafana/blob/main/contribute/merge-pull-request.md#assign-a-milestone",
|
||||||
|
"success": "Milestone set",
|
||||||
|
"failure": "Milestone not set"
|
||||||
|
}
|
||||||
|
]
|
||||||
28
.github/workflows/pr-checks.yml
vendored
Normal file
28
.github/workflows/pr-checks.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: PR Checks
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- milestoned
|
||||||
|
- demilestoned
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: "grafana/grafana-github-actions"
|
||||||
|
path: ./actions
|
||||||
|
ref: main
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run PR Checks
|
||||||
|
uses: ./actions/pr-checks
|
||||||
|
with:
|
||||||
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
configPath: pr-checks
|
||||||
Reference in New Issue
Block a user