From: Sebastián Ramírez Date: Sat, 27 Jun 2020 17:59:10 +0000 (+0200) Subject: ✨ Add GitHub action to label approved PRs (#1638) X-Git-Tag: 0.58.1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca4cf7cc70c1e4e8841282ac693801dcabbcdc86;p=thirdparty%2Ffastapi%2Ffastapi.git ✨ Add GitHub action to label approved PRs (#1638) --- diff --git a/.github/workflows/pr-approvals.yml b/.github/workflows/pr-approvals.yml new file mode 100644 index 0000000000..dbc160c7d3 --- /dev/null +++ b/.github/workflows/pr-approvals.yml @@ -0,0 +1,14 @@ +name: Label approved pull requests +on: pull_request_review +jobs: + labelWhenApproved: + name: Label when approved + runs-on: ubuntu-latest + steps: + - name: Label when approved + uses: pullreminders/label-when-approved-action@v1.0.7 + env: + APPROVALS: "2" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ADD_LABEL: "approved-2" + REMOVE_LABEL: "awaiting%20review"