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.
66 lines
2.8 KiB
66 lines
2.8 KiB
1 year ago
|
name: Project Automation
|
||
4 years ago
|
|
||
|
on:
|
||
4 years ago
|
push:
|
||
|
branches:
|
||
|
- master
|
||
4 years ago
|
pull_request_target:
|
||
4 years ago
|
issue_comment:
|
||
4 years ago
|
|
||
2 years ago
|
permissions: {}
|
||
4 years ago
|
jobs:
|
||
4 years ago
|
project:
|
||
|
name: Project board
|
||
|
runs-on: ubuntu-latest
|
||
3 years ago
|
if: ${{ github.repository == 'jellyfin/jellyfin' }}
|
||
4 years ago
|
steps:
|
||
4 years ago
|
- name: Remove from 'Current Release' project
|
||
2 years ago
|
uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 # v0.8.3
|
||
4 years ago
|
if: (github.event.pull_request || github.event.issue.pull_request) && !contains(github.event.*.labels.*.name, 'stable backport')
|
||
4 years ago
|
continue-on-error: true
|
||
|
with:
|
||
|
project: Current Release
|
||
|
action: delete
|
||
4 years ago
|
repo-token: ${{ secrets.JF_BOT_TOKEN }}
|
||
4 years ago
|
|
||
|
- name: Add to 'Release Next' project
|
||
2 years ago
|
uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 # v0.8.3
|
||
4 years ago
|
if: (github.event.pull_request || github.event.issue.pull_request) && github.event.action == 'opened'
|
||
|
continue-on-error: true
|
||
|
with:
|
||
|
project: Release Next
|
||
|
column: In progress
|
||
4 years ago
|
repo-token: ${{ secrets.JF_BOT_TOKEN }}
|
||
4 years ago
|
|
||
|
- name: Add to 'Current Release' project
|
||
2 years ago
|
uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 # v0.8.3
|
||
4 years ago
|
if: (github.event.pull_request || github.event.issue.pull_request) && !contains(github.event.*.labels.*.name, 'stable backport')
|
||
4 years ago
|
continue-on-error: true
|
||
|
with:
|
||
|
project: Current Release
|
||
|
column: In progress
|
||
4 years ago
|
repo-token: ${{ secrets.JF_BOT_TOKEN }}
|
||
4 years ago
|
|
||
|
- name: Check number of comments from the team member
|
||
|
if: github.event.issue.pull_request == '' && github.event.comment.author_association == 'MEMBER'
|
||
|
id: member_comments
|
||
|
run: echo "::set-output name=number::$(curl -s ${{ github.event.issue.comments_url }} | jq '.[] | select(.author_association == "MEMBER") | .author_association' | wc -l)"
|
||
|
|
||
|
- name: Move issue to needs triage
|
||
2 years ago
|
uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 # v0.8.3
|
||
4 years ago
|
if: github.event.issue.pull_request == '' && github.event.comment.author_association == 'MEMBER' && steps.member_comments.outputs.number <= 1
|
||
|
continue-on-error: true
|
||
|
with:
|
||
|
project: Issue Triage for Main Repo
|
||
|
column: Needs triage
|
||
4 years ago
|
repo-token: ${{ secrets.JF_BOT_TOKEN }}
|
||
4 years ago
|
|
||
|
- name: Add issue to triage project
|
||
2 years ago
|
uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 # v0.8.3
|
||
4 years ago
|
if: github.event.issue.pull_request == '' && github.event.action == 'opened'
|
||
|
continue-on-error: true
|
||
|
with:
|
||
|
project: Issue Triage for Main Repo
|
||
|
column: Pending response
|
||
4 years ago
|
repo-token: ${{ secrets.JF_BOT_TOKEN }}
|