You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋I want to start off by saying thank you for writing this action 💖 It's super helpful!
BUT, I found a bug when it comes to adding assignees and labels. Although the frontmatter section of issue templates appears to want a real yaml format, listing the assignees and labels as an array instead of a csv string breaks the template and doesn't automatically add the assignees and labels. Also, when you use the "setup templates" wizard from the settings page in the repo, it will generate a file with csv strings, so I had to modify my template to work with this action
Hi @janester! Thank you for the kind words, and for the very helpful details here 🙏 Unfortunately, this is born of a difference between the GitHub.com way of doing things and the GitHub API 😬 From the Issues API docs:
So I think a good solution would be to use an array if its already an array, or do like you suggested and .split(','). Will have a PR shortly! ✨
👋I want to start off by saying thank you for writing this action 💖 It's super helpful!
BUT, I found a bug when it comes to adding assignees and labels. Although the frontmatter section of issue templates appears to want a real yaml format, listing the assignees and labels as an array instead of a csv string breaks the template and doesn't automatically add the assignees and labels. Also, when you use the "setup templates" wizard from the settings page in the repo, it will generate a file with csv strings, so I had to modify my template to work with this action
when my action ran with the old csv format, I got this error
and then I checked your tests and saw that you are expecting yaml arrays
https://github.com/JasonEtco/create-an-issue/blob/57549108a54d43505e2f3b533685e53ed6f19300/tests/fixtures/.github/kitchen-sink.md
But I think this can be easily fixed by just doing a
.split(",")
herecreate-an-issue/index.js
Lines 36 to 37 in 5754910
and updating the tests to expect csv strings
cc @JasonEtco
The text was updated successfully, but these errors were encountered: