From 0efff40cd4a17f77011d6f0b2550a4e8de3d3aa7 Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:43:06 +0530 Subject: [PATCH 1/8] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7822313 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '20' + distribution: 'temurin' + - name: Build with Gradle + uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash From 9f86158068f8c546e7a0ffed749a24981c4d796d Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:46:14 +0530 Subject: [PATCH 2/8] Create gradle.yml --- .github/workflows/gradle.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..393133a --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: build From ee250c09cccf06abaaf3bdb3ec445bd8ba663cb6 Mon Sep 17 00:00:00 2001 From: w Date: Wed, 27 Dec 2023 00:50:50 +0530 Subject: [PATCH 3/8] tyu --- lib/auto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auto.js b/lib/auto.js index d99d926..a63b489 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -1,4 +1,4 @@ -// @ts-check +// @ts-checkttttttt 'use strict'; let fs = require('fs'); // Non-const enables test mocking From ffa0d34d5b351080e89a102e69a1d7148a418525 Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:52:37 +0530 Subject: [PATCH 4/8] Update gradle.yml --- .github/workflows/gradle.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 393133a..af004ed 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -29,6 +29,8 @@ jobs: java-version: '11' distribution: 'temurin' - name: Build with Gradle - uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + uses: peter-evans/enable-pull-request-automerge@v3 with: - arguments: build + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash From eda34c9da82291c2763cecb8dced8861db3eac51 Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:57:36 +0530 Subject: [PATCH 5/8] Update gradle.yml --- .github/workflows/gradle.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index af004ed..05dfb3c 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -2,6 +2,7 @@ # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation. + # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle From 642883f2f077ccea8fdb6fa609aec26bdca199de Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 01:04:20 +0530 Subject: [PATCH 6/8] Update gradle.yml --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 05dfb3c..d0f7099 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-java@v3 with: java-version: '11' - distribution: 'temurin' - - name: Build with Gradle + + - name: Pull request uses: peter-evans/enable-pull-request-automerge@v3 with: token: ${{ secrets.ACTIONS_BOT_TOKEN }} From 44b5cca55fbf3cc46327aa8f32f2b7f065f0e295 Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 01:05:31 +0530 Subject: [PATCH 7/8] Update gradle.yml --- .github/workflows/gradle.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d0f7099..3fecf74 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -24,10 +24,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' + - name: Pull request uses: peter-evans/enable-pull-request-automerge@v3 From 7d72640750b3c80fdf5188a8ca8968a952b01a6d Mon Sep 17 00:00:00 2001 From: KetanPandit <82118138+KetanPandit@users.noreply.github.com> Date: Wed, 27 Dec 2023 01:06:54 +0530 Subject: [PATCH 8/8] Update gradle.yml --- .github/workflows/gradle.yml | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3fecf74..6478d21 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,34 +1,13 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle - -name: Java CI with Gradle - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -permissions: - contents: read +name: Auto-merge Dependabot +on: pull_request jobs: - build: - + automerge: runs-on: ubuntu-latest - + if: github.actor == 'dependabot[bot]' steps: - - uses: actions/checkout@v3 - - - - name: Pull request - uses: peter-evans/enable-pull-request-automerge@v3 - with: + - uses: peter-evans/enable-pull-request-automerge@v3 + with: token: ${{ secrets.ACTIONS_BOT_TOKEN }} pull-request-number: ${{ github.event.pull_request.number }} merge-method: squash