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

Consider auto-detecting title from <h1>? #1019

Open
jcbhmr opened this issue May 3, 2023 · 2 comments
Open

Consider auto-detecting title from <h1>? #1019

jcbhmr opened this issue May 3, 2023 · 2 comments

Comments

@jcbhmr
Copy link

jcbhmr commented May 3, 2023

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 jcbhmr changed the title Consider auto-detecting Consider auto-detecting title from <h1>? May 3, 2023
@peter-evans
Copy link
Owner

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.

@jcbhmr
Copy link
Author

jcbhmr commented May 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants