Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf5e80cf

Browse files
docs: variables: add note aboutfilter for updating
Add a note about using `filter` when updating a variable.Closes:#2835Closes:#1387
1 parent44f62c4 commitf5e80cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎docs/gl_objects/variables.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,19 @@ Update a variable value::
102102
# or
103103
project.variables.update("key1", {"value": "new_value"})
104104

105+
..note::
106+
107+
If there are multiple variables with the same key, use ``filter`` to select
108+
the correct environment_scope. See the GitLab API docs for more information.
109+
105110
Remove a variable::
106111

107112
project.variables.delete('key_name')
108113
group.variables.delete('key_name')
109114
# or
110115
var.delete()
116+
117+
..note::
118+
119+
If there are multiple variables with the same key, use ``filter`` to select
120+
the correct environment_scope. See the GitLab API docs for more information.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp