File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
github-nfbot/GitHub-nfbot Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -1006,7 +1006,17 @@ private static async Task<StartReleaseResult> ProcessCommandAsync(dynamic payloa
10061006 }
10071007 else if ( command . EndsWith ( "updatedependencies" ) )
10081008 {
1009- return await UpdateDependenciesAsync ( payload . repository . url . ToString ( ) , log ) ;
1009+ return await UpdateDependenciesAsync (
1010+ payload . repository . url . ToString ( ) ,
1011+ false ,
1012+ log ) ;
1013+ }
1014+ else if ( command . EndsWith ( "updatedependencies develop" ) )
1015+ {
1016+ return await UpdateDependenciesAsync (
1017+ payload . repository . url . ToString ( ) ,
1018+ true ,
1019+ log ) ;
10101020 }
10111021 else if ( command . StartsWith ( "runpipeline" ) )
10121022 {
@@ -1189,12 +1199,17 @@ private static async Task<StartReleaseResult> UpdateDependentsAsync(string repos
11891199 return StartReleaseResult . Failed ;
11901200 }
11911201
1192- private static async Task < StartReleaseResult > UpdateDependenciesAsync ( string repoUrl , ILogger log )
1202+ private static async Task < StartReleaseResult > UpdateDependenciesAsync (
1203+ string repoUrl ,
1204+ bool isDevelopBranch ,
1205+ ILogger log )
11931206 {
1194- string requestContent = $ "{{ \" event_type\" : \" update-dependencies\" }}";
1207+ const string _regularUpdate = "update-dependencies" ;
1208+ const string _developUpdate = "update-dependencies-develop" ;
11951209
1210+ string requestContent = $ "{{ \" event_type\" : \" { ( isDevelopBranch ? _developUpdate : _regularUpdate ) } \" }}";
11961211
1197- var result = await SendGitHubRequest (
1212+ int result = await SendGitHubRequest (
11981213 repoUrl + "/dispatches" ,
11991214 requestContent ,
12001215 log ,
You can’t perform that action at this time.
0 commit comments