diff options
author | Max Wittig <max.wittig@siemens.com> | 2021-02-01 15:25:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 15:25:53 +0100 |
commit | 643454c5c5bbfb66d5890232a4f07fb04a753486 (patch) | |
tree | ed8a475890c8eef8d60257b41c37b45b2c58a893 /gitlab/const.py | |
parent | 071d699f7e4bf7eb3aa49b78f9cc9e56a473e281 (diff) | |
parent | a69a214ef7f460cef7a7f44351c4861503f9902e (diff) | |
download | gitlab-643454c5c5bbfb66d5890232a4f07fb04a753486.tar.gz |
Merge pull request #1277 from python-gitlab/feat/override-user-agent
feat(api,cli): make user agent configurable
Diffstat (limited to 'gitlab/const.py')
-rw-r--r-- | gitlab/const.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitlab/const.py b/gitlab/const.py index bdd3d73..36e3c1a 100644 --- a/gitlab/const.py +++ b/gitlab/const.py @@ -15,6 +15,9 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from gitlab.__version__ import __title__, __version__ + + NO_ACCESS = 0 MINIMAL_ACCESS = 5 GUEST_ACCESS = 10 @@ -51,3 +54,5 @@ SEARCH_SCOPE_GLOBAL_SNIPPET_TITLES = "snippet_titles" # specific project scope SEARCH_SCOPE_PROJECT_NOTES = "notes" + +USER_AGENT = "{}/{}".format(__title__, __version__) |