Loading tools/labels/Pipfile +1 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,6 @@ verify_ssl = true [dev-packages] [packages] urllib = "==3.9.0" requests = "==2.25.0" [requires] Loading tools/labels/Pipfile.lock 0 → 100644 +59 −0 Original line number Diff line number Diff line { "_meta": { "hash": { "sha256": "b229a7ec14523072a96578cd012091ffd905b91ed45584cd617591eb6573811c" }, "pipfile-spec": 6, "requires": { "python_version": "3" }, "sources": [ { "name": "pypi", "url": "https://pypi.org/simple", "verify_ssl": true } ] }, "default": { "certifi": { "hashes": [ "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c", "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830" ], "version": "==2020.12.5" }, "chardet": { "hashes": [ "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" ], "version": "==3.0.4" }, "idna": { "hashes": [ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "requests": { "hashes": [ "sha256:7f1a0b932f4a60a1a65caa4263921bb7d9ee911957e0ae4a23a6dd08185ad5f8", "sha256:e786fa28d8c9154e6a4de5d46a1d921b8749f8b74e28bde23768e5e16eece998" ], "index": "pypi", "version": "==2.25.0" }, "urllib3": { "hashes": [ "sha256:19188f96923873c92ccb987120ec4acaa12f0461fa9ce5d3d0772bc965a39e08", "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.26.2" } }, "develop": {} } tools/labels/job_labels.py +1 −2 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ def get_labels(project_name, with_counts=False, include_ancestor_groups=True, se The text of the API response """ headers = { 'JOB_TOKEN': JOB_TOKEN 'PRIVATE-TOKEN': JOB_TOKEN } payload = { 'with_counts': with_counts, Loading @@ -42,7 +42,6 @@ def get_labels(project_name, with_counts=False, include_ancestor_groups=True, se } base_label_url = BASE_API_URL + "/projects/" + quote(project_name, safe='') + "/labels" url = base_label_url + "?" + urlencode(payload) print(url) r = requests.get(url, headers=headers) return (r.text) Loading Loading
tools/labels/Pipfile +1 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,6 @@ verify_ssl = true [dev-packages] [packages] urllib = "==3.9.0" requests = "==2.25.0" [requires] Loading
tools/labels/Pipfile.lock 0 → 100644 +59 −0 Original line number Diff line number Diff line { "_meta": { "hash": { "sha256": "b229a7ec14523072a96578cd012091ffd905b91ed45584cd617591eb6573811c" }, "pipfile-spec": 6, "requires": { "python_version": "3" }, "sources": [ { "name": "pypi", "url": "https://pypi.org/simple", "verify_ssl": true } ] }, "default": { "certifi": { "hashes": [ "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c", "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830" ], "version": "==2020.12.5" }, "chardet": { "hashes": [ "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" ], "version": "==3.0.4" }, "idna": { "hashes": [ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "requests": { "hashes": [ "sha256:7f1a0b932f4a60a1a65caa4263921bb7d9ee911957e0ae4a23a6dd08185ad5f8", "sha256:e786fa28d8c9154e6a4de5d46a1d921b8749f8b74e28bde23768e5e16eece998" ], "index": "pypi", "version": "==2.25.0" }, "urllib3": { "hashes": [ "sha256:19188f96923873c92ccb987120ec4acaa12f0461fa9ce5d3d0772bc965a39e08", "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.26.2" } }, "develop": {} }
tools/labels/job_labels.py +1 −2 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ def get_labels(project_name, with_counts=False, include_ancestor_groups=True, se The text of the API response """ headers = { 'JOB_TOKEN': JOB_TOKEN 'PRIVATE-TOKEN': JOB_TOKEN } payload = { 'with_counts': with_counts, Loading @@ -42,7 +42,6 @@ def get_labels(project_name, with_counts=False, include_ancestor_groups=True, se } base_label_url = BASE_API_URL + "/projects/" + quote(project_name, safe='') + "/labels" url = base_label_url + "?" + urlencode(payload) print(url) r = requests.get(url, headers=headers) return (r.text) Loading