[PR #5868] [MERGED] Github: AutoLabler | ChangeLog (Refactor) #6169

Closed
opened 2025-11-20 07:09:25 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/5868
Author: @MickLesk
Created: 7/9/2025
Status: Merged
Merged: 7/9/2025
Merged by: @MickLesk

Base: mainHead: fix_autolabler


📝 Commits (1)

  • 57e1912 Github: AutoLabler | ChangeLog (Refactor)

📊 Changes

4 files changed (+124 additions, -79 deletions)

View changed files

📝 .github/autolabeler-config.json (+25 -32)
📝 .github/changelog-pr-config.json (+78 -42)
📝 .github/workflows/autolabeler.yml (+20 -4)
📝 .github/workflows/changelog-pr.yml (+1 -1)

📄 Description

✍️ Description

🔖 Autolabeler Improvements

  • Proper handling of 🌍 Website update: Skips applying json/website if the PR is already tagged with update script and a core label like bugfix, feature, or refactor.
  • 🧠 Robust fallback logic: Ensures that needs triage is only applied when no relevant labels are derived from either file changes or the PR template.
  • 🔐 Failsafe for empty PR templates: Prevents crash by falling back to "" when pull_request.body is null or missing.
  • 📥 Manual execution support: Allows the autolabeler to be triggered via workflow_dispatch.

📝 Changelog Generator Enhancements

  • 🧹 Unified label usage: Ensures that the "📝 Documentation" category uses the correct maintenance label.
  • 🧩 Removed fallback-generated subCategories: Relies only on changelog-pr-config.json for changelog structure.

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/5868 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `fix_autolabler` --- ### 📝 Commits (1) - [`57e1912`](https://github.com/community-scripts/ProxmoxVE/commit/57e1912bb3e68eea11e080c0d12c470f1c5b46f4) Github: AutoLabler | ChangeLog (Refactor) ### 📊 Changes **4 files changed** (+124 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `.github/autolabeler-config.json` (+25 -32) 📝 `.github/changelog-pr-config.json` (+78 -42) 📝 `.github/workflows/autolabeler.yml` (+20 -4) 📝 `.github/workflows/changelog-pr.yml` (+1 -1) </details> ### 📄 Description ## ✍️ Description ### 🔖 Autolabeler Improvements - ✅ **Proper handling of `🌍 Website update`**: Skips applying `json`/`website` if the PR is already tagged with `update script` and a core label like `bugfix`, `feature`, or `refactor`. - 🧠 **Robust fallback logic**: Ensures that `needs triage` is only applied when no relevant labels are derived from either file changes or the PR template. - 🔐 **Failsafe for empty PR templates**: Prevents crash by falling back to `""` when `pull_request.body` is null or missing. - 📥 **Manual execution support**: Allows the autolabeler to be triggered via `workflow_dispatch`. ### 📝 Changelog Generator Enhancements - 🧹 **Unified label usage**: Ensures that the "📝 Documentation" category uses the correct `maintenance` label. - 🧩 **Removed fallback-generated subCategories**: Relies only on `changelog-pr-config.json` for changelog structure. ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 07:09:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#6169