From 5c3a24b617f68daf00e15e2d921461f9c9aab2f0 Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Sat, 15 Aug 2026 06:55:02 -0700 Subject: [PATCH 1/5] [3.0] [Meta] Automatic pull request labeler --- .github/labeler.yml | 203 +++++++++++++++++++++++++++ .github/workflows/labeler_action.yml | 12 ++ 2 files changed, 215 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler_action.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..3eec71be22 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,203 @@ +# Skip file-based labeling if more than 300 files changed +max-files-changed: 300 + +# These labels will be skipped if > 300 files changed +Administrative: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Admin/**', 'Theme/default/Admin.template.php'] + +Anti-spam: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Admin/Anti-spam.php', 'Sources/AntiSpam/**'] + +Attachments: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Attach**'] + +"Background tasks" + - changed-files: + - any-glob-to-any-file: ['Sources/TaskRunner.php', 'Sources/Tasks/**', 'cron.php'] + +"Backward compatibility" + - changed-files: + - any-glob-to-any-file: ['Sources/Subs-Compat.php'] + +Boards: + - changed-files: + - any-glob-to-any-file: ['Sources/Board**', 'Sources/Actions/Board**', 'Sources/Actions/Admin/Board**', 'THemes/defalt/Board**'] + +Caching: + - changed-files: + - any-glob-to-any-file: ['Sources/Cache/**'] + +Calendar: + - changed-files: + - any-glob-to-any-file: ['Sources/Calendar/**', 'Sources/Time**'] + +Captcha: + - changed-files: + - any-glob-to-any-file: ['Sources/ReCaptcha/**'] + +"Charset/Encoding" + - changed-files: + - any-glob-to-any-file: ['Sources/Unicode/**'] + +Database: + - changed-files: + - any-glob-to-any-file: ['Sources/Db/**'] + +Drafts: + - changed-files: + - any-glob-to-any-file: ['Sources/Draft**'] + +Editor: + - changed-files: + - any-glob-to-any-file: ['Sources/Editor**'] + +Exports: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Profile/Export**'] + +"External data": + - changed-files: + - any-glob-to-any-file: ['Sources/WebFetch**'] + +github_actions: + - changed-files: + - any-glob-to-any-file: ['.github_actions/workflows/**'] + +Hooks: + - changed-files: + - any-glob-to-any-file: ['Sources/Integration**'] + +Installer: + - changed-files: + - any-glob-to-any-file: ['other/install.php', 'Sources/Maintenance/Tools/Install**', 'Sources/Db/Schema/**'] + +JavaScript: + - changed-files: + - any-glob-to-any-file: ['**.js'] + +Localization: + - changed-files: + - any-glob-to-any-file: ['Sources/Lang**', 'Sources/Actions/Admin/Lang**', 'Languages/**', 'Sources/Localization/**'] + +Logging: + - changed-files: + - any-glob-to-any-file: ['Sources/Error**', 'Sources/Log**', 'Sources/Actions/Admin/Log**', 'Sources/Actions/Moderation/Log**'] + +"Login Sessions": + - changed-files: + - any-glob-to-any-file: ['Sources/Session**'] + +Mail: + - changed-files: + - any-glob-to-any-file: ['Sources/Mail**'] + +Membergroups: + - changed-files: + - any-glob-to-any-file: ['Sources/Group**', 'Sources/Actions/Admin/Membegroups.php', 'Sources/Actions/Moderation/Group**'] + +Mentions: + - changed-files: + - any-glob-to-any-file: ['Sources/Mentions**'] + +Moderation: + - changed-files: + - any-glob-to-any-file: ['Sources/Moderation**', 'Sources/Actions/QuickModeration**', 'Sources/Actions/TopicMove**', 'Sources/Actions/TopicLock**', 'Sources/Actions/TopicMerge**', 'Sources/Actions/TopicRemove**', 'Sources/Actions/TopicRestore**', 'Sources/Actions/TopicSticky**', 'Sources/Actions/TopicSplit**', 'Sources/Actions/TopicRestore**', 'Sources/Actions/ReportToMod**'] + +MySQL: + - changed-files: + - any-glob-to-any-file: ['Sources/Db/APIs/MySQL**'] + +Navigation: + - changed-files: + - any-glob-to-any-file: ['Sources/Routable**', 'Sources/Action*.php'] + +Notifications: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Notify**', 'Sources/Actions/Profile/Notification**'] + +"Package Manager": + - changed-files: + - any-glob-to-any-file: ['Packages/**', 'Sources/Actions/Admin/Package**', 'Sources/PackageManager/**'] + +"Paid Subs": + - changed-files: + - any-glob-to-any-file: ['subscriptions.php', 'Sources/Subscriptions**', 'Sources/Actions/Admin/Subscriptions**', 'Sources/Actions/Profile/PaidSubs**'] + +"Parsers (BBC/Markdown)": + - changed-files: + - any-glob-to-any-file: ['Sources/Parser**', 'Sources/Parsers/**', 'Sources/BBCode/**'] + +Permissions: + - changed-files: + - any-glob-to-any-file: ['Sources/Permissions/**', 'Sources/Actions/Admin/Permissions**'] + +PM: + - changed-files: + - any-glob-to-any-file: ['Sources/PersonalMessage/**', 'Sources/Actions/PersonalMessage**'] + +Polls: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Poll**'] + +PostgreSQL: + - changed-files: + - any-glob-to-any-file: ['Sources/Db/APIs/PostgreSQL**'] + +Posting: + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Post**'] + +Proxy: + - changed-files: + - any-glob-to-any-file: ['proxy.php', 'Sources/ProxyServer.php'] + +Registration: + - changed-files: + - any-glob-to-any-file: ['Sources/Actins/Register**'] + +"Scheduled Tasks": + - changed-files: + - any-glob-to-any-file: ['Sources/TaskRunner.php', 'Sources/Tasks/**', 'cron.php'] + +Search: + - changed-files: + - any-glob-to-any-file: ['Sources/Search/**', 'Sources/Actions/Search**', 'Sources/Actions/Admin/Search**'] + +"Server settings": + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Admin/Server**'] + +Smileys: + - changed-files: + - any-glob-to-any-file: ['Smileys/**', 'Sources/Parsers/SmileyParser.php', 'Sources/ActionAdmin/Smileys.php'] + +Subscriptions: + - changed-files: + - any-glob-to-any-file: ['subscriptions.php', 'Sources/Subscriptions**', 'Sources/Actions/Admin/Subscriptions**', 'Sources/Actions/Profile/PaidSubs**'] + +Theme: + - changed-files: + - any-glob-to-any-file: ['Themes/default/**'] + +Topics: + - changed-files: + - any-glob-to-any-file: ['Sources/Topic.php', 'Sources/Actions/Topic**'] + +Upgrader: + - changed-files: + - any-glob-to-any-file: ['other/upgrade.php', 'Sources/Maintenance/Tools/Upgrade**', 'Sources/Maintenance/Cleanup/**', 'Sources/Maintenance/Migration/**'] + +"User settings": + - changed-files: + - any-glob-to-any-file: ['Sources/User**', 'Sources/Actions/Profile/**'] + +"Visual verification": + - changed-files: + - any-glob-to-any-file: ['Sources/ReCaptcha/**'] + +"Web feeds": + - changed-files: + - any-glob-to-any-file: ['Sources/Actions/Xml**'] diff --git a/.github/workflows/labeler_action.yml b/.github/workflows/labeler_action.yml new file mode 100644 index 0000000000..4b3b1f3104 --- /dev/null +++ b/.github/workflows/labeler_action.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@b8dd2d9be0f68b860e7dae5dae7d772984eacd6d #v6 From 4526caa95c45f6cedbefaa9c2ce4935b02ba8387 Mon Sep 17 00:00:00 2001 From: Jeremy D Date: Sat, 15 Aug 2026 13:09:58 -0700 Subject: [PATCH 2/5] Update .github/labeler.yml Co-authored-by: Jon Stovell --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 3eec71be22..ea87386ef7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -24,7 +24,7 @@ Attachments: Boards: - changed-files: - - any-glob-to-any-file: ['Sources/Board**', 'Sources/Actions/Board**', 'Sources/Actions/Admin/Board**', 'THemes/defalt/Board**'] + - any-glob-to-any-file: ['Sources/Board**', 'Sources/Actions/Board**', 'Sources/Actions/Admin/Board**', 'Themes/defalt/Board**'] Caching: - changed-files: From 4563daa5f40e9363675717e6f97bfe33cc94b181 Mon Sep 17 00:00:00 2001 From: Jeremy D Date: Sat, 15 Aug 2026 13:10:55 -0700 Subject: [PATCH 3/5] Update .github/labeler.yml Co-authored-by: Jon Stovell --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index ea87386ef7..529d678819 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -200,4 +200,4 @@ Upgrader: "Web feeds": - changed-files: - - any-glob-to-any-file: ['Sources/Actions/Xml**'] + - any-glob-to-any-file: ['Sources/Actions/Feed**'] From b75e649d29f670e58f3bd42e140543dfd24d539c Mon Sep 17 00:00:00 2001 From: Jeremy D Date: Sat, 15 Aug 2026 13:11:09 -0700 Subject: [PATCH 4/5] Update .github/labeler.yml Co-authored-by: Jon Stovell --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 529d678819..899d308bd3 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -56,7 +56,7 @@ Editor: Exports: - changed-files: - - any-glob-to-any-file: ['Sources/Actions/Profile/Export**'] + - any-glob-to-any-file: ['Sources/Actions/Profile/Export**', 'Sources/Tasks/ExportProfileData**'] "External data": - changed-files: From a33e4e4cfdba6da620c6d272fa6f94c12e569635 Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Sat, 15 Aug 2026 13:17:53 -0700 Subject: [PATCH 5/5] Remove some duplicate labels --- .github/labeler.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 899d308bd3..538e6f8e5f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -8,7 +8,7 @@ Administrative: Anti-spam: - changed-files: - - any-glob-to-any-file: ['Sources/Actions/Admin/Anti-spam.php', 'Sources/AntiSpam/**'] + - any-glob-to-any-file: ['Sources/Actions/Admin/Anti-spam.php', 'Sources/AntiSpam/**', 'Sources/ReCaptcha/**'] Attachments: - changed-files: @@ -34,10 +34,6 @@ Calendar: - changed-files: - any-glob-to-any-file: ['Sources/Calendar/**', 'Sources/Time**'] -Captcha: - - changed-files: - - any-glob-to-any-file: ['Sources/ReCaptcha/**'] - "Charset/Encoding" - changed-files: - any-glob-to-any-file: ['Sources/Unicode/**'] @@ -122,10 +118,6 @@ Notifications: - changed-files: - any-glob-to-any-file: ['Packages/**', 'Sources/Actions/Admin/Package**', 'Sources/PackageManager/**'] -"Paid Subs": - - changed-files: - - any-glob-to-any-file: ['subscriptions.php', 'Sources/Subscriptions**', 'Sources/Actions/Admin/Subscriptions**', 'Sources/Actions/Profile/PaidSubs**'] - "Parsers (BBC/Markdown)": - changed-files: - any-glob-to-any-file: ['Sources/Parser**', 'Sources/Parsers/**', 'Sources/BBCode/**'] @@ -194,10 +186,6 @@ Upgrader: - changed-files: - any-glob-to-any-file: ['Sources/User**', 'Sources/Actions/Profile/**'] -"Visual verification": - - changed-files: - - any-glob-to-any-file: ['Sources/ReCaptcha/**'] - "Web feeds": - changed-files: - any-glob-to-any-file: ['Sources/Actions/Feed**']