create-issue-from-file icon indicating copy to clipboard operation
create-issue-from-file copied to clipboard

Consider auto-detecting title from <h1>?

Open jcbhmr opened this issue 2 years ago • 2 comments
trafficstars

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

image

if this is out-of-scope, don't worry! 😊 ill live. thanks for making this action in the first place! ❤️

jcbhmr avatar May 03 '23 23:05 jcbhmr

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.

peter-evans avatar May 08 '23 00:05 peter-evans

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

jcbhmr avatar May 08 '23 01:05 jcbhmr