Skip to content

Conversation

@sunker
Copy link
Contributor

@sunker sunker commented Nov 6, 2025

What this PR does / why we need it:

GitHub Actions workflow templates in packages/create-plugin/templates/github/workflows/ use Handlebars syntax, which causes the standard github-actions manager to fail with yaml parsing errors. We attempted to use managerFilePatterns to limit the github-actions manager scope, but this doesn't solve the underlying issue (the manager still tries to parse the templates as valid yaml).

This PR adds a custom regex manager to extract gh action dependencies from the template files, and adds a separate package rule so workflow templates and repository workflows can have different labels.

I haven't been able to verify that this works, so for now I've disabled auto merging for both of these rules.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs.

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot moved this from 📬 Triage to 🔬 In review in Plugins Platform / Grafana Community Nov 6, 2025
@sunker sunker added the no-changelog Don't include in changelog and version calculations label Nov 10, 2025
@sunker sunker self-assigned this Nov 11, 2025
@sunker sunker force-pushed the chore/workflow-templates-custom-manager branch from 1cb678a to 37f78e3 Compare November 11, 2025 13:28
@sunker sunker marked this pull request as ready for review November 11, 2025 13:28
@sunker sunker requested review from a team as code owners November 11, 2025 13:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses YAML parsing errors in Renovate by replacing the extended github-actions manager configuration with a custom regex manager for workflow templates that contain Handlebars syntax. The change enables Renovate to extract GitHub Actions dependencies from template files without attempting to parse them as valid YAML.

  • Removed the github-actions manager extension that was causing YAML parsing errors on Handlebars templates
  • Added a custom regex manager to extract GitHub Actions dependencies from workflow template files using pattern matching
  • Created separate package rules for template workflows and repository workflows with distinct labels and reviewers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sunker sunker requested a review from jackw November 11, 2025 14:00
@sunker
Copy link
Contributor Author

sunker commented Nov 13, 2025

Closing in favour of #2297

@sunker sunker closed this Nov 13, 2025
@github-project-automation github-project-automation bot moved this from 🔬 In review to 🚀 Shipped in Plugins Platform / Grafana Community Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Don't include in changelog and version calculations

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

2 participants