[PR #3999] [MERGED] Fix Workflow to close discussions #4671

Open
opened 2025-11-20 06:11:08 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/3999
Author: @michelroegl-brunner
Created: 4/23/2025
Status: Merged
Merged: 4/23/2025
Merged by: @MickLesk

Base: mainHead: fix_close_discussion_wf


📝 Commits (2)

  • 9b4d490 Rework Discussion close WF
  • a1afa38 Rework Discussion close WF

📊 Changes

1 file changed (+72 additions, -35 deletions)

View changed files

📝 .github/workflows/close-discussion.yml (+72 -35)

📄 Description

✍️ Description

This PR reworks the Discussion Closing WF as it failed when the PR comes frome a forked Repo.
We change things around to not trigger on PR closed and mybee we run in the context of the forked repo. Instead we run on a psuh to main, check if there is a PR linked with this commit and then check for the discussion to close.

Link: #

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/3999 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 4/23/2025 **Status:** ✅ Merged **Merged:** 4/23/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `fix_close_discussion_wf` --- ### 📝 Commits (2) - [`9b4d490`](https://github.com/community-scripts/ProxmoxVE/commit/9b4d49024be7b40da5255752cb9a9e06fc91af92) Rework Discussion close WF - [`a1afa38`](https://github.com/community-scripts/ProxmoxVE/commit/a1afa384ecba590d3926453b364c61ef20904563) Rework Discussion close WF ### 📊 Changes **1 file changed** (+72 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/close-discussion.yml` (+72 -35) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description This PR reworks the Discussion Closing WF as it failed when the PR comes frome a forked Repo. We change things around to not trigger on PR closed and mybee we run in the context of the forked repo. Instead we run on a psuh to main, check if there is a PR linked with this commit and then check for the discussion to close. ## 🔗 Related PR / Issue Link: # ## ✅ 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) - [X] 🐞 **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. --- <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 06:11:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#4671