diff --git a/.github/workflows/fix.yaml b/.github/workflows/fix.yaml index 8e2a6c93..9ad60d2c 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 @@ -15,6 +13,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} - uses: pnpm/action-setup@v4 with: version: latest @@ -24,18 +24,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 push + git commit --all --message '🎨 pnpm run lint:fix' --message '[dependabot skip]' + git push 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