File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ async function run() {
102
102
) ;
103
103
}
104
104
105
+ if ( config . user . skipCommitsWithoutPullRequest && ! pr ) {
106
+ continue ;
107
+ }
108
+
105
109
if ( pr ?. labels . some ( ( l ) => config . user . skipLabels ?. includes ( l ) ) ) {
106
110
console . log (
107
111
c . yellow ( "# Skipping commit / PR by label:" ) ,
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export const defaultUserConfig: UserConfig = {
62
62
} ,
63
63
] ,
64
64
skipLabels : [ "skip-release" , "skip-changelog" ] ,
65
+ skipCommitsWithoutPullRequest : true ,
65
66
} ;
66
67
67
68
export async function getConfig ( ) : Promise < Config > {
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ export type UserConfig = Partial<{
97
97
} [ ] ;
98
98
99
99
skipLabels : string [ ] ;
100
+
101
+ skipCommitsWithoutPullRequest : boolean ;
100
102
} > ;
101
103
102
104
export const defineConfig = ( config : UserConfig ) => config ;
You can’t perform that action at this time.
0 commit comments