ci(commitlint): skip dependabot pull request branches
This commit is contained in:
1 parent
77e385ca0b
commit
0a7679893c
3 files changed
+20
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
// @vitest-environment node
|
||||
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
const workflowPath = fileURLToPath(
|
||||
new URL('../../.github/workflows/commitlint.yml', import.meta.url)
|
||||
).replace(/^\/([A-Za-z]:[\\/])/, '$1');
|
||||
const workflow = readFileSync(workflowPath, 'utf8');
|
||||
|
||||
describe('commitlint workflow', () => {
|
||||
it('skips validation for Dependabot PR branches', () => {
|
||||
expect(workflow).toContain("!startsWith(github.head_ref, 'dependabot/')");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user