You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(graphql): Add class method to create Gitlab connection from configuration files
This commit introduces a new class method from_config to the GraphQL class.
This method allows users to create a Gitlab connection object by reading configuration files. Users can specify the ID and paths of the configuration files, and the method will parse the connection information (e.g., URL, tokens, SSL verification, etc.) from the files to create a pre-configured Gitlab object.
This feature provides a more convenient and configurable way to manage GitLab connections, especially useful for scenarios requiring connections to multiple GitLab instances or aiming to separate connection configurations from the codebase.
Example usage (assuming the configuration file is gitlab.ini):
Python
gl = GraphQL.from_config(config_files=['gitlab.ini'])
Internally, this method utilizes gitlab.config.GitlabConfigParser to handle the parsing of the configuration files.
0 commit comments