From bc55713da789685b1fc7a6c60d9cd9bfbfcb9b5f Mon Sep 17 00:00:00 2001 From: ChristianeU Date: Tue, 29 Oct 2024 11:58:52 -0500 Subject: [PATCH 1/3] Adding the Github Action to to auto-approve --- .github/workflows/pr_auto_approval.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/pr_auto_approval.yml diff --git a/.github/workflows/pr_auto_approval.yml b/.github/workflows/pr_auto_approval.yml new file mode 100644 index 0000000..10ab3ca --- /dev/null +++ b/.github/workflows/pr_auto_approval.yml @@ -0,0 +1,14 @@ +on: + pull_request_target: + branches-ignore: + - 8.13 +jobs: + approve: + name: Auto-approve docker push pr + runs-on: ubuntu-latest + if: | + startsWith(github.event.pull_request.head.ref, 'docker_files_push') + permissions: + pull-requests: write + steps: + - uses: hmarr/auto-approve-action@v3 \ No newline at end of file From 5a78a2ccbe3fe23cff7a50b6b7c1207f03384aa9 Mon Sep 17 00:00:00 2001 From: ChristianeU Date: Thu, 31 Oct 2024 14:59:03 -0500 Subject: [PATCH 2/3] use elasticmachine --- .github/workflows/pr_auto_approval.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_auto_approval.yml b/.github/workflows/pr_auto_approval.yml index 10ab3ca..70d4c24 100644 --- a/.github/workflows/pr_auto_approval.yml +++ b/.github/workflows/pr_auto_approval.yml @@ -7,7 +7,8 @@ jobs: name: Auto-approve docker push pr runs-on: ubuntu-latest if: | - startsWith(github.event.pull_request.head.ref, 'docker_files_push') + startsWith(github.event.pull_request.head.ref, 'docker_files_push') && + github.event.pull_request.user.login == 'elasticmachine' permissions: pull-requests: write steps: From d78f164d4a0c111cbb74021ffe31bb486bb8ce21 Mon Sep 17 00:00:00 2001 From: ChristianeU Date: Thu, 31 Oct 2024 18:21:51 -0500 Subject: [PATCH 3/3] remove elasticmachine user --- .github/workflows/pr_auto_approval.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr_auto_approval.yml b/.github/workflows/pr_auto_approval.yml index 70d4c24..10ab3ca 100644 --- a/.github/workflows/pr_auto_approval.yml +++ b/.github/workflows/pr_auto_approval.yml @@ -7,8 +7,7 @@ jobs: name: Auto-approve docker push pr runs-on: ubuntu-latest if: | - startsWith(github.event.pull_request.head.ref, 'docker_files_push') && - github.event.pull_request.user.login == 'elasticmachine' + startsWith(github.event.pull_request.head.ref, 'docker_files_push') permissions: pull-requests: write steps: