From e955c3a9be4030b96d580257e4312051b00b1ba1 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 31 Dec 2020 12:34:08 +0100 Subject: [PATCH] #46 - Add GitHub actions for issue management. --- .github/PULL_REQUEST_TEMPLATE.md | 8 ++---- .github/workflows/project.yml | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/project.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1957f70d..e8f632af 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,8 +6,6 @@ Make sure that: --> - [ ] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc). -- [ ] You created a [JIRA](https://jira.spring.io/browse/DATAGEODE) ticket in the bug tracker for the project. -- [ ] You formatted the code according to the source code style provided [here](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) and have specifically applied them to your changes. Do not submit any formatting related changes. -- [ ] You submitted test cases (Unit or Integration Tests) backing your changes. -- [ ] You added yourself as the author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only). -- [ ] If applicable, you have complied with and taken steps necessary to report any security vulnerabilities at [Pivotal Security Reporting](https://pivotal.io/security#reporting). +- [ ] You use the code formatters provided [here](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) and have them applied to your changes. Don’t submit any formatting related changes. +- [ ] You submit test cases (unit or integration tests) that back your changes. +- [ ] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only). diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml new file mode 100644 index 00000000..cad9723a --- /dev/null +++ b/.github/workflows/project.yml @@ -0,0 +1,47 @@ +# GitHub Actions to automate GitHub issues for Spring Data Project Management + +name: Spring Data GitHub Issues + +on: + issues: + types: [opened, edited, reopened] + issue_comment: + types: [created] + pull_request_target: + types: [opened, edited, reopened] + +jobs: + Inbox: + runs-on: ubuntu-latest + if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request == null + steps: + - name: Create or Update Issue Card + uses: peter-evans/create-or-update-project-card@v1.1.2 + with: + project-name: 'Spring Data' + column-name: 'Inbox' + 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 + steps: + - name: Create or Update Pull Request Card + uses: peter-evans/create-or-update-project-card@v1.1.2 + with: + project-name: 'Spring Data' + column-name: 'Review pending' + project-location: 'spring-projects' + issue-number: ${{ github.event.pull_request.number }} + token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }} + Feedback-Provided: + runs-on: ubuntu-latest + if: github.repository_owner == 'spring-projects' && github.event.action == 'created' && contains(join(github.event.issue.labels.*.name, ', '), 'waiting-for-feedback') + steps: + - name: Update Project Card + uses: peter-evans/create-or-update-project-card@v1.1.2 + with: + project-name: 'Spring Data' + column-name: 'Feedback provided' + project-location: 'spring-projects' + token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}