Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Support for International Charaters #95

@oldiron-ho

Description

@oldiron-ho

When using Korean characters label, removing labels make some error.
It seems that international charaters in a label cause encoding problem.

git-labelmaker/bin/index.js

Lines 123 to 125 in dbe537f

if (confirmRemove.youSure) {
return gitLabel.remove(configGitLabel(repo, token), answers.removals);
}

Above code should be

          if (confirmRemove.youSure) {
             answers.removals.forEach(function(removal) {
                removal.name=encodeURIComponent(removal.name);
             })  
            return gitLabel.remove(configGitLabel(repo, token), answers.removals); 
         } 

I confirmed that the problem was resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions