From 17c57aee8b2c95b89104d365c65e178cd7e135fb Mon Sep 17 00:00:00 2001 From: mhh Date: Fri, 10 Nov 2023 17:14:30 +0100 Subject: [PATCH 1/3] Add PR Difficulty Rating workflow to the .github/workflows/pr-rating.yml file. --- .github/workflows/pr-rating.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pr-rating.yml diff --git a/.github/workflows/pr-rating.yml b/.github/workflows/pr-rating.yml new file mode 100644 index 00000000..5f802ff5 --- /dev/null +++ b/.github/workflows/pr-rating.yml @@ -0,0 +1,15 @@ +name: Test PR Difficulty Rating Action + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + difficulty-rating: + runs-on: ubuntu-latest + steps: + - name: PR Difficulty Rating + uses: rate-my-pr/gh-action@main + with: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + LLAMA_URL: ${{ secrets.LLAMA_URL }} From 3088aa32b4e9bd2dacb36c7d466d44dc9a41853b Mon Sep 17 00:00:00 2001 From: mhh Date: Mon, 13 Nov 2023 14:34:24 +0100 Subject: [PATCH 2/3] Update PR rating workflow to use the latest version of the rate-my-pr action. --- .github/workflows/pr-rating.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-rating.yml b/.github/workflows/pr-rating.yml index 5f802ff5..0c5db6d1 100644 --- a/.github/workflows/pr-rating.yml +++ b/.github/workflows/pr-rating.yml @@ -1,15 +1,19 @@ name: Test PR Difficulty Rating Action +permissions: + pull-requests: write + on: pull_request: - types: [opened, reopened, synchronize] + types: [opened, reopened, ready_for_review] jobs: difficulty-rating: runs-on: ubuntu-latest + if: github.event.pull_request.draft == false steps: - name: PR Difficulty Rating - uses: rate-my-pr/gh-action@main + uses: rate-my-pr/rate@v1.0.11 with: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }} From e6d29624ccf27df4bdb6b629c43cfd461876ec90 Mon Sep 17 00:00:00 2001 From: mhh Date: Tue, 14 Nov 2023 18:05:17 +0100 Subject: [PATCH 3/3] Update PR rating workflow to use the latest v1 version of the rate-my-pr/rate action. --- .github/workflows/pr-rating.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-rating.yml b/.github/workflows/pr-rating.yml index 0c5db6d1..2bbcd27d 100644 --- a/.github/workflows/pr-rating.yml +++ b/.github/workflows/pr-rating.yml @@ -13,7 +13,7 @@ jobs: if: github.event.pull_request.draft == false steps: - name: PR Difficulty Rating - uses: rate-my-pr/rate@v1.0.11 + uses: rate-my-pr/rate@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }}