commit | 790029b80da327ded8d99edf0603c76b327c19a9 | [log] [tgz] |
---|---|---|
author | plainheart <yhen@all-my-life.cn> | Wed May 19 15:31:34 2021 +0800 |
committer | plainheart <yhen@all-my-life.cn> | Wed May 19 15:31:44 2021 +0800 |
tree | 468091e597757d348f8333c7093416bc65645685 | |
parent | 9112c8c4f56f43d8de13a19637d824b2883339f8 [diff] |
fix: remove magic strings.
diff --git a/index.js b/index.js index 79a7173..d7082d8 100644 --- a/index.js +++ b/index.js
@@ -83,9 +83,9 @@ case labelText.MISSING_DEMO: return Promise.all([ commentIssue(context, replaceAt(text.MISSING_DEMO)), - getRemoveLabel(context, 'waiting-for: community'), + getRemoveLabel(context, labelText.WAITING_FOR_COMMUNITY), context.octokit.issues.addLabels(context.issue({ - labels: ['waiting-for: author'] + labels: [labelText.WAITING_FOR_AUTHOR] })) ]);