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

Read all of the labels #31

Open
vheinila opened this issue Jan 2, 2025 · 2 comments
Open

Read all of the labels #31

vheinila opened this issue Jan 2, 2025 · 2 comments

Comments

@vheinila
Copy link

vheinila commented Jan 2, 2025

I noticed that this action only reads the first label on the list. If I have multiple labels on the issue this action does not work.

Is there currently a way to make it read all of the labels the issue has?

@koppor
Copy link
Collaborator

koppor commented Feb 25, 2025

Please refine.

The JavaScript code uses some, which is a hint on a set:

if (!issue.labels.some((label) => TARGET_LABELS.includes(label.name))) {

@koppor
Copy link
Collaborator

koppor commented Mar 11, 2025

@vheinila Maybe you encountered the issue that the action reads the labels when the workflow was triggered - and not the labels when the action was triggered. This is #35 and hopefully fixed at #37.

Feel free to try it out

-        uses: m7kvqbe1/github-action-move-issues@main
+        uses: koppor/github-action-move-issues@fix-35

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