prefect-gitlab 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. prefect_gitlab-0.3.1/PKG-INFO +50 -0
  2. prefect_gitlab-0.3.1/README.md +10 -0
  3. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/_version.py +2 -2
  4. prefect_gitlab-0.3.1/prefect_gitlab.egg-info/PKG-INFO +50 -0
  5. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/requires.txt +2 -2
  6. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/pyproject.toml +4 -9
  7. prefect_gitlab-0.3.0/PKG-INFO +0 -124
  8. prefect_gitlab-0.3.0/README.md +0 -84
  9. prefect_gitlab-0.3.0/prefect_gitlab.egg-info/PKG-INFO +0 -124
  10. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/LICENSE +0 -0
  11. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/MANIFEST.in +0 -0
  12. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/__init__.py +0 -0
  13. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/credentials.py +0 -0
  14. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/repositories.py +0 -0
  15. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/SOURCES.txt +0 -0
  16. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/dependency_links.txt +0 -0
  17. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/entry_points.txt +0 -0
  18. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/top_level.txt +0 -0
  19. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/setup.cfg +0 -0
  20. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/conftest.py +0 -0
  21. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/test_credentials.py +0 -0
  22. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/test_repositories.py +0 -0
  23. {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/test_version.py +0 -0
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.1
2
+ Name: prefect-gitlab
3
+ Version: 0.3.1
4
+ Summary: A Prefect collection for working with GitLab repositories.
5
+ Author-email: "Prefect Technologies, Inc." <help@prefect.io>
6
+ License: Apache License 2.0
7
+ Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
8
+ Keywords: prefect
9
+ Classifier: Natural Language :: English
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: prefect>=3.0.0
23
+ Requires-Dist: python-gitlab>=3.12.0
24
+ Requires-Dist: tenacity>=8.2.3
25
+ Provides-Extra: dev
26
+ Requires-Dist: aiohttp; extra == "dev"
27
+ Requires-Dist: coverage; extra == "dev"
28
+ Requires-Dist: interrogate; extra == "dev"
29
+ Requires-Dist: mkdocs-gen-files; extra == "dev"
30
+ Requires-Dist: mkdocs-material; extra == "dev"
31
+ Requires-Dist: mkdocs; extra == "dev"
32
+ Requires-Dist: mkdocstrings[python]; extra == "dev"
33
+ Requires-Dist: mypy; extra == "dev"
34
+ Requires-Dist: pillow; extra == "dev"
35
+ Requires-Dist: pre-commit; extra == "dev"
36
+ Requires-Dist: pytest-asyncio; extra == "dev"
37
+ Requires-Dist: pytest>=8.3; extra == "dev"
38
+ Requires-Dist: pytest-env; extra == "dev"
39
+ Requires-Dist: pytest-xdist; extra == "dev"
40
+
41
+ # prefect-gitlab
42
+
43
+ <p align="center">
44
+ <a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
45
+ <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
46
+ <a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
47
+ <img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
48
+ </p>
49
+
50
+ See the docs at [https://docs.prefect.io/integrations/prefect-gitlab](https://docs.prefect.io/integrations/prefect-gitlab) for more information.
@@ -0,0 +1,10 @@
1
+ # prefect-gitlab
2
+
3
+ <p align="center">
4
+ <a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
5
+ <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
6
+ <a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
7
+ <img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
8
+ </p>
9
+
10
+ See the docs at [https://docs.prefect.io/integrations/prefect-gitlab](https://docs.prefect.io/integrations/prefect-gitlab) for more information.
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.3.0'
16
- __version_tuple__ = version_tuple = (0, 3, 0)
15
+ __version__ = version = '0.3.1'
16
+ __version_tuple__ = version_tuple = (0, 3, 1)
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.1
2
+ Name: prefect-gitlab
3
+ Version: 0.3.1
4
+ Summary: A Prefect collection for working with GitLab repositories.
5
+ Author-email: "Prefect Technologies, Inc." <help@prefect.io>
6
+ License: Apache License 2.0
7
+ Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
8
+ Keywords: prefect
9
+ Classifier: Natural Language :: English
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: prefect>=3.0.0
23
+ Requires-Dist: python-gitlab>=3.12.0
24
+ Requires-Dist: tenacity>=8.2.3
25
+ Provides-Extra: dev
26
+ Requires-Dist: aiohttp; extra == "dev"
27
+ Requires-Dist: coverage; extra == "dev"
28
+ Requires-Dist: interrogate; extra == "dev"
29
+ Requires-Dist: mkdocs-gen-files; extra == "dev"
30
+ Requires-Dist: mkdocs-material; extra == "dev"
31
+ Requires-Dist: mkdocs; extra == "dev"
32
+ Requires-Dist: mkdocstrings[python]; extra == "dev"
33
+ Requires-Dist: mypy; extra == "dev"
34
+ Requires-Dist: pillow; extra == "dev"
35
+ Requires-Dist: pre-commit; extra == "dev"
36
+ Requires-Dist: pytest-asyncio; extra == "dev"
37
+ Requires-Dist: pytest>=8.3; extra == "dev"
38
+ Requires-Dist: pytest-env; extra == "dev"
39
+ Requires-Dist: pytest-xdist; extra == "dev"
40
+
41
+ # prefect-gitlab
42
+
43
+ <p align="center">
44
+ <a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
45
+ <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
46
+ <a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
47
+ <img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
48
+ </p>
49
+
50
+ See the docs at [https://docs.prefect.io/integrations/prefect-gitlab](https://docs.prefect.io/integrations/prefect-gitlab) for more information.
@@ -1,4 +1,4 @@
1
- prefect>=3.0.0rc1
1
+ prefect>=3.0.0
2
2
  python-gitlab>=3.12.0
3
3
  tenacity>=8.2.3
4
4
 
@@ -14,6 +14,6 @@ mypy
14
14
  pillow
15
15
  pre-commit
16
16
  pytest-asyncio
17
- pytest
17
+ pytest>=8.3
18
18
  pytest-env
19
19
  pytest-xdist
@@ -22,11 +22,7 @@ classifiers = [
22
22
  "Programming Language :: Python :: 3.12",
23
23
  "Topic :: Software Development :: Libraries",
24
24
  ]
25
- dependencies = [
26
- "prefect>=3.0.0rc1",
27
- "python-gitlab>=3.12.0",
28
- "tenacity>=8.2.3",
29
- ]
25
+ dependencies = ["prefect>=3.0.0", "python-gitlab>=3.12.0", "tenacity>=8.2.3"]
30
26
  dynamic = ["version"]
31
27
 
32
28
  [project.optional-dependencies]
@@ -42,7 +38,7 @@ dev = [
42
38
  "pillow",
43
39
  "pre-commit",
44
40
  "pytest-asyncio",
45
- "pytest",
41
+ "pytest >= 8.3",
46
42
  "pytest-env",
47
43
  "pytest-xdist",
48
44
  ]
@@ -75,7 +71,6 @@ fail_under = 80
75
71
  show_missing = true
76
72
 
77
73
  [tool.pytest.ini_options]
74
+ asyncio_default_fixture_loop_scope = "session"
78
75
  asyncio_mode = "auto"
79
- env = [
80
- "PREFECT_TEST_MODE=1",
81
- ]
76
+ env = ["PREFECT_TEST_MODE=1"]
@@ -1,124 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: prefect-gitlab
3
- Version: 0.3.0
4
- Summary: A Prefect collection for working with GitLab repositories.
5
- Author-email: "Prefect Technologies, Inc." <help@prefect.io>
6
- License: Apache License 2.0
7
- Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
8
- Keywords: prefect
9
- Classifier: Natural Language :: English
10
- Classifier: Intended Audience :: Developers
11
- Classifier: Intended Audience :: System Administrators
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Programming Language :: Python :: 3 :: Only
14
- Classifier: Programming Language :: Python :: 3.9
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Topic :: Software Development :: Libraries
19
- Requires-Python: >=3.9
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- Requires-Dist: prefect>=3.0.0rc1
23
- Requires-Dist: python-gitlab>=3.12.0
24
- Requires-Dist: tenacity>=8.2.3
25
- Provides-Extra: dev
26
- Requires-Dist: aiohttp; extra == "dev"
27
- Requires-Dist: coverage; extra == "dev"
28
- Requires-Dist: interrogate; extra == "dev"
29
- Requires-Dist: mkdocs-gen-files; extra == "dev"
30
- Requires-Dist: mkdocs-material; extra == "dev"
31
- Requires-Dist: mkdocs; extra == "dev"
32
- Requires-Dist: mkdocstrings[python]; extra == "dev"
33
- Requires-Dist: mypy; extra == "dev"
34
- Requires-Dist: pillow; extra == "dev"
35
- Requires-Dist: pre-commit; extra == "dev"
36
- Requires-Dist: pytest-asyncio; extra == "dev"
37
- Requires-Dist: pytest; extra == "dev"
38
- Requires-Dist: pytest-env; extra == "dev"
39
- Requires-Dist: pytest-xdist; extra == "dev"
40
-
41
- # prefect-gitlab
42
-
43
- <p align="center">
44
- <a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
45
- <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
46
- <a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
47
- <img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
48
- </p>
49
-
50
- ## Welcome!
51
-
52
- `prefect-gitlab` is a Prefect collection for working with GitLab repositories.
53
-
54
- ## Getting Started
55
-
56
- ### Python setup
57
-
58
- Requires an installation of Python 3.9 or higher.
59
-
60
- We recommend using a Python virtual environment manager such as pipenv, conda, or virtualenv.
61
-
62
- This integration is designed to work with Prefect 2.3.0 or higher. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
63
-
64
- ### Installation
65
-
66
- Install `prefect-gitlab` with `pip`:
67
-
68
- ```bash
69
- pip install prefect-gitlab
70
- ```
71
-
72
- Then, register the [block types](https://docs.prefect.io/concepts/blocks/)) in this integration to view the storage block type on Prefect Cloud:
73
-
74
- ```bash
75
- prefect block register -m prefect_gitlab
76
- ```
77
-
78
- Note, to use the `load` method on a block, you must already have a block document [saved](https://docs.prefect.io/concepts/blocks/).
79
-
80
- ## Creating a GitLab storage block
81
-
82
- ### In Python
83
-
84
- ```python
85
- from prefect_gitlab import GitLabRepository
86
-
87
- # public GitLab repository
88
- public_gitlab_block = GitLabRepository(
89
- name="my-gitlab-block",
90
- repository="https://gitlab.com/testing/my-repository.git"
91
- )
92
-
93
- public_gitlab_block.save()
94
-
95
-
96
- # specific branch or tag of a GitLab repository
97
- branch_gitlab_block = GitLabRepository(
98
- name="my-gitlab-block",
99
- reference="branch-or-tag-name",
100
- repository="https://gitlab.com/testing/my-repository.git"
101
- )
102
-
103
- branch_gitlab_block.save()
104
-
105
-
106
- # Get all history of a specific branch or tag of a GitLab repository
107
- branch_gitlab_block = GitLabRepository(
108
- name="my-gitlab-block",
109
- reference="branch-or-tag-name",
110
- git_depth=None,
111
- repository="https://gitlab.com/testing/my-repository.git"
112
- )
113
-
114
- branch_gitlab_block.save()
115
-
116
- # private GitLab repository
117
- private_gitlab_block = GitLabRepository(
118
- name="my-private-gitlab-block",
119
- repository="https://gitlab.com/testing/my-repository.git",
120
- access_token="YOUR_GITLAB_PERSONAL_ACCESS_TOKEN"
121
- )
122
-
123
- private_gitlab_block.save()
124
- ```
@@ -1,84 +0,0 @@
1
- # prefect-gitlab
2
-
3
- <p align="center">
4
- <a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
5
- <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
6
- <a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
7
- <img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
8
- </p>
9
-
10
- ## Welcome!
11
-
12
- `prefect-gitlab` is a Prefect collection for working with GitLab repositories.
13
-
14
- ## Getting Started
15
-
16
- ### Python setup
17
-
18
- Requires an installation of Python 3.9 or higher.
19
-
20
- We recommend using a Python virtual environment manager such as pipenv, conda, or virtualenv.
21
-
22
- This integration is designed to work with Prefect 2.3.0 or higher. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
23
-
24
- ### Installation
25
-
26
- Install `prefect-gitlab` with `pip`:
27
-
28
- ```bash
29
- pip install prefect-gitlab
30
- ```
31
-
32
- Then, register the [block types](https://docs.prefect.io/concepts/blocks/)) in this integration to view the storage block type on Prefect Cloud:
33
-
34
- ```bash
35
- prefect block register -m prefect_gitlab
36
- ```
37
-
38
- Note, to use the `load` method on a block, you must already have a block document [saved](https://docs.prefect.io/concepts/blocks/).
39
-
40
- ## Creating a GitLab storage block
41
-
42
- ### In Python
43
-
44
- ```python
45
- from prefect_gitlab import GitLabRepository
46
-
47
- # public GitLab repository
48
- public_gitlab_block = GitLabRepository(
49
- name="my-gitlab-block",
50
- repository="https://gitlab.com/testing/my-repository.git"
51
- )
52
-
53
- public_gitlab_block.save()
54
-
55
-
56
- # specific branch or tag of a GitLab repository
57
- branch_gitlab_block = GitLabRepository(
58
- name="my-gitlab-block",
59
- reference="branch-or-tag-name",
60
- repository="https://gitlab.com/testing/my-repository.git"
61
- )
62
-
63
- branch_gitlab_block.save()
64
-
65
-
66
- # Get all history of a specific branch or tag of a GitLab repository
67
- branch_gitlab_block = GitLabRepository(
68
- name="my-gitlab-block",
69
- reference="branch-or-tag-name",
70
- git_depth=None,
71
- repository="https://gitlab.com/testing/my-repository.git"
72
- )
73
-
74
- branch_gitlab_block.save()
75
-
76
- # private GitLab repository
77
- private_gitlab_block = GitLabRepository(
78
- name="my-private-gitlab-block",
79
- repository="https://gitlab.com/testing/my-repository.git",
80
- access_token="YOUR_GITLAB_PERSONAL_ACCESS_TOKEN"
81
- )
82
-
83
- private_gitlab_block.save()
84
- ```
@@ -1,124 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: prefect-gitlab
3
- Version: 0.3.0
4
- Summary: A Prefect collection for working with GitLab repositories.
5
- Author-email: "Prefect Technologies, Inc." <help@prefect.io>
6
- License: Apache License 2.0
7
- Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
8
- Keywords: prefect
9
- Classifier: Natural Language :: English
10
- Classifier: Intended Audience :: Developers
11
- Classifier: Intended Audience :: System Administrators
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Programming Language :: Python :: 3 :: Only
14
- Classifier: Programming Language :: Python :: 3.9
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Topic :: Software Development :: Libraries
19
- Requires-Python: >=3.9
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- Requires-Dist: prefect>=3.0.0rc1
23
- Requires-Dist: python-gitlab>=3.12.0
24
- Requires-Dist: tenacity>=8.2.3
25
- Provides-Extra: dev
26
- Requires-Dist: aiohttp; extra == "dev"
27
- Requires-Dist: coverage; extra == "dev"
28
- Requires-Dist: interrogate; extra == "dev"
29
- Requires-Dist: mkdocs-gen-files; extra == "dev"
30
- Requires-Dist: mkdocs-material; extra == "dev"
31
- Requires-Dist: mkdocs; extra == "dev"
32
- Requires-Dist: mkdocstrings[python]; extra == "dev"
33
- Requires-Dist: mypy; extra == "dev"
34
- Requires-Dist: pillow; extra == "dev"
35
- Requires-Dist: pre-commit; extra == "dev"
36
- Requires-Dist: pytest-asyncio; extra == "dev"
37
- Requires-Dist: pytest; extra == "dev"
38
- Requires-Dist: pytest-env; extra == "dev"
39
- Requires-Dist: pytest-xdist; extra == "dev"
40
-
41
- # prefect-gitlab
42
-
43
- <p align="center">
44
- <a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
45
- <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
46
- <a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
47
- <img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
48
- </p>
49
-
50
- ## Welcome!
51
-
52
- `prefect-gitlab` is a Prefect collection for working with GitLab repositories.
53
-
54
- ## Getting Started
55
-
56
- ### Python setup
57
-
58
- Requires an installation of Python 3.9 or higher.
59
-
60
- We recommend using a Python virtual environment manager such as pipenv, conda, or virtualenv.
61
-
62
- This integration is designed to work with Prefect 2.3.0 or higher. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
63
-
64
- ### Installation
65
-
66
- Install `prefect-gitlab` with `pip`:
67
-
68
- ```bash
69
- pip install prefect-gitlab
70
- ```
71
-
72
- Then, register the [block types](https://docs.prefect.io/concepts/blocks/)) in this integration to view the storage block type on Prefect Cloud:
73
-
74
- ```bash
75
- prefect block register -m prefect_gitlab
76
- ```
77
-
78
- Note, to use the `load` method on a block, you must already have a block document [saved](https://docs.prefect.io/concepts/blocks/).
79
-
80
- ## Creating a GitLab storage block
81
-
82
- ### In Python
83
-
84
- ```python
85
- from prefect_gitlab import GitLabRepository
86
-
87
- # public GitLab repository
88
- public_gitlab_block = GitLabRepository(
89
- name="my-gitlab-block",
90
- repository="https://gitlab.com/testing/my-repository.git"
91
- )
92
-
93
- public_gitlab_block.save()
94
-
95
-
96
- # specific branch or tag of a GitLab repository
97
- branch_gitlab_block = GitLabRepository(
98
- name="my-gitlab-block",
99
- reference="branch-or-tag-name",
100
- repository="https://gitlab.com/testing/my-repository.git"
101
- )
102
-
103
- branch_gitlab_block.save()
104
-
105
-
106
- # Get all history of a specific branch or tag of a GitLab repository
107
- branch_gitlab_block = GitLabRepository(
108
- name="my-gitlab-block",
109
- reference="branch-or-tag-name",
110
- git_depth=None,
111
- repository="https://gitlab.com/testing/my-repository.git"
112
- )
113
-
114
- branch_gitlab_block.save()
115
-
116
- # private GitLab repository
117
- private_gitlab_block = GitLabRepository(
118
- name="my-private-gitlab-block",
119
- repository="https://gitlab.com/testing/my-repository.git",
120
- access_token="YOUR_GITLAB_PERSONAL_ACCESS_TOKEN"
121
- )
122
-
123
- private_gitlab_block.save()
124
- ```
File without changes
File without changes