Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created July 11, 2025 09:09
Show Gist options
  • Save mypy-play/d867c73200532a62c0202393a7525f76 to your computer and use it in GitHub Desktop.
Save mypy-play/d867c73200532a62c0202393a7525f76 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
import requests
endpoint = "https://gitlab.uk/merge_requests"
headers = {"PRIVATE_TOKEN": "SECRET"}
branch = "banana"
params = {"state": "opened", "scope": "all", "target_branch": branch, "author_id": 87, "view": "simple"}
response = requests.get(endpoint, headers=headers, params=params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment