Skip to content

Commit

Permalink
Overwite target_project_name for ConfigureRepositoriesStep
Browse files Browse the repository at this point in the history
As the method 'target_project_name' is based on the
'source_project_name' only for BranchPackageStep and LinkPackageStep but
not for ConfigureRepositories, the method is now re-defined inside
ConfigureRepositoriesStep.
  • Loading branch information
saraycp committed Sep 16, 2021
1 parent 371a988 commit 5f3dd09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/models/workflow/step/configure_repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def project_name
step_instructions[:project]
end

def target_project_name
"home:#{@token.user.login}:#{project_name}:PR-#{scm_webhook.payload[:pr_number]}"
end

private

def validate_repositories
Expand Down

0 comments on commit 5f3dd09

Please sign in to comment.