JasonEtco / create-an-issue

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

issue title cannot have a leading backtick #155

Open pmeier opened 1 year ago

pmeier commented 1 year ago

Example run: https://github.com/pmeier/light-the-torch/actions/runs/4793682109/jobs/8526354021

I've used backticks in the middle of the title before and they worked fine. But a leading one seems to cause trouble.

Run JasonEtco/create-an-issue@v2
⬤  debug     Reading from file .github/issue-templates/packages-out-of-sync.md
Error: end of the stream or a document separator is expected at line 1, column 8:
    title: `light-the-torch` is out of sync ... 
           ^
✖  fatal     YAMLException: end of the stream or a document separator is expected at line 1, column 8: 
    title: `light-the-torch` is out of sync ... 
           ^
    at generateError (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:11511:10)
    at throwError (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:11517:9)
    at readDocument (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:12889:5)
    at loadDocuments (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:12932:5)
    at load (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:12958:19)
    at safeLoad (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:12981:10)
    at parse (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:10282:20)
    at extractor (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:10244:12)
    at createAnIssue (/home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:41245:76)