Skip to content

Commit fa41b30

Browse files
committed
Change gitlab_project to GITLAB_PROJECT_ID
1 parent 784d33e commit fa41b30

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

SharedProcessors/GitLabReleaseInfoProvider.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ class GitLabReleasesInfoProvider(Processor):
4040
"required": False,
4141
"description": ("Return asset links that match this regex"),
4242
},
43-
"gitlab_project": {
44-
"required": True,
45-
"description": (
46-
"The ID or URL-encoded path of the project."
47-
"e.g. `123` or `autopkg%2Frecipes`"
48-
),
49-
},
5043
"latest": {
5144
"required": False,
5245
"description": ("Filters results to include only the most recent release."),
@@ -59,6 +52,13 @@ class GitLabReleasesInfoProvider(Processor):
5952
"set this value to your internal GitLab URL."
6053
),
6154
},
55+
"GITLAB_PROJECT_ID": {
56+
"required": True,
57+
"description": (
58+
"The ID or URL-encoded path of the project."
59+
"e.g. `123` or `autopkg%2Frecipes`"
60+
),
61+
},
6262
"PRIVATE_TOKEN": {
6363
"required": False,
6464
"description": (
@@ -104,7 +104,7 @@ def gitlab_api_get(self, endpoint):
104104

105105
def get_releases(self, latest=False):
106106
"""Return a list of releases for a given GitLab project."""
107-
project_id = self.env.get("gitlab_project")
107+
project_id = self.env.get("GITLAB_PROJECT_ID")
108108
releases_endpoint = f"/projects/{project_id}/releases"
109109
if latest:
110110
releases_endpoint += "/permalink/latest"

0 commit comments

Comments
 (0)