File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,5 +105,5 @@ jobs:
105
105
- uses : actions/checkout@v2
106
106
with :
107
107
fetch-depth : 2
108
- # GH Actions squash all commits into one , HEAD^ refers to the base branch.
108
+ # GH Actions squashes all PR commits , HEAD^ refers to the base branch.
109
109
- run : git diff HEAD^ HEAD -G"pr-url:" -- "*.md" | ./tools/lint-pr-url.mjs ${{ github.event.pull_request.html_url }}
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ const fileDelimiter = /^\+\+\+ b\/(.+\.md)$/;
13
13
const changeDelimiter = / ^ @ @ - \d + , \d + \+ ( \d + ) , \d + @ @ / ;
14
14
const prUrlDefinition = / ^ \+ \s + p r - u r l : ( .+ ) $ / ;
15
15
16
+ const validatePrUrl = ( url ) => url == null || url === expectedPrUrl ;
17
+
16
18
let currentFile ;
17
19
let currentLine ;
18
20
19
- const validatePrUrl = ( url ) => url == null || url === expectedPrUrl ;
20
-
21
21
const diff = readline . createInterface ( { input : process . stdin } ) ;
22
22
for await ( const line of diff ) {
23
23
if ( fileDelimiter . test ( line ) ) {
You can’t perform that action at this time.
0 commit comments