Skip to content
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
14 changes: 7 additions & 7 deletions .github/workflows/pr-description-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
const pr = context.payload.pull_request;
const body = pr.body || '';

// List of users to skip description validation
// List of user patterns to skip description validation
// This should be automations where we don't care that much about the description format
const skipUsersPrefixes = [
'unity-renovate',
'svc-'
const skipUserPatterns = [
/^unity-renovate/,
/(^|-)svc(-|$)/
];
// If PR author is in the skip list, exit early

// If PR author matches the skip list, exit early
const author = pr.user.login;
console.log(`PR author: ${author}`);
if (skipUsersPrefixes.some(prefix => author.startsWith(prefix))) {
if (skipUserPatterns.some(pattern => pattern.test(author))) {
console.log(`Skipping PR description check for user: ${author}`);
return;
}
Expand Down
Loading