From 6479736a3b8d3e752ebd38bc1ac7ea3b67a0ac2b Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 12:37:08 -0400 Subject: [PATCH 01/10] =?UTF-8?q?=F0=9F=91=B7=20Only=20run=20autofix=20on?= =?UTF-8?q?=20pull=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index 8e2a6c93..d71ec6b1 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -1,8 +1,6 @@ name: Fix on: - push: - branches: main pull_request: branches: main From 0b50190860697d56c6271ffed485d6e6d1bc1973 Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 12:47:32 -0400 Subject: [PATCH 02/10] =?UTF-8?q?=F0=9F=92=9A=20Specify=20branch=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index d71ec6b1..8a10b4f2 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -36,4 +36,4 @@ jobs: skip-empty: true token: ${{ secrets.GITHUB_TOKEN }} - - run: git push + - run: git push origin ${{ github.ref_name }} From 8d94f5e0853cc8452456c2126e38378c8214647b Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 12:54:03 -0400 Subject: [PATCH 03/10] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Push=20to=20origin?= =?UTF-8?q?=20ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index 8a10b4f2..edd7d7d7 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -36,4 +36,4 @@ jobs: skip-empty: true token: ${{ secrets.GITHUB_TOKEN }} - - run: git push origin ${{ github.ref_name }} + - run: git push origin '${{ github.ref }}' From f8cff2b21cbc65f37d08e8b64128c106c5eaf747 Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 12:56:10 -0400 Subject: [PATCH 04/10] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Push=20to=20head=5Fr?= =?UTF-8?q?ef?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index edd7d7d7..b9ef695d 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -36,4 +36,4 @@ jobs: skip-empty: true token: ${{ secrets.GITHUB_TOKEN }} - - run: git push origin '${{ github.ref }}' + - run: git push origin '${{ github.head_ref }}' From ff2548b4eae4464b1ad704ea97392d01e337eb86 Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 13:10:16 -0400 Subject: [PATCH 05/10] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Push=20to=20an=20ima?= =?UTF-8?q?ginary=20upstream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index b9ef695d..58b3756d 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -36,4 +36,6 @@ jobs: skip-empty: true token: ${{ secrets.GITHUB_TOKEN }} - - run: git push origin '${{ github.head_ref }}' + - run: | + git remote add upstream '${{ github.repositoryUrl }}' + git push upstream '${{ github.head_ref }}' From 4ba9cfa303b9815d7480f8411609fbe76707881e Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 13:14:31 -0400 Subject: [PATCH 06/10] =?UTF-8?q?=F0=9F=94=8A=20Show=20git=20status=20afte?= =?UTF-8?q?r=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index 58b3756d..a79634e4 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -37,5 +37,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - run: | + git status git remote add upstream '${{ github.repositoryUrl }}' git push upstream '${{ github.head_ref }}' From b76571e8f198258d764bc72df58d4aa860ad33ac Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 13:56:16 -0400 Subject: [PATCH 07/10] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Use=20git=20to=20pus?= =?UTF-8?q?h=20that=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index a79634e4..463cde29 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -8,9 +8,6 @@ jobs: fix: runs-on: ubuntu-latest - permissions: - contents: write - steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -22,21 +19,18 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm run lint:fix - - run: | - git add . - git status - - uses: qoomon/actions--create-commit@v1 - id: actions--create-commit - with: - message: | - 🎨 pnpm run lint:fix + - id: diff + run: | + if [[ -n $(git status --porcelain) ]]; then + echo 'changes=true' >>"$GITHUB_OUTPUT" + fi - [dependabot skip] - skip-empty: true - token: ${{ secrets.GITHUB_TOKEN }} + - if: steps.diff.outputs.changes == 'true' + name: Commit and push + run: | + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' - - run: | - git status - git remote add upstream '${{ github.repositoryUrl }}' - git push upstream '${{ github.head_ref }}' + git commit --all --message '🎨 pnpm run lint:fix' --message '[dependabot skip]' + git push From f7f4cd8e7912fe4088866a190916a0c1b358b535 Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 14:01:25 -0400 Subject: [PATCH 08/10] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Checkout=20with=20re?= =?UTF-8?q?f:=20head=5Fref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index 463cde29..a085be4e 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -10,6 +10,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} - uses: pnpm/action-setup@v4 with: version: latest From c68676edda26cc927e6c831ba9ff677794c56455 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:01:54 +0000 Subject: [PATCH 09/10] =?UTF-8?q?=F0=9F=8E=A8=20pnpm=20run=20lint:fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [dependabot skip] --- docs/changelog.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 06a1639a..de157b07 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,11 +12,11 @@ sidebar_position: 9 We've improved our Learnings and Metrics accessibility for Self-Hosted CodeRabbit customers to provide a more seamless experience. Track learning patterns and insights more easily, with API key generation now available directly from the interface. **Setup:** + - Generate an API key in the CodeRabbit UI - Enable Learnings and Metrics by: - - Configuring your .env file, or - - Contacting CodeRabbit support for assistance - +- Configuring your .env file, or +- Contacting CodeRabbit support for assistance ## October 30, 2024 From 7d934a7962dec012f4ef0ed58aba7fa925c54d7b Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 1 Nov 2024 14:05:38 -0400 Subject: [PATCH 10/10] =?UTF-8?q?=F0=9F=91=B7=20Give=20write=20content=20p?= =?UTF-8?q?ermission=20to=20override=20the=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fix.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index a085be4e..9ad60d2c 100644 --- a/.github/workflows/fix.yaml +++ b/.github/workflows/fix.yaml @@ -8,6 +8,9 @@ jobs: fix: runs-on: ubuntu-latest + permissions: + contents: write + steps: - uses: actions/checkout@v4 with: