Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Issue: Labels with spaces trigger wrong updates #17

@Sploder12

Description

@Sploder12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions