From 8fe7fe4a5674c14774e5627a19a4b981d4dba53b Mon Sep 17 00:00:00 2001 From: mhh Date: Sat, 11 Nov 2023 14:17:16 +0100 Subject: [PATCH 1/6] Add PR Difficulty Rating workflow to test and rate the difficulty of pull requests. --- .github/workflows/pr-rating.yml | 16 ++++++++++++++++ 1 file changed, 16 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..000f15c6 --- /dev/null +++ b/.github/workflows/pr-rating.yml @@ -0,0 +1,16 @@ +name: Test PR Difficulty Rating Action + +on: + pull_request: + 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: MHHukiewitz/pr-rating-action@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_PR_RATING_TOKEN }} + LLAMA_URL: ${{ secrets.LLAMA_URL }} From 3ba00ce9c46556613ae392efbb06f442386259ba Mon Sep 17 00:00:00 2001 From: mhh Date: Sat, 11 Nov 2023 14:30:44 +0100 Subject: [PATCH 2/6] Add permissions for pull requests to have write access and update the GITHUB_TOKEN value to use secrets.GITHUB_TOKEN. --- .github/workflows/pr-rating.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-rating.yml b/.github/workflows/pr-rating.yml index 000f15c6..e27037b0 100644 --- a/.github/workflows/pr-rating.yml +++ b/.github/workflows/pr-rating.yml @@ -1,5 +1,8 @@ name: Test PR Difficulty Rating Action +permissions: + pull-requests: write + on: pull_request: types: [opened, reopened, ready_for_review] @@ -12,5 +15,5 @@ jobs: - name: PR Difficulty Rating uses: MHHukiewitz/pr-rating-action@main with: - GITHUB_TOKEN: ${{ secrets.GITHUB_PR_RATING_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }} From 1555c3347af652ddd22bc31530dbedc7b35edd37 Mon Sep 17 00:00:00 2001 From: mhh Date: Sat, 11 Nov 2023 14:38:08 +0100 Subject: [PATCH 3/6] Update PR Difficulty Rating action to version 1.0.7. --- .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 e27037b0..c28d7b07 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: MHHukiewitz/pr-rating-action@main + uses: rate-my-pr/rate@v1.0.7 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }} From 1a4781910d486c379e25db962f16232737b41411 Mon Sep 17 00:00:00 2001 From: mhh Date: Mon, 13 Nov 2023 13:16:14 +0100 Subject: [PATCH 4/6] Update PR Difficulty Rating action version to v1.0.8 --- .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 c28d7b07..c52c3b39 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.7 + uses: rate-my-pr/rate@v1.0.8 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }} From f5b9e00b78aa4d8ca6ec1c6558d234fa7a978327 Mon Sep 17 00:00:00 2001 From: mhh Date: Mon, 13 Nov 2023 13:28:32 +0100 Subject: [PATCH 5/6] Update PR Difficulty Rating action to version v1.0.10 in pr-rating.yml. --- .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 c52c3b39..8b8348de 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.8 + uses: rate-my-pr/rate@v1.0.10 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }} From 9fecf4a8a63bb267e60c9e4ac12961a53032eb0e Mon Sep 17 00:00:00 2001 From: mhh Date: Mon, 13 Nov 2023 14:08:08 +0100 Subject: [PATCH 6/6] Update PR Difficulty Rating action to version v1.0.11 to fix critical bug --- .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 8b8348de..0c5db6d1 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.10 + uses: rate-my-pr/rate@v1.0.11 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLAMA_URL: ${{ secrets.LLAMA_URL }}