@@ -60,7 +60,7 @@ function run() {
6060 return __awaiter(this, void 0, void 0, function* () {
6161 const token = core.getInput('repo-token', { required: true });
6262 const customKeywords = getInputAsArray('custom-keywords', { required: false });
63- const labelsToCopy = getInputAsArray('labels-to-copy ', { required: false });
63+ const labelsToInclude = getInputAsArray('labels-to-include ', { required: false });
6464 const labelsToExclude = getInputAsArray('labels-to-exclude', { required: false });
6565 const fromTitle = getBooleanInput('from-title', { required: false });
6666 const issueNumber = getIssueNumber(core.getInput('issue-number', { required: false }));
@@ -91,12 +91,12 @@ function run() {
9191 const issueLabels = response.data.map((label) => label.name);
9292 // Filter out unwanted labels and keep only the ones that are needed
9393 const filteredLabels = issueLabels.filter(label => {
94- if (labelsToCopy .length > 0 && !labelsToCopy .includes(label)) {
95- // Label not in labelsToCopy
94+ if (labelsToInclude .length > 0 && !labelsToInclude .includes(label)) {
95+ // Label not in `labelsToInclude`
9696 return false;
9797 }
9898 if (labelsToExclude.length > 0 && labelsToExclude.includes(label)) {
99- // Label in labelsToExclude
99+ // Label in ` labelsToExclude`
100100 return false;
101101 }
102102 return true;
0 commit comments