woocommerce/plugins/woocommerce-blocks/.github/workflows/approved-with-labels.yml

26 lines
889 B
YAML
Raw Normal View History

on: pull_request_review
name: Approved Pull Requests
jobs:
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@v3
- name: Latest milestone
uses: woocommerce/automations@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
automations: assign-milestone
milestone_bump_strategy: minor