From d2be11cf8128919e19f8a9ac8b023747a6b58acb Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Fri, 14 Jul 2023 16:26:31 -0700 Subject: [PATCH 1/4] update versioning.yml --- .github/workflows/versioning.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index 4852bd59..757243ee 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - - main + - master jobs: - actions-tagger: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-22.04 + permissions: + contents: write steps: - - name: Run latest-tag - uses: EndBug/latest-tag@latest + - uses: actions/checkout@v3 + with: + fetch-depth: '0' + + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token + WITH_V: false From f801373e58e1e18b146fcb569b21f10f8fbed2e5 Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Fri, 14 Jul 2023 16:29:18 -0700 Subject: [PATCH 2/4] update versioning.yml --- .github/workflows/versioning.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index 757243ee..2779780b 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -2,7 +2,7 @@ name: Bump version on: push: branches: - - master + - main jobs: build: From da3f94cd4f15960a8248eae69b19983edb95ec3b Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Fri, 14 Jul 2023 16:43:53 -0700 Subject: [PATCH 3/4] update versioning.yml --- .github/workflows/versioning.yml | 46 +++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index 2779780b..180dc78f 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -1,21 +1,37 @@ -name: Bump version +name: Update latest tag + on: - push: - branches: - - main + release: + types: [published] jobs: - build: - runs-on: ubuntu-22.04 - permissions: - contents: write + update-latest-tag: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup git user + run: | + git config user.name "github-actions" + git config user.email "github-actions@github.com" - - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version + - name: Fetch all tags + run: git fetch --tags + + - name: Move latest tag to current commit + run: | + git tag -d latest || true + git tag latest + git push origin :refs/tags/latest + git push origin --tags + + - name: Create a GitHub release for the latest tag + uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token - WITH_V: false + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: latest + release_name: Release ${{ github.ref }} + draft: false + prerelease: false From 5bb14c496a8892ea59ae110d34e64a4bc3c9d4ea Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Fri, 14 Jul 2023 16:48:28 -0700 Subject: [PATCH 4/4] update readme --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f67fa548..d9d64925 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,12 @@ features of this action are: `summarize_release_notes` prompts to focus on specific aspects of the review process or even change the review objective. -# Professional Version of CodeRabbit
-The professional version of our openai-pr-reviewer project is now live at [coderabbit.ai](http://Coderabbit.ai). Building upon our open-source foundation, CodeRabbit offers improved features, dedicated support, and our ongoing commitment to superior code reviews. +# Professional Version of CodeRabbit
+The professional version of our openai-pr-reviewer project is now live at +[coderabbit.ai](http://Coderabbit.ai). Building upon our open-source foundation, +CodeRabbit offers improved features, dedicated support, and our ongoing +commitment to superior code reviews. ## Usage @@ -64,7 +67,7 @@ jobs: review: runs-on: ubuntu-latest steps: - - uses: fluxninja/openai-pr-reviewer@latest + - uses: coderabbitai/openai-pr-reviewer@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} @@ -226,7 +229,7 @@ jobs: review: runs-on: ubuntu-latest steps: - - uses: fluxninja/openai-pr-reviewer@latest + - uses: coderabbitai/openai-pr-reviewer@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}