Skip to content

Commit

Permalink
Upgrade after conflict resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvankodev committed Sep 12, 2023
1 parent 08977ef commit f54e957
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
const token = core.getInput('repo-token', { required: true });
const customKeywords = getInputAsArray('custom-keywords', { required: false });
const labelsToCopy = getInputAsArray('labels-to-copy', { required: false });
const labelsToInclude = getInputAsArray('labels-to-include', { required: false });
const labelsToExclude = getInputAsArray('labels-to-exclude', { required: false });
const fromTitle = getBooleanInput('from-title', { required: false });
const issueNumber = getIssueNumber(core.getInput('issue-number', { required: false }));
Expand Down Expand Up @@ -91,12 +91,12 @@ function run() {
const issueLabels = response.data.map((label) => label.name);
// Filter out unwanted labels and keep only the ones that are needed
const filteredLabels = issueLabels.filter(label => {
if (labelsToCopy.length > 0 && !labelsToCopy.includes(label)) {
// Label not in labelsToCopy
if (labelsToInclude.length > 0 && !labelsToInclude.includes(label)) {
// Label not in `labelsToInclude`
return false;
}
if (labelsToExclude.length > 0 && labelsToExclude.includes(label)) {
// Label in labelsToExclude
// Label in `labelsToExclude`
return false;
}
return true;
Expand Down
3 changes: 1 addition & 2 deletions dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f54e957

Please sign in to comment.