From d4ca0eafa7e74342bff8e022f9694a54786d959e Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 22 Mar 2021 14:30:13 +0100 Subject: [PATCH] Update GitHub actions. Consistently use pull_request_target for pull requests to be added to the board to include encrypted tokens. Remove Done step as that's handled by the board automation. Switch from spring-issue-master to spring-projects-issues. Closes #1410. --- .github/workflows/project.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 68823782..33ca13e9 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -4,10 +4,10 @@ name: Spring Data GitHub Issues on: issues: - types: [opened, edited, reopened, closed] + types: [opened, edited, reopened] issue_comment: types: [created] - pull_request: + pull_request_target: types: [opened, edited, reopened] jobs: @@ -22,17 +22,6 @@ jobs: column-name: 'Inbox' project-location: 'spring-projects' token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }} - Done: - runs-on: ubuntu-latest - if: (github.event.action == 'closed') && github.event.pull_request == null - steps: - - name: Update Issue Card - uses: peter-evans/create-or-update-project-card@v1.1.2 - with: - project-name: 'Spring Data' - column-name: 'Done' - project-location: 'spring-projects' - token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }} Pull-Request: runs-on: ubuntu-latest if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null @@ -47,7 +36,7 @@ jobs: token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }} Feedback-Provided: runs-on: ubuntu-latest - if: github.repository_owner == 'spring-projects' && github.event_name == 'issue_comment' && github.event.action == 'created' && !github.actor == 'spring-issuemaster' && github.event.pull_request == null && github.event.issue.state == 'open' && contains(join(github.event.issue.labels.*.name, ', '), 'waiting-for-feedback') + if: github.repository_owner == 'spring-projects' && github.event_name == 'issue_comment' && github.event.action == 'created' && github.actor != 'spring-projects-issues' && github.event.pull_request == null && github.event.issue.state == 'open' && contains(toJSON(github.event.issue.labels), 'waiting-for-feedback') steps: - name: Update Project Card uses: peter-evans/create-or-update-project-card@v1.1.2