generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 28
feat: add support for cloning GitLab repositories #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2b49374
chore: modify git service schema in defaults.ini
nathanwn 0ed51fd
chore: implement load config methods for git service classes
nathanwn eea81c7
chore: fix broken functions and tests due to new ini config schema
nathanwn 185483e
chore: generalize git service detection logic to use git service domain
nathanwn e2a1c32
chore: implement logic to clone repositories
nathanwn fee0da3
chore: remove unnecessary repo availability check before clone
nathanwn 2b5f2e1
chore: propagate GitLab access token env vars into the container
nathanwn 750b054
chore: add instructing comments about access token in default ini file
nathanwn c96e6b7
chore: remove unnecessary str type cast when logging
nathanwn b42a9e3
chore: fix typo in docstring
nathanwn dbb2748
chore: git integration test for cloning a public GitLab repository
nathanwn f5a4bd0
chore: adjust error messages and logging
nathanwn 4712b13
chore: revert and add log messages for cloning repos
nathanwn 4e41752
chore: minor fix for BaseGitService docstring
nathanwn 185f587
chore: construct GitLab clone URL with urllib utilities
nathanwn 2e607da
chore: add tests for function to get allowed git service domains
nathanwn 407eebb
chore: add error handling for urlparse call
nathanwn 9425dfe
chore: modify git_url tests to interact directly with the global defa…
nathanwn 965282f
chore: minor literal string styling fix
nathanwn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Copyright (c) 2022 - 2022, Oracle and/or its affiliates. All rights reserved. | ||
# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/. | ||
|
||
"""The git_service package contains the supported git services for Macaron.""" | ||
|
||
from .base_git_service import BaseGitService | ||
from .bitbucket import BitBucket | ||
from .github import GitHub | ||
from .gitlab import GitLab | ||
from .gitlab import PrivateGitLab, PublicGitLab | ||
|
||
# The list of supported git services. The order of the list determines the order | ||
# in which each git service is checked against the target repository. | ||
GIT_SERVICES: list[BaseGitService] = [GitHub(), GitLab(), BitBucket()] | ||
GIT_SERVICES: list[BaseGitService] = [GitHub(), PublicGitLab(), PrivateGitLab(), BitBucket()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.