File tree 1 file changed +7
-2
lines changed
.github/actions/clippy-annotation-reporter/src 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -181,13 +181,18 @@ impl Config {
181
181
182
182
// Set base branch (default to the PR's base branch or 'main')
183
183
// TODO: EK - FIX THIS CLONE
184
- let base_branch = args. clone ( ) . base_branch . unwrap_or_else ( || {
184
+ // TODO: EK - unclear if we even need command line args for this
185
+ let base_branch_arg = args. clone ( ) . base_branch . unwrap_or_default ( ) ;
186
+
187
+ let base_branch = if !base_branch_arg. is_empty ( ) {
188
+ format ! ( "origin/{}" , base_branch_arg)
189
+ } else {
185
190
if !github_ctx. base_ref . is_empty ( ) {
186
191
format ! ( "origin/{}" , github_ctx. base_ref)
187
192
} else {
188
193
"origin/main" . to_string ( )
189
194
}
190
- } ) ;
195
+ } ;
191
196
192
197
// Set head branch (PR's head branch)
193
198
let head_branch = if !github_ctx. head_ref . is_empty ( ) {
You can’t perform that action at this time.
0 commit comments