File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
.github/actions/pr-labels/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,13 @@ async function run() {
7171 ) . data . map ( ( label ) => label . name ) ;
7272 core . debug ( `Found ${ labels . length } labels: ${ labels . join ( ", " ) } ` ) ;
7373
74- // If labels already exist, skip adding new labels
75- if ( labels . length > 0 ) {
76- core . info ( "Labels already exist on PR, skipping adding new labels" ) ;
74+ // Check if any type:: labels already exist
75+ const existingTypeLabels = labels . filter ( label => label . startsWith ( "type::" ) ) ;
76+ core . debug ( `Found ${ existingTypeLabels . length } type labels: ${ existingTypeLabels . join ( ", " ) } ` ) ;
77+
78+ // If type labels already exist, skip adding new labels
79+ if ( existingTypeLabels . length > 0 ) {
80+ core . info ( "Type labels already exist on PR, skipping adding new labels" ) ;
7781 } else {
7882 // Get PR details to check for semantic commit messages
7983 await addSemanticLabels ( octokit , labels ) ;
You can’t perform that action at this time.
0 commit comments