Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b6b169d

Browse files
committedDec 31, 2020
#3529 - Add GitHub actions workflow for issue management.
1 parent b7310fd commit b6b169d

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed
 

‎.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Make sure that:
66
-->
77

88
- [ ] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
9-
- [ ] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATAMONGO).
109
- [ ] 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.
1110
- [ ] You submit test cases (unit or integration tests) that back your changes.
1211
- [ ] 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).

‎.github/workflows/project.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# GitHub Actions to automate GitHub issues for Spring Data Project Management
2+
3+
name: Spring Data GitHub Issues
4+
5+
on:
6+
issues:
7+
types: [opened, edited, reopened]
8+
issue_comment:
9+
types: [created]
10+
pull_request:
11+
types: [opened, edited, reopened]
12+
13+
jobs:
14+
Inbox:
15+
runs-on: ubuntu-latest
16+
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request == null
17+
steps:
18+
- name: Create or Update Issue Card
19+
uses: peter-evans/create-or-update-project-card@v1.1.2
20+
with:
21+
project-name: 'Spring Data'
22+
column-name: 'Inbox'
23+
project-location: 'spring-projects'
24+
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
25+
Pull-Request:
26+
runs-on: ubuntu-latest
27+
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null
28+
steps:
29+
- name: Create or Update Pull Request Card
30+
uses: peter-evans/create-or-update-project-card@v1.1.2
31+
with:
32+
project-name: 'Spring Data'
33+
column-name: 'Review pending'
34+
project-location: 'spring-projects'
35+
issue-number: ${{ github.event.pull_request.number }}
36+
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
37+
Feedback-Provided:
38+
runs-on: ubuntu-latest
39+
if: github.repository_owner == 'spring-projects' && github.event.action == 'created' && contains(join(github.event.issue.labels.*.name, ', '), 'waiting-for-feedback')
40+
steps:
41+
- name: Update Project Card
42+
uses: peter-evans/create-or-update-project-card@v1.1.2
43+
with:
44+
project-name: 'Spring Data'
45+
column-name: 'Feedback provided'
46+
project-location: 'spring-projects'
47+
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}

0 commit comments

Comments
 (0)
Please sign in to comment.