Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/github_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _init_github_info(self):
' parameter to specify a token to use when writing to GitHub.'.format(config.PROJECT_NAME))

github_location = project_details['source']['location']
matches = re.search(r'github\.com\/(.+)\/(.+)\.git$', github_location)
matches = re.search(r'github\.com\/(.+)\/(.+)$', github_location)
if not matches:
raise RuntimeError(
'Could not parse GitHub owner/repo name from AWS CodeBuild project {}. location={}'.format(
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_github_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

GITHUB_OWNER = 'gh-user'
GITHUB_REPO = 'gh-repo'
GITHUB_LOCATION = 'https://github.com/{}/{}.git'.format(GITHUB_OWNER, GITHUB_REPO)
GITHUB_LOCATION = 'https://github.com/{}/{}'.format(GITHUB_OWNER, GITHUB_REPO)
CODEBUILD_GITHUB_TOKEN = 'shhh!!'
SECRETS_MANAGER_GITHUB_TOKEN = "don't tell!!"
BUILD_STATUS = 'SUCCEEDED'
Expand Down