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

Issue: Labels with spaces trigger wrong updates #17

Open
2 tasks done
Sploder12 opened this issue Nov 25, 2024 · 0 comments · May be fixed by #18
Open
2 tasks done

Issue: Labels with spaces trigger wrong updates #17

Sploder12 opened this issue Nov 25, 2024 · 0 comments · May be fixed by #18
Labels
bug Something isn't working

Comments

@Sploder12
Copy link

Sploder12 commented Nov 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues and found none that matched mine

Describe the issue

Labeling an issue with jira and then labeling/unlabeling the issue with a different label that contains a space will cause Jira to create/delete the ticket as if the jira label was added/removed. This leads to duplicated issues or deletion when it isn't desired.

Steps to reproduce it

  1. Add some label with a space and the jira label to issue
  2. See Issue added to Jira correctly
  3. Remove some label with a space
  4. See Jira delete the issue
  5. Re-add some label with a space
  6. See Jira recreate the issue

Relevant information

Unlabel actions logs have /home/runner/work/_temp/<hash>.sh: line 26: [: too many arguments which references if [ unlabeled == "unlabeled" ] && [ needs triage == jira ]; then. It appears the issue is caused by the expansion on the label name not being quoted.

Double check your logs

  • I have redacted any sensitive information from the logs
@Sploder12 Sploder12 added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant