Skip to content

Commit

Permalink
chore: remove BUMP_COMMIT_PATTERN (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Oct 15, 2024
1 parent ba0c253 commit feb45bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const AUDIT_POST_CHANNEL = process.env.AUDIT_POST_CHANNEL || '#wg-releases';

const RELEASE_BRANCH_PATTERN = /^(\d)+-(?:(?:[0-9]+-x$)|(?:x+-y$))$/;

const BUMP_COMMIT_PATTERN = /Bump v(\d)+.(\d)+.(\d)+(-(beta|nightly)(.\d+))?/;

const MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24;

const UNRELEASED_DAYS_WARN_THRESHOLD = 8;
Expand All @@ -24,7 +22,6 @@ module.exports = {
ACTION_TYPE,
AUDIT_POST_CHANNEL,
BLOCKS_RELEASE_LABEL,
BUMP_COMMIT_PATTERN,
NUM_SUPPORTED_VERSIONS,
ORGANIZATION_NAME,
RELEASE_BRANCH_PATTERN,
Expand Down
4 changes: 0 additions & 4 deletions utils/unreleased-commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const {
} = require('@electron/github-app-auth');

const {
BUMP_COMMIT_PATTERN,
ORGANIZATION_NAME,
REPO_NAME,
UNRELEASED_GITHUB_APP_CREDS,
Expand Down Expand Up @@ -88,9 +87,6 @@ async function fetchUnreleasedCommits(branch) {
}
}

// Filter out bump commits.
if (BUMP_COMMIT_PATTERN.test(payload.commit.message)) continue;

unreleased.push(payload);
}
if (foundLastRelease) {
Expand Down

0 comments on commit feb45bc

Please sign in to comment.