From cb344516551631bfb25e900618b55c957a65213a Mon Sep 17 00:00:00 2001 From: Cat Chen Date: Mon, 22 Aug 2022 02:50:01 -0700 Subject: [PATCH 1/3] ci(Mergify): configuration update (#77) * ci(Mergify): configuration update Signed-off-by: Cat Chen * Test commit for #77 (bd3f796b196dcbd3976ece32a9a0c4a774eac744) by 183-1 (#78) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Cat Chen Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .mergify.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index 1687d206..8f67c3e0 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -7,6 +7,7 @@ pull_request_rules: - status-success=eslint - status-success=test - status-success=Analyze (javascript) + - label!=accept2ship actions: merge: method: squash @@ -19,6 +20,7 @@ pull_request_rules: - status-success=eslint - status-success=test - status-success=Analyze (javascript) + - label!=accept2ship actions: merge: method: squash From d60030ab542f758fc92d7dc97bfe69cff32508ea Mon Sep 17 00:00:00 2001 From: Cat Chen Date: Mon, 22 Aug 2022 03:18:26 -0700 Subject: [PATCH 2/3] Running git fetch before git push in test Workflow (#80) --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21e3edc0..13ab1574 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,13 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Git fetch + env: + TEST_BRANCH_NAME: ${{ github.head_ref }} + run: | + git fetch --unshallow origin + git checkout $TEST_BRANCH_NAME + - name: Make commit env: SHA: ${{ github.sha }} From 8481a65a5b2d411d55c65972b1dbbc135934bd06 Mon Sep 17 00:00:00 2001 From: Cat Chen Date: Mon, 22 Aug 2022 03:20:25 -0700 Subject: [PATCH 3/3] Removed debug Workflow (#82) --- .github/workflows/test-pr.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index e218d566..1efbba01 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -22,18 +22,3 @@ jobs: - uses: ./ with: merge-method: squash - - debug_information: - name: Debug Information - runs-on: ubuntu-latest - - steps: - - name: Print contexts - env: - GITHUB: ${{ toJSON(github) }} - JOB: ${{ toJSON(job) }} - INPUTS: ${{ toJSON(inputs) }} - run: | - echo "::debug::github = $GITHUB" - echo "::debug::job = $JOB" - echo "::debug::inputs = $INPUTS"