Skip to content

Commit b2de7ff

Browse files
committed
#2127 - Add GitHub issues project automation.
1 parent 5b777c1 commit b2de7ff

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +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/DATAJPA).
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).
13-

.github/workflows/project.yml

+47
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/[email protected]
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/[email protected]
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/[email protected]
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)