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
Good day,
thank you for your action. It's working like a charm but I'm struggling to achieve something that seemed quite simple on the surface: adding labels dynamically based on the PR's specific attributes.
What you want to add
I would like to be able to input more than one label dynamically using an environment variable. Something similar to the following:
This feature will allow me to add and remove labels from an array based on conditional logic ran before the step that uses your action. Right now, the labels that I add are based on the content of a folder and are the names of the sub-folders.
PS: I looked at your source code and I saw that you're splitting the input by \n and then you're adding the result as labels. This seemed very simple to replicate in my input but I failed numerous times. The code that, I think, was closest to the solution was the following:
Good day,
thank you for your action. It's working like a charm but I'm struggling to achieve something that seemed quite simple on the surface: adding labels dynamically based on the PR's specific attributes.
What you want to add
I would like to be able to input more than one label dynamically using an environment variable. Something similar to the following:
Why this is needed
This feature will allow me to add and remove labels from an array based on conditional logic ran before the step that uses your action. Right now, the labels that I add are based on the content of a folder and are the names of the sub-folders.
PS: I looked at your source code and I saw that you're splitting the input by
\n
and then you're adding the result as labels. This seemed very simple to replicate in my input but I failed numerous times. The code that, I think, was closest to the solution was the following:where the output was
folderone\nfoldertwo\n
and the result was the addition of one labelfolderone\nfoldertwo\n
.Thank you again for your awesome job.
The text was updated successfully, but these errors were encountered: