This repository was archived by the owner on Sep 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
codeql-learninglab-check/package/src Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,8 @@ function isConfig(config: any): config is Config {
141
141
* the first time, and so there is no "previous ref"), then comparing this
142
142
* branch to the default branch of a repo will probably give the most
143
143
* accurate results.
144
- * 4. Finally, if all else fails (e.g. the push was the initial push to the
145
- * default branch of the repo), then we should just run every query we
146
- * recognize (as if RUN_ALL was true). We do this by setting
147
- * unableToGetChangedQueries to true.
148
- * 5. In this last case, if there is no changed query in the repo
149
- * then it means that this is just the course creation first workflow trigger.
144
+ * 4. Finally, if all else fails we set unableToGetChangedQueries to true.
145
+ * It means that this is just the course creation first workflow trigger.
150
146
*/
151
147
152
148
/*
@@ -278,7 +274,7 @@ function isConfig(config: any): config is Config {
278
274
for ( const query of Object . keys ( config . expectedResults ) ) {
279
275
const exists = await access ( query , fs . constants . R_OK ) . then ( ( ) => true , ( ) => false ) ;
280
276
// Run the query if either it's changed, or runAll is true
281
- if ( exists && ( RUN_ALL || unableToGetChangedQueries || queriesChanged . has ( query ) ) || ( QUERY_PATTERN && QUERY_PATTERN . test ( query ) ) ) {
277
+ if ( exists && ( RUN_ALL || queriesChanged . has ( query ) ) || ( QUERY_PATTERN && QUERY_PATTERN . test ( query ) ) ) {
282
278
queriesToRun . push ( query ) ;
283
279
}
284
280
}
You can’t perform that action at this time.
0 commit comments