|
| 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