FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(api): document the update method for project variables · python-gitlab/python-gitlab@7992911 · GitHub

Repository navigation

Commit 7992911

Browse files
authored andcommitted
docs(api): document the update method for project variables
1 parent 227607c commit 7992911

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎docs/gl_objects/variables.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Update a variable value::
9393

9494
var.value = 'new_value'
9595
var.save()
96+
# or
97+
project.variables.update("key1", {"value": "new_value"})
9698

9799
Remove a variable::
98100

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL