From be13344f9d4a3669cc30b5c431f4c6a6b1d56f77 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 24 Sep 2019 05:54:16 -0400 Subject: [PATCH 1/5] add team notes on automation --- automation.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 automation.md diff --git a/automation.md b/automation.md new file mode 100644 index 0000000..36255a4 --- /dev/null +++ b/automation.md @@ -0,0 +1,7 @@ +The team would like: + - [ ] branch protections + - [ ] required review approvals + - [ ] easy way to see when enough approvals has been achieved + - [ ] matrix build + - [ ] save build artifacts + - [ ] dedicated test job \ No newline at end of file From 2a4677ecee7340fd478d02ea89dbe3c8fcf8be49 Mon Sep 17 00:00:00 2001 From: Todd O'Connor Date: Thu, 7 May 2020 09:33:05 -0600 Subject: [PATCH 2/5] Create approval-workflow.yml --- .github/workflows/approval-workflow.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/approval-workflow.yml diff --git a/.github/workflows/approval-workflow.yml b/.github/workflows/approval-workflow.yml new file mode 100644 index 0000000..714c9b4 --- /dev/null +++ b/.github/workflows/approval-workflow.yml @@ -0,0 +1 @@ +name: Team awesome's approval workflow From 76b8dee4f1eda7a19f33115ff4ea316e61b1dbbe Mon Sep 17 00:00:00 2001 From: Todd O'Connor Date: Thu, 7 May 2020 09:33:30 -0600 Subject: [PATCH 3/5] Update .github/workflows/approval-workflow.yml Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com> --- .github/workflows/approval-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/approval-workflow.yml b/.github/workflows/approval-workflow.yml index 714c9b4..a15705f 100644 --- a/.github/workflows/approval-workflow.yml +++ b/.github/workflows/approval-workflow.yml @@ -1 +1,2 @@ name: Team awesome's approval workflow +on: pull_request_review From 462f7f35a7c344ae7e06b9be7160df3ef2fa03c0 Mon Sep 17 00:00:00 2001 From: Todd O'Connor Date: Thu, 7 May 2020 09:33:54 -0600 Subject: [PATCH 4/5] Update .github/workflows/approval-workflow.yml Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com> --- .github/workflows/approval-workflow.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/approval-workflow.yml b/.github/workflows/approval-workflow.yml index a15705f..8f732c2 100644 --- a/.github/workflows/approval-workflow.yml +++ b/.github/workflows/approval-workflow.yml @@ -1,2 +1,5 @@ name: Team awesome's approval workflow on: pull_request_review +jobs: + labelWhenApproved: + runs-on: ubuntu-latest From 60f7452c052b4ca33c92b92c897f7f8351218989 Mon Sep 17 00:00:00 2001 From: Todd O'Connor Date: Thu, 7 May 2020 09:39:07 -0600 Subject: [PATCH 5/5] Update .github/workflows/approval-workflow.yml Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com> --- .github/workflows/approval-workflow.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/approval-workflow.yml b/.github/workflows/approval-workflow.yml index 8f732c2..6745e72 100644 --- a/.github/workflows/approval-workflow.yml +++ b/.github/workflows/approval-workflow.yml @@ -3,3 +3,10 @@ on: pull_request_review jobs: labelWhenApproved: 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: "approved"