Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed Oct 10, 2024
1 parent 1fdd62a commit 09069c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/actions/check-labels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ async function run() {
const hasOneSemverLabel = attachedSemverLabels.length === 1;
const hasReleaseLabel = labelNames.includes('release');
const userName = pull_request.user.login;
const branchName = pull_request.head.ref;

const files = await getPullRequestFiles({ octokit });


console.log(inspect({ userName, branchName, files }, { depth: null, colors: true }));
const isOnlyLockFileChanged = files.every((file) => file.filename.endsWith('package-lock.json'));
if (userName === 'jackw' && isOnlyLockFileChanged) {
console.log('Dependabot PR with only lock file changes. Skipping semver label check.');
// console.log(inspect({ userName, isOnlyLockFileChanged, files }, { depth: null, colors: true }));
}

if (isMissingSemverLabel) {
let errorMsg = [
Expand Down

0 comments on commit 09069c1

Please sign in to comment.