From 99758689562eecfe6e358a97faaaab9f1b32a2d6 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 8 Jul 2021 10:49:32 +0100 Subject: [PATCH] Add a workflow for the assign-milestone automation (https://github.com/woocommerce/woocommerce-blocks/pull/4342) * Add a workflow for the assign-milestone automation * add milestone_bump_strategy * "none" bump strategy --- .../workflows/approved-with-labels.yml | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/plugins/woocommerce-blocks/.github/workflows/approved-with-labels.yml b/plugins/woocommerce-blocks/.github/workflows/approved-with-labels.yml index 17fa7f9d7d2..66dfff9a5f8 100644 --- a/plugins/woocommerce-blocks/.github/workflows/approved-with-labels.yml +++ b/plugins/woocommerce-blocks/.github/workflows/approved-with-labels.yml @@ -1,14 +1,25 @@ on: pull_request_review -name: Add Labels to Approved Pull Requests +name: Approved Pull Requests jobs: - labelWhenApproved: - name: Label when approved - runs-on: ubuntu-latest - steps: - - name: Label when approved - uses: pullreminders/label-when-approved-action@master - env: - APPROVALS: "1" - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ADD_LABEL: "status: ready to merge" - REMOVE_LABEL: "status:%20needs%20review" + labelWhenApproved: + name: Add Labels + runs-on: ubuntu-latest + steps: + - name: Ready to merge label + uses: pullreminders/label-when-approved-action@master + env: + APPROVALS: '1' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ADD_LABEL: 'status: ready to merge' + REMOVE_LABEL: 'status:%20needs%20review' + milestoneWhenApproved: + name: Add Milestone + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Latest milestone + uses: woocommerce/automations@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + automations: assign-milestone + milestone_bump_strategy: none