Skip to content

Commit 9df29a5

Browse files
committed
#257 - Add GitHub actions for issue management.
1 parent 2188b5d commit 9df29a5

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!--
2+
3+
Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request.
4+
Make sure that:
5+
6+
-->
7+
8+
- [ ] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
9+
- [ ] 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.
10+
- [ ] You submit test cases (unit or integration tests) that back your changes.
11+
- [ ] 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

+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_target:
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)