mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
838ea5b931
Signed-off-by: harshitasao <harshitasao@gmail.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
32 lines
No EOL
826 B
YAML
32 lines
No EOL
826 B
YAML
name: check-milestone-label
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- edited
|
|
- reopened
|
|
- labeled
|
|
- unlabeled
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check_labels:
|
|
name: Check milestone label for pull request
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor != 'dependabot[bot]' }} # dependabot prs do not have to be in milestone
|
|
steps:
|
|
- name: require milestone label for pull request
|
|
uses: docker://agilepathway/pull-request-label-checker:latest@sha256:14f766a581beb1c2a43448b8cdc360f810f39101137c87dd55d252bb1a2e85dc
|
|
with:
|
|
prefix_mode: true
|
|
one_of: "milestone"
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }} |