Skip to content

Commit

Permalink
Allow skipping API calls for setting repos public
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperes committed Sep 12, 2024
1 parent 841a653 commit d88432b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/bec_proper_gen.erl
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,15 @@ config_keys() ->
config_value('project') -> bec_test_utils:bitbucket_project_key();
config_value('repo') -> bec_test_utils:bitbucket_repo_slug();
config_value('default-branch') -> branch_id();
config_value('public') -> bool();
config_value('public') ->
case os:getenv("BEC_SKIP_PUBLIC") of
Value when is_list(Value) ->
io:format(standard_error, "Skipping PUBLIC", []),
[];
false ->
io:format(standard_error, "Not skipping PUBLIC", []),
bool()
end;
config_value('users') -> ss_permission_users();
config_value('groups') -> ss_permission_groups();
config_value('branch-restrictions') -> ss_branch_restrictions();
Expand Down

0 comments on commit d88432b

Please sign in to comment.