The Free Software Media System - Server Backend & API
add org project automation
Cody Robibero422595508103
diff --git a/.github/workflows/project-automation.yml b/.github/workflows/project-automation.ymlindex 9a9f3214a7..5d7dd09348 100644--- a/.github/workflows/project-automation.yml+++ b/.github/workflows/project-automation.yml@@ -1,66 +1,29 @@name: Project Automationon:- push:- branches:- - masterpull_request:- issue_comment:+ types: [opened, reopened, synchronize, ready_for_review, edited]+ pull_request_review:+ types: [submitted]+ pull_request_target:+ types: [closed]++permissions:+ contents: read-permissions: {}jobs:- project:- name: Project board+ project-board:+ name: Release project boardruns-on: ubuntu-latest- if: ${{ github.repository == 'jellyfin/jellyfin' }}+ if: ${{ github.repository == 'jellyfin/jellyfin' && (github.event_name != 'pull_request_target' || github.event.pull_request.head.repo.full_name == github.repository) }}steps:- - name: Remove from 'Current Release' project- uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0- if: (github.event.pull_request || github.event.issue.pull_request) && !contains(github.event.*.labels.*.name, 'stable backport')- continue-on-error: true- with:- project: Current Release- action: delete- column: In progress- repo-token: ${{ secrets.JF_BOT_TOKEN }}-- - name: Add to 'Release Next' project- uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0- 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- repo-token: ${{ secrets.JF_BOT_TOKEN }}-- - name: Add to 'Current Release' project- uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0- if: (github.event.pull_request || github.event.issue.pull_request) && !contains(github.event.*.labels.*.name, 'stable backport')- continue-on-error: true- with:- project: Current Release- column: In progress- repo-token: ${{ secrets.JF_BOT_TOKEN }}-- - 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- uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0- 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- repo-token: ${{ secrets.JF_BOT_TOKEN }}-- - name: Add issue to triage project- uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0- if: github.event.issue.pull_request == '' && github.event.action == 'opened'- continue-on-error: true+ - name: Update project board+ uses: jellyfin/jellyfin-packaging/.github/actions/project-automation@masterwith:- project: Issue Triage for Main Repo- column: Pending response- repo-token: ${{ secrets.JF_BOT_TOKEN }}+ github-token: ${{ secrets.GH_PROJECTS_TOKEN }}+ repo: jellyfin+ event-name: ${{ github.event_name }}+ base-ref: ${{ github.event.pull_request.base.ref }}+ pr-number: ${{ github.event.pull_request.number }}+ pr-merged: ${{ github.event.pull_request.merged }}+ required-approvals: '2'