JasonEtco / create-an-issue

A GitHub Action for creating a new issue from a template file.
MIT License
258 stars 83 forks source link

Interpolation not supported in front-matter #164

Open jnewland opened 11 months ago

jnewland commented 11 months ago
Run JasonEtco/create-an-issue@v2
⬤  debug     Reading from file .github/workflows/workflow-failure-issues-issue-template.md
Error: can not read a block mapping entry; a multiline key may not be an implicit key at line 2, column 7:
    labels: {{ env.LABELS }}, default-template
          ^
✖  fatal     YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 2, column 7: 
    labels: {{ env.LABELS }}, default-template

I'm pairing this workflow with another bit of logic to close the issue it opens in certain conditions. Given this I'd like to configure the set of labels on the issue at the workflow level so I can use it for both the issue creation and for the lookup/close operation.

I'd love to contribute a PR if you'd be open to a fix for this.

fieldsfarmer commented 5 months ago

@jnewland Have you tested your code? I patched your PR and created a action fieldsfarmer/create-an-issue@v0.0.3 but it did not work