Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix check-labels action removing labels #1200

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/actions/check-labels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ 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: ['no-changelog'] });
await updateLabels({ octokit, labels: [...labels, 'no-changelog'] });
} else {
console.log('Detected renovate PR with file changes. Applying `patch` label.');
await updateLabels({ octokit, labels: ['patch'] });
await updateLabels({ octokit, labels: [...labels, 'patch'] });
}
}
core.setOutput('canMerge', 'Renovate PR');
return;
}

if (isMissingSemverLabel) {
Expand Down
Loading