You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.9 KiB
47 lines
1.9 KiB
# 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 }}
|
|
|