aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2026-09-10 19:31:13 -0400
committerGitHub <noreply@github.com>2026-09-10 19:31:13 -0400
commit1d7b6d97844c8cc848ed3fb5c4b48bb9cdd5b139 (patch)
tree907db965c7407c9d5c6445dfb9507aeb6a1dc0ed
parent50c457918317418a592de6a03c8ec52fae17309d (diff)
parent42259550810383b1e28dd39647015b531df37cab (diff)
Merge pull request #17888 from jellyfin/fix/project-automation-v2HEADmaster
add org project automation
-rw-r--r--.github/workflows/project-automation.yml77
1 files changed, 20 insertions, 57 deletions
diff --git a/.github/workflows/project-automation.yml b/.github/workflows/project-automation.yml
index 9a9f3214a7..5d7dd09348 100644
--- a/.github/workflows/project-automation.yml
+++ b/.github/workflows/project-automation.yml
@@ -1,66 +1,29 @@
name: Project Automation
on:
- push:
- branches:
- - master
pull_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 board
runs-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@master
with:
- 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'