create-issue-from-file
create-issue-from-file copied to clipboard
Consider auto-detecting title from <h1>?
Would it be possible to auto-detect a header from a # title like in the example https://github.com/peter-evans/create-issue-from-file/blob/main/example-content/output.md so that i don't need to specify a title: param in the action itself?
in my usecase for this, the entire file is autogenerated, and i want to use the <h1> that's in the file as the issue title

if this is out-of-scope, don't worry! 😊 ill live. thanks for making this action in the first place! ❤️
Hi @jcbhmr
Interesting feature idea. I wouldn't be opposed to adding this because it doesn't break behaviour for existing users. The feature would only be active if the title input wasn't supplied.
Just one thing I want to clarify, are you using markdown like # title or html tags like <h1> in your issue body? If I add this feature I would prefer to just support markdown.
i'm using plain old markdown 😉
example:
# Uncaught TypeError: f is not defined
~~~
<stacktrace here>
~~~
reported by gh action test runner test.yml
date ...
on blah blah OS using Node v18.whatever
that's the gist of it