@@ -17,6 +17,7 @@ static void handle_newpr_options(struct Prompt *p);
1717static void set_destination_and_source (struct Prompt * p , char * dest_src );
1818static void set_template (struct Prompt * p , char * template );
1919static void set_title (struct Prompt * p , char * title );
20+ static void set_assignees (struct Prompt * p , char * assignees );
2021static void assure_query_param_support (struct Prompt * p );
2122static void warn_missing_branches (struct Prompt * p );
2223
@@ -210,6 +211,8 @@ static void handle_newpr_options(struct Prompt *p) {
210211 set_template (p , p -> opts [i ].value );
211212 } else if (strcmp (p -> opts [i ].key , "--title" ) == 0 ) {
212213 set_title (p , p -> opts [i ].value );
214+ } else if (strcmp (p -> opts [i ].key , "--assignees" ) == 0 ) {
215+ set_assignees (p , p -> opts [i ].value );
213216 }
214217 }
215218
@@ -246,6 +249,13 @@ static void set_title(struct Prompt *p, char *title) {
246249 strcat (p -> instruction , title );
247250}
248251
252+ static void set_assignees (struct Prompt * p , char * assignees ) {
253+ assure_query_param_support (p );
254+
255+ strcat (p -> instruction , "&assignees=" );
256+ strcat (p -> instruction , assignees );
257+ }
258+
249259static void assure_query_param_support (struct Prompt * p ) {
250260 if (strstr (p -> instruction , "?expand=1" ) != NULL ) return ;
251261
0 commit comments