From d691de63a96fed5feb3034290117d6b05c54dbd7 Mon Sep 17 00:00:00 2001 From: Johan Castiblanco Date: Tue, 28 Feb 2023 11:51:20 -0500 Subject: [PATCH] fix: pr-issue and line-labeler actions fix: pr issue assignment fix: lines labeler action version This related to issue of action in https://github.com/CodelyTV/pr-size-labeler/issues/15. and eox-plugins decisions https://github.com/eduNEXT/eox-theming/pull/44/files/66037f401e2cebe33baaec013312e79fcf77892 but the issue explain the permission solution. footer Co-authored-by: johanv26 --- .github/workflows/lines_labeler.yml | 4 +++- .github/workflows/pr_auto_assign.yml | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lines_labeler.yml b/.github/workflows/lines_labeler.yml index a176faeb..c7e3cc7d 100644 --- a/.github/workflows/lines_labeler.yml +++ b/.github/workflows/lines_labeler.yml @@ -8,6 +8,9 @@ jobs: labeler: runs-on: ubuntu-latest name: Label the PR size + permissions: + issues: write + pull-requests: write steps: - uses: CodelyTV/pr-size-labeler@v1.8.1 with: @@ -21,4 +24,3 @@ jobs: 'This PR exceeds the recommended size of 1000 lines. Check if you are NOT addressing multiple issues with one PR. If is not the case continue the review process.' - github_api_url: 'api.github.com' diff --git a/.github/workflows/pr_auto_assign.yml b/.github/workflows/pr_auto_assign.yml index 7121abf0..f5f79fb7 100644 --- a/.github/workflows/pr_auto_assign.yml +++ b/.github/workflows/pr_auto_assign.yml @@ -1,9 +1,9 @@ name: PR Issue Assignment 📝 on: issues: - types: [opened] + types: [opened, reopened] pull_request: - types: [opened] + types: [opened, reopened] jobs: auto-assign: @@ -12,7 +12,6 @@ jobs: - name: 'Auto-assign PR-Issue' uses: pozil/auto-assign-issue@v1.11.0 with: - assignees: nelp-ops-crew + teams: nelp-ops-crew numOfAssignee: 1 - allowSelfAssign: false repo-token: ${{ secrets.NELP_PAT }}