Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor GHA to add labels to templates #1087

Open
5 tasks
t-will-gillis opened this issue Nov 3, 2024 · 0 comments
Open
5 tasks

Refactor GHA to add labels to templates #1087

t-will-gillis opened this issue Nov 3, 2024 · 0 comments

Comments

@t-will-gillis
Copy link
Owner

Overview

We are in the process of replacing all references to labels in our workflows from specifying a label name (labelName) to specifying a label key (labelKey) instead. (Refer to issues # 6454 and # 5205 for the history) We need to extend this to our templates as well.

Details

To accomplish this, the suggestion is to replace all labels with a single placeholder label on each template- Template Label or similar. When an issue is created from a template and this label is found, first it should be removed*** and then the correct labels should be applied to the template issue. ***Will need to confirm, but there is possibility that an infinite loop could occur unless the trigger label is removed immediately.

Action Items

  • In issue-trigger.tml provide a workflow step similar to "Add-Feature-Branch-Comment" that checks whether the label == 'Template Label' and if so, runs a js script to replace this label with the correct set.
  • Write the js script noted
  • Prepare a reference file for making the subsititions
  • Apply the correct labels
  • Perform a test in your own repo that demonstrates that there is no change to the GHA's functionality after making the edits.

Resources/Instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New Issue Approval
Development

No branches or pull requests

1 participant