Skip to content

Commit

Permalink
CI: Fix request error when setting labels (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw authored Oct 10, 2024
1 parent 6219593 commit 1788f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/check-labels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ async function run() {
const isOnlyLockFileChanged = files.every((file) => file.filename.endsWith('package-lock.json'));
if (isOnlyLockFileChanged) {
console.log('Detected renovate PR with only lock file changes. Applying `no-changelog` label.');
await updateLabels({ octokit, labels: [...labels, 'no-changelog'] });
await updateLabels({ octokit, labels: [...labelNames, 'no-changelog'] });
} else {
console.log('Detected renovate PR with file changes. Applying `patch` label.');
await updateLabels({ octokit, labels: [...labels, 'patch'] });
await updateLabels({ octokit, labels: [...labelNames, 'patch'] });
}
}
core.setOutput('canMerge', 'Renovate PR');
Expand Down

0 comments on commit 1788f7b

Please sign in to comment.