Fix: Resolve workflow failures and improve auto-release handling#49
Merged
Conversation
- Fix function spacing in anonymous functions (add space after FUNCTION keyword) - Fix array alignment and formatting issues - Fix increment operators (use pre-increment instead of post-increment) - Add proper nonce verification checks - Add translator comments for internationalization - Fix whitespace and formatting issues Reduces PHPCS errors from 49 to 5 in main plugin file and improves overall code quality.
…enhancements-v1.2.73
…hancements-v1.2.73
- Fix function call formatting for error_log and sprintf calls - Add translator comments for all sprintf calls with placeholders - Improve code formatting and compliance with WordPress standards
- Fix escaping issues in sprintf calls by using absint() for integer values - Auto-fix 6 alignment issues with PHPCBF - Reduce module-admin.php errors from 2 to 0 (100% error reduction) - Maintain all functionality while improving code quality
- ✅ All PHPCS errors resolved (0 errors in main files) - ✅ Editor role access enhancement working perfectly - ✅ QR code functionality tested and verified - ✅ Role-based permissions implemented correctly - ✅ Comprehensive MCP Playwright testing completed - ✅ Screenshot documentation added for editor role access - ✅ Code quality improvements with WordPress standards compliance - ✅ Branch protection and development workflow implemented This PR combines all enhancements from PRs 43-45 into a single comprehensive release with full CI validation and testing verification.
- Added missing 'id: create-release' to the Create GitHub release step - This fixes the reference error in the upload-release-asset step - Resolves workflow failures in the auto-release stage
- Enhanced release existence check with clear status messages - Added informative output when release already exists - Improved user guidance for creating new releases - Ensured workflow shows as successful even when release exists - Added emojis and better formatting for workflow output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes critical issues in the GitHub Actions workflows and improves the auto-release workflow to handle existing releases gracefully.
Changes Made
🔧 Auto-Release Workflow Fixes
id: create-releaseto the "Create GitHub release" step🎯 Graceful Release Handling
🛡️ Protected Branch Handling
Root Cause Analysis
The workflows were failing because:
idattributeTesting
Impact
Files Changed
.github/workflows/auto-release.yml- Fixed step ID and improved graceful handling.github/workflows/update-todo-index.yml- Added protected branch handlingNext Steps