diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d343495f..c4317e73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: run: echo "RUNNING=1" >> $GITHUB_ENV - uses: actions/checkout@v3 - uses: technote-space/get-git-comment-action@v1 - - uses: technote-space/get-diff-action@gh-actions + - uses: technote-space/get-diff-action@v6 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts) FILES: | @@ -56,7 +56,7 @@ jobs: run: echo "RUNNING=1" >> $GITHUB_ENV - uses: actions/checkout@v3 - uses: technote-space/get-git-comment-action@v1 - - uses: technote-space/get-diff-action@gh-actions + - uses: technote-space/get-diff-action@v6 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts|snap) FILES: | diff --git a/README.md b/README.md index d1ab583b..c65eb207 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,8 @@ If there is no difference in the source code below, this workflow will skip the | eventName | action | |:---|:---| | pull_request | opened, reopened, synchronize, closed, ready_for_review | -| push | * | +| push | * | +| merge_group | * | If called on any other event, the result will be empty. diff --git a/src/constant.ts b/src/constant.ts index 123d1603..b8c52787 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -7,5 +7,6 @@ export const TARGET_EVENTS = { 'ready_for_review', ], 'push': '*', + 'merge_group': '*', }; export const REMOTE_NAME = 'get-diff-action'; diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 086e32f9..445108f9 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -75,5 +75,12 @@ export const getDiffInfo = async(octokit: Octokit, context: Context): Promise