PR #23611 opened by Timo Rothenpieler (BtbN)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23611
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23611.patch

Just general housekeeping to update the 9.0 branches CI.


>From 16e59dfabf92a95a3cc99af38de54644fe995bb0 Mon Sep 17 00:00:00 2001
From: Timo Rothenpieler <[email protected]>
Date: Sat, 27 Jun 2026 00:03:34 +0200
Subject: [PATCH] forgejo/workflows: change to targeting 9.0 release branch

---
 .forgejo/labeler/labeler.js      | 74 --------------------------------
 .forgejo/labeler/labeler.yml     | 35 ---------------
 .forgejo/workflows/autolabel.yml | 32 --------------
 .forgejo/workflows/lint.yml      |  2 +-
 .forgejo/workflows/test.yml      |  4 +-
 5 files changed, 3 insertions(+), 144 deletions(-)
 delete mode 100644 .forgejo/labeler/labeler.js
 delete mode 100644 .forgejo/labeler/labeler.yml
 delete mode 100644 .forgejo/workflows/autolabel.yml

diff --git a/.forgejo/labeler/labeler.js b/.forgejo/labeler/labeler.js
deleted file mode 100644
index 173d98080c..0000000000
--- a/.forgejo/labeler/labeler.js
+++ /dev/null
@@ -1,74 +0,0 @@
-module.exports = async ({github, context}) => {
-    const title = (context.payload.pull_request?.title || 
context.payload.issue?.title || '').toLowerCase();
-    const labels = [];
-    const issueNumber = context.payload.pull_request?.number || 
context.payload.issue?.number;
-
-    const kwmap = {
-      'avcodec': 'avcodec',
-      'avdevice': 'avdevice',
-      'avfilter': 'avfilter',
-      'avformat': 'avformat',
-      'avutil': 'avutil',
-      'swresample': 'swresample',
-      'swscale': 'swscale',
-      'fftools': 'CLI',
-      'vulkan': 'vulkan'
-    };
-
-    async function isOrgMember(username) {
-        try {
-            const response = await github.rest.orgs.checkMembershipForUser({
-                org: context.repo.owner,
-                username: username
-            });
-            return response.status === 204;
-        } catch (error) {
-            return false;
-        }
-    }
-
-    if (context.payload.action === 'closed' ||
-        (context.payload.action !== 'opened' && (
-             context.payload.action === 'assigned' ||
-             context.payload.action === 'label_updated' ||
-             context.payload.action === 'labeled' ||
-             context.payload.comment) &&
-         await isOrgMember(context.payload.sender.login))
-    ) {
-        try {
-            await github.rest.issues.removeLabel({
-                owner: context.repo.owner,
-                repo: context.repo.repo,
-                issue_number: issueNumber,
-                // this should say 'new', but forgejo deviates from GitHub API 
here and expects the ID
-                name: '41'
-            });
-            console.log('Removed "new" label');
-        } catch (error) {
-            if (error.status !== 404 && error.status !== 410) {
-                console.log('Could not remove "new" label');
-            }
-        }
-    } else if (context.payload.action === 'opened') {
-        labels.push('new');
-        console.log('Detected label: new');
-    }
-
-    if ((context.payload.action === 'opened' || context.payload.action === 
'edited') && context.eventName !== 'issue_comment') {
-        for (const [kw, label] of Object.entries(kwmap)) {
-            if (title.includes(kw)) {
-                labels.push(label);
-                console.log('Detected label: ' + label);
-            }
-        }
-    }
-
-    if (labels.length > 0) {
-        await github.rest.issues.addLabels({
-            owner: context.repo.owner,
-            repo: context.repo.repo,
-            issue_number: issueNumber,
-            labels: labels,
-        });
-    }
-}
diff --git a/.forgejo/labeler/labeler.yml b/.forgejo/labeler/labeler.yml
deleted file mode 100644
index 446a675316..0000000000
--- a/.forgejo/labeler/labeler.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-avcodec:
-  - changed-files:
-    - any-glob-to-any-file: 'libavcodec/**'
-
-avdevice:
-  - changed-files:
-    - any-glob-to-any-file: 'libavdevice/**'
-
-avfilter:
-  - changed-files:
-    - any-glob-to-any-file: 'libavfilter/**'
-
-avformat:
-  - changed-files:
-    - any-glob-to-any-file: 'libavformat/**'
-
-avutil:
-  - changed-files:
-    - any-glob-to-any-file: 'libavutil/**'
-
-swresample:
-  - changed-files:
-    - any-glob-to-any-file: 'libswresample/**'
-
-swscale:
-  - changed-files:
-    - any-glob-to-any-file: 'libswscale/**'
-
-CLI:
-  - changed-files:
-    - any-glob-to-any-file: 'fftools/**'
-
-vulkan:
-  - changed-files:
-    - any-glob-to-any-file: '**/*vulkan*'
diff --git a/.forgejo/workflows/autolabel.yml b/.forgejo/workflows/autolabel.yml
deleted file mode 100644
index 0235bdd7d4..0000000000
--- a/.forgejo/workflows/autolabel.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: Autolabel
-
-on:
-  pull_request_target:
-    types: [opened, edited, synchronize, closed, assigned, labeled, unlabeled]
-  issues:
-    types: [opened, edited, closed, assigned, labeled, unlabeled]
-  issue_comment:
-    types: [created]
-
-jobs:
-  pr_labeler:
-    name: Labeler
-    runs-on: utilities
-    if: ${{ github.event.sender.login != 'ffmpeg-devel' }}
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v6
-      - name: Label by file-changes
-        uses: actions/labeler@v6
-        if: ${{ forge.event_name == 'pull_request_target' }}
-        with:
-          configuration-path: .forgejo/labeler/labeler.yml
-          repo-token: ${{ secrets.AUTOLABELER_TOKEN }}
-          sync-labels: true
-      - name: Label by title-match
-        uses: actions/github-script@v8
-        with:
-          script: |
-            const script = require('.forgejo/labeler/labeler.js')
-            await script({github, context})
-          github-token: ${{ secrets.AUTOLABELER_TOKEN }}
diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml
index 32237eecc7..d4c025104e 100644
--- a/.forgejo/workflows/lint.yml
+++ b/.forgejo/workflows/lint.yml
@@ -3,7 +3,7 @@ name: Lint
 on:
   push:
     branches:
-      - master
+      - release/9.0
   pull_request:
 
 concurrency:
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml
index 3af1522b88..35e1064712 100644
--- a/.forgejo/workflows/test.yml
+++ b/.forgejo/workflows/test.yml
@@ -3,7 +3,7 @@ name: Test
 on:
   push:
     branches:
-      - master
+      - release/9.0
   pull_request:
 
 concurrency:
@@ -77,7 +77,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        image: ['ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest']
+        image: ['ghcr.io/btbn/ffmpeg-builds/win64-gpl-9.0:latest']
         target_exec: ['wine']
     runs-on: linux-amd64
     container: ${{ matrix.image }}
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to