diff options
| author | Max Wittig <max.wittig@siemens.com> | 2020-10-12 10:49:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-12 10:49:27 +0200 |
| commit | 8cb8040198a6183c7c4bd3745af800fcf303fe43 (patch) | |
| tree | bcb77f2aacc4c3ff8c0a224ce16025c20e32a3bf /gitlab | |
| parent | 68a41629ca0c27bd62d8e656071f612d443aaa1b (diff) | |
| parent | 16fc0489b2fe24e0356e9092c9878210b7330a72 (diff) | |
| download | gitlab-8cb8040198a6183c7c4bd3745af800fcf303fe43.tar.gz | |
Merge pull request #1131 from valentingregoire/master
feat: added constants for search API
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/const.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gitlab/const.py b/gitlab/const.py index 7791a39..0d2f421 100644 --- a/gitlab/const.py +++ b/gitlab/const.py @@ -33,3 +33,20 @@ NOTIFICATION_LEVEL_WATCH = "watch" NOTIFICATION_LEVEL_GLOBAL = "global" NOTIFICATION_LEVEL_MENTION = "mention" NOTIFICATION_LEVEL_CUSTOM = "custom" + +# Search scopes +# all scopes (global, group and project) +SEARCH_SCOPE_PROJECTS = "projects" +SEARCH_SCOPE_ISSUES = "issues" +SEARCH_SCOPE_MERGE_REQUESTS = "merge_requests" +SEARCH_SCOPE_MILESTONES = "milestones" +SEARCH_SCOPE_WIKI_BLOBS = "wiki_blobs" +SEARCH_SCOPE_COMMITS = "commits" +SEARCH_SCOPE_BLOBS = "blobs" +SEARCH_SCOPE_USERS = "users" + +# specific global scope +SEARCH_SCOPE_GLOBAL_SNIPPET_TITLES = "snippet_titles" + +# specific project scope +SEARCH_SCOPE_PROJECT_NOTES = "notes" |
