From df98cb6579b488a9228c5617b1ad2f59f7e0580c Mon Sep 17 00:00:00 2001 From: ludeeus Date: Fri, 30 Jun 2023 08:20:32 +0000 Subject: [PATCH 1/2] Add workflow to check pull request labels --- .github/workflows/pull_requests_labels.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pull_requests_labels.yml diff --git a/.github/workflows/pull_requests_labels.yml b/.github/workflows/pull_requests_labels.yml new file mode 100644 index 00000000000..02cdc25e352 --- /dev/null +++ b/.github/workflows/pull_requests_labels.yml @@ -0,0 +1,27 @@ +name: "Check Pull Request labels" + +on: + pull_request: + types: + - labeled + - unlabeled + branches: + - main + +permissions: {} + +jobs: + check_labels: + name: "Check Pull Request labels" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Check the labels + uses: ludeeus/action-require-labels@1.0.0 + with: + labels: >- + Breaking Change, Experimental, pr: new-feature, + pr: enhancement, pr: refactor, pr: bugfix, + pr: dependency-update \ No newline at end of file From 6d40a754e0f26c52c12873960daa1824211bbc91 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Fri, 30 Jun 2023 08:22:27 +0000 Subject: [PATCH 2/2] Fix YAML --- .github/workflows/pull_requests_labels.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_requests_labels.yml b/.github/workflows/pull_requests_labels.yml index 02cdc25e352..b1b6f6c81d6 100644 --- a/.github/workflows/pull_requests_labels.yml +++ b/.github/workflows/pull_requests_labels.yml @@ -21,7 +21,7 @@ jobs: - name: Check the labels uses: ludeeus/action-require-labels@1.0.0 with: - labels: >- - Breaking Change, Experimental, pr: new-feature, - pr: enhancement, pr: refactor, pr: bugfix, - pr: dependency-update \ No newline at end of file + labels: >- + Breaking Change, Experimental, pr: new-feature, + pr: enhancement, pr: refactor, pr: bugfix, + pr: dependency-update \ No newline at end of file