Skip to content

Commit

Permalink
feat: add GITHUB_APP_ENTERPRISE_ONLY to .env-example + fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardojdsilva87 committed Oct 24, 2024
1 parent 9972b96 commit 6c372ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
1 change: 1 addition & 0 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ UPDATE_EXISTING = ""
GH_APP_ID = ""
GH_INSTALLATION_ID = ""
GH_PRIVATE_KEY = ""
GITHUB_APP_ENTERPRISE_ONLY = ""
31 changes: 0 additions & 31 deletions test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,37 +501,6 @@ def test_get_env_vars_auth_with_github_app_installation(self):
)
def test_get_env_vars_auth_with_github_app_installation_missing_inputs(self):
"""Test that an error is raised there are missing inputs for the gh app"""
expected_result = (
"my_organization",
[],
12345,
None,
b"",
False,
"",
"",
[],
"pull",
"Enable Dependabot",
"Dependabot could be enabled for this repository. Please enable it by merging "
"this pull request so that we can keep our dependencies up to date and "
"secure.",
"",
False,
"Create/Update dependabot.yaml",
None,
False,
["internal", "private", "public"],
None, # batch_size
True, # enable_security_updates
[], # exempt_ecosystems
False, # update_existing
{}, # repo_specific_exemptions
"weekly", # schedule
"", # schedule_day
None, # team_name
[], # labels
)
with self.assertRaises(ValueError) as context_manager:
get_env_vars(True)
the_exception = context_manager.exception
Expand Down

0 comments on commit 6c372ac

Please sign in to comment.