From f5811cf15230dcae18b2016090ee0b32c1a762de Mon Sep 17 00:00:00 2001 From: Takeru O'oyama Date: Mon, 4 Nov 2024 18:06:04 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20GitHub=20Actions=E3=81=AE?= =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=AB=E3=82=BF=E3=83=AA=E3=83=B3=E3=82=B0?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E3=81=A8=E3=82=A2=E3=82=AF=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20(#29)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧 PR作成者のフィルタリング条件を改善 * 🔧 openai-generate-pr-descriptionアクションのバージョンをv1.0.1に更新 * 🔧 READMEの条件を改善し、renovateボットのフィルタリングを更新 --- .github/workflows/generate-pr-description.yml | 3 ++- README.md | 4 ++-- docs/README.ja.md | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-pr-description.yml b/.github/workflows/generate-pr-description.yml index a392d93..9470e63 100644 --- a/.github/workflows/generate-pr-description.yml +++ b/.github/workflows/generate-pr-description.yml @@ -13,7 +13,8 @@ jobs: generate-pr-description: runs-on: ubuntu-latest timeout-minutes: 10 - if: contains(github.event.pull_request.user.login, 'renovate') == false + # Check if the PR is not created by 'renovate' or 'tqer39-apps' + if: contains(fromJSON('["renovate[bot]", "tqer39-apps[bot]"]'), github.event.pull_request.user.login) == false permissions: pull-requests: write steps: diff --git a/README.md b/README.md index 78b08b1..546abe7 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ jobs: permissions: pull-requests: write contents: read - if: contains(github.event.pull_request.user.login, 'renovate') == false + if: contains(fromJSON('["renovate[bot]"]'), github.event.pull_request.user.login) == false steps: - uses: actions/checkout@v4 - - uses: tqer39/generate-pr-description-action@v1.0.0 + - uses: tqer39/openai-generate-pr-description@v1.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} open-api-key: ${{ secrets.OPENAI_API_KEY }} diff --git a/docs/README.ja.md b/docs/README.ja.md index a61b48b..99e62f7 100644 --- a/docs/README.ja.md +++ b/docs/README.ja.md @@ -28,10 +28,10 @@ jobs: timeout-minutes: 10 permissions: pull-requests: write - if: contains(github.event.pull_request.user.login, 'renovate') == false + if: contains(fromJSON('["renovate[bot]"]'), github.event.pull_request.user.login) == false steps: - uses: actions/checkout@v4 - - uses: tqer39/generate-pr-description-action@v1.0.0 + - uses: tqer39/openai-generate-pr-description@v1.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} open-api-key: ${{ secrets.OPENAI_API_KEY }}