diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-10-08 19:57:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 19:57:59 +0200 |
commit | e851eed42d56718699261495698c0ac6ad6c6b22 (patch) | |
tree | 62b974fac0ebcc4d1940154a1ea0e0283b123e1f | |
parent | 49fae96ad6456ecca7b34dc61647b370311b4dc3 (diff) | |
parent | 7992911896c62f23f25742d171001f30af514a9a (diff) | |
download | gitlab-e851eed42d56718699261495698c0ac6ad6c6b22.tar.gz |
Merge pull request #1616 from lmmx/patch-1
Document the `update` method for project variables
-rw-r--r-- | docs/gl_objects/variables.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/gl_objects/variables.rst b/docs/gl_objects/variables.rst index e6ae4ba..f679925 100644 --- a/docs/gl_objects/variables.rst +++ b/docs/gl_objects/variables.rst @@ -93,6 +93,8 @@ Update a variable value:: var.value = 'new_value' var.save() + # or + project.variables.update("key1", {"value": "new_value"}) Remove a variable:: |