Skip to content

API: Repos

Git hosting with visibility, roles, secrets, code search, and smart HTTP.

Every HTML route returns JSON with Accept: application/json. Authentication: session cookie, X-API-KEY, Authorization: Bearer or Basic.

GET/reposguest
Repository list

Accessible plus public repositories, newest first. Guests see public repositories only.

curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos'
GET/repos/newMember
New repository form

Create form for name, visibility, and short description.

curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/new'
POST/reposMember
Repository creation

Creates a repository. Names allow letters, digits, dot, _ and -, no leading dot.

FieldTypeLocationRequired
namestringbodyyes
visibility
Allowed: public, hidden, secret
stringbodyno
descriptionstringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos'
GET/repos/{name}guest
Repository page

Files, rendered README, and clone URL. Public and hidden are readable by link, only public is listed, secret 404s for strangers.

FieldTypeLocationRequired
namestringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden'
GET/repos/{name}/treeguest
Root listing

Top-level entries of the default branch, same shape as the directory listing.

FieldTypeLocationRequired
namestringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/tree'
GET/repos/{name}/tree/{path}guest
Directory listing

Entries of one directory at the default branch with type, size, and whether the file opens in the site, depends on the browser, or is download only. Files redirect to the blob view.

FieldTypeLocationRequired
namestringpathyes
pathstringpathno
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/tree/src'
GET/repos/{name}/blob/{path}guest
File view

Numbered, highlighted source, rendered Markdown, inline images, video, audio, and PDF. Binary types show a download action. Directories redirect to the tree view.

FieldTypeLocationRequired
namestringpathyes
pathstringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/blob/src/main.py'
GET/repos/{name}/raw/{path}guest
Raw file

File bytes with the media type for images, video, audio, and PDF, text/plain for source, and attachment for binaries. Supports byte ranges and resolves Git LFS objects. Add download=1 to force an attachment.

FieldTypeLocationRequired
namestringpathyes
pathstringpathyes
downloadstringqueryno
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/raw/docs/screenshot.png?download=1'
GET/repos/{name}/settingsMember
Repository settings

Visibility, default branch, short description and pull request settings. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/settings'
POST/repos/{name}/settingsMember
Save settings

Stores visibility, default branch, and short description. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
visibility
Allowed: public, hidden, secret
stringbodyno
default_branchstringbodyno
descriptionstringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/settings'
POST/repos/{name}/deleteMember
Repository removal

Soft delete. Needs repository.delete.

FieldTypeLocationRequired
namestringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/delete'
GET/repos/{name}/membersMember
Repository members

Grant table plus invite form. Needs repository.access.read.

FieldTypeLocationRequired
namestringpathyes
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/members'
POST/repos/{name}/membersMember
Grant access

Grants a role or raw perms mask to a user uid or username. Needs repository.access.read or repository.access.write plus every bit granted.

FieldTypeLocationRequired
namestringpathyes
userstringbodyyes
role
Allowed: owner, maintainer, writer, reader
stringbodyno
permsintegerbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/members'
POST/repos/{name}/members/{user_uid}/revokeMember
Revoke access

Removes a member grant. Needs repository.access.write. Last owner self-revoke is blocked.

FieldTypeLocationRequired
namestringpathyes
user_uidstringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/members/.../revoke'
GET/repos/{name}/secretsMember
Repository secrets

Names and metadata only, values are never rendered. Needs repository.secrets.read.

FieldTypeLocationRequired
namestringpathyes
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/secrets'
POST/repos/{name}/secretsMember
Store secret

Seals a value under the per-repo key. Needs repository.secrets.write.

FieldTypeLocationRequired
namestringpathyes
namestringbodyyes
valuepasswordbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/secrets'
POST/repos/{name}/secrets/{secret_uid}/deleteMember
Delete secret

Deletes one sealed secret. Needs repository.secrets.delete.

FieldTypeLocationRequired
namestringpathyes
secret_uidstringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/secrets/.../delete'
POST/repos/{name}/secrets/rotateMember
Rotate secrets

Issues a new per-repo key and re-seals every secret. Needs repository.secrets.write.

FieldTypeLocationRequired
namestringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/secrets/rotate'
GET/git/{name}/info/refsguest
Git discovery

Smart HTTP advertisement. Upload-pack is public for public repos, receive-pack needs auth plus repository.write or push-to-create.

FieldTypeLocationRequired
namestringpathyes
service
Allowed: git-upload-pack, git-receive-pack
stringqueryyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/git/garden/info/refs?service=git-upload-pack'
POST/git/{name}/git-upload-packguest
Git fetch

Smart HTTP fetch and clone body exchange.

FieldTypeLocationRequired
namestringpathyes
curl -X POST -H 'Accept: application/json' 'https://molodetz.nl/git/garden/git-upload-pack'
POST/git/{name}/git-receive-packMember
Git push

Smart HTTP push. Oversize pushes are rejected with 413 before unpack.

FieldTypeLocationRequired
namestringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/git-receive-pack'
GET/repos/{name}/info/refsguest
Git discovery alias

Same smart HTTP advertisement as /git/{name}/info/refs, served on the page URL so git clients clone from /repos directly.

FieldTypeLocationRequired
namestringpathyes
service
Allowed: git-upload-pack, git-receive-pack
stringqueryyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/info/refs?service=git-upload-pack'
POST/repos/{name}/git-upload-packguest
Git fetch alias

Same smart HTTP fetch exchange as /git/{name}/git-upload-pack, served on the page URL.

FieldTypeLocationRequired
namestringpathyes
curl -X POST -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/git-upload-pack'
POST/repos/{name}/git-receive-packMember
Git push alias

Same smart HTTP push as /git/{name}/git-receive-pack, served on the page URL.

FieldTypeLocationRequired
namestringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/git-receive-pack'
POST/git/{name}/info/lfs/objects/batchguest
LFS batch

Batch upload or download negotiation. Upload needs repository.write, download needs repository.read.

FieldTypeLocationRequired
namestringpathyes
operation
Allowed: upload, download
stringbodyyes
objectsstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/git/garden/info/lfs/objects/batch'
GET/git/{name}/info/lfs/objects/{oid}guest
LFS object download

Streams one content-addressed object as application/octet-stream. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
oidstringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/git/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
PUT/git/{name}/info/lfs/objects/{oid}Member
LFS object upload

Stores one object after verifying its sha256. Re-upload overwrites. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
oidstringpathyes
curl -X PUT -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
GET/git/{name}/info/lfs/locksMember
LFS lock list

Lists file locks with cursor paging. Limit clamps to 1-100. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
limitintegerqueryno
cursorstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/info/lfs/locks?limit=100&cursor='
POST/git/{name}/info/lfs/locksMember
LFS lock creation

Locks one repo-relative path. Conflict returns 409 with the existing lock. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
pathstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/git/garden/info/lfs/locks'
DELETE/git/{name}/info/lfs/locks/{id}Member
LFS unlock

Deletes one lock. Non-owners pass force true. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
idstringpathyes
forcebooleanbodyno
curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"force": false}' 'https://molodetz.nl/git/garden/info/lfs/locks/...'
POST/git/{name}/info/lfs/locks/verifyMember
LFS lock verification

Lists only the caller-owned locks with cursor paging. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
limitintegerqueryno
cursorstringqueryno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/info/lfs/locks/verify?limit=100&cursor='
POST/repos/{name}/info/lfs/objects/batchguest
LFS batch on page URL

Same batch negotiation as /git/{name}/info/lfs/objects/batch, served on the page URL for repos clones.

FieldTypeLocationRequired
namestringpathyes
operation
Allowed: upload, download
stringbodyyes
objectsstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/info/lfs/objects/batch'
GET/repos/{name}/info/lfs/objects/{oid}guest
LFS object download on page URL

Same object stream as /git/{name}/info/lfs/objects/{oid}, served on the page URL. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
oidstringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
PUT/repos/{name}/info/lfs/objects/{oid}Member
LFS object upload on page URL

Same object store as /git/{name}/info/lfs/objects/{oid}, served on the page URL. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
oidstringpathyes
curl -X PUT -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
GET/repos/{name}/info/lfs/locksMember
LFS lock list on page URL

Same lock list as /git/{name}/info/lfs/locks, served on the page URL. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
limitintegerqueryno
cursorstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/info/lfs/locks?limit=100&cursor='
POST/repos/{name}/info/lfs/locksMember
LFS lock creation on page URL

Same lock creation as /git/{name}/info/lfs/locks, served on the page URL. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
pathstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/info/lfs/locks'
DELETE/repos/{name}/info/lfs/locks/{id}Member
LFS unlock on page URL

Same unlock as /git/{name}/info/lfs/locks/{id}, served on the page URL. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
idstringpathyes
forcebooleanbodyno
curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"force": false}' 'https://molodetz.nl/repos/garden/info/lfs/locks/...'
POST/repos/{name}/info/lfs/locks/verifyMember
LFS lock verification on page URL

Same verification as /git/{name}/info/lfs/locks/verify, served on the page URL. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
limitintegerqueryno
cursorstringqueryno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/info/lfs/locks/verify?limit=100&cursor='
POST/{owner}/{repo}.git/info/lfs/objects/batchguest
LFS batch alias

GitHub-compatible batch alias. The owner segment is ignored, repos resolve by flat name.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
operation
Allowed: upload, download
stringbodyyes
objectsstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/someone/garden.git/info/lfs/objects/batch'
GET/{owner}/{repo}.git/info/lfs/objects/{oid}guest
LFS object download alias

GitHub-compatible object download alias. The owner segment is ignored.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
oidstringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/someone/garden.git/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
PUT/{owner}/{repo}.git/info/lfs/objects/{oid}Member
LFS object upload alias

GitHub-compatible object upload alias. The owner segment is ignored. Needs repository.write.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
oidstringpathyes
curl -X PUT -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/someone/garden.git/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
GET/{owner}/{repo}.git/info/lfs/locksMember
LFS lock list alias

GitHub-compatible lock list alias. The owner segment is ignored. Needs repository.read.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
limitintegerqueryno
cursorstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/someone/garden.git/info/lfs/locks?limit=100&cursor='
POST/{owner}/{repo}.git/info/lfs/locksMember
LFS lock creation alias

GitHub-compatible lock creation alias. The owner segment is ignored. Needs repository.write.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
pathstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/someone/garden.git/info/lfs/locks'
DELETE/{owner}/{repo}.git/info/lfs/locks/{id}Member
LFS unlock alias

GitHub-compatible unlock alias. The owner segment is ignored. Needs repository.write.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
idstringpathyes
forcebooleanbodyno
curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"force": false}' 'https://molodetz.nl/someone/garden.git/info/lfs/locks/...'
POST/{owner}/{repo}.git/info/lfs/locks/verifyMember
LFS lock verification alias

GitHub-compatible lock verification alias. The owner segment is ignored. Needs repository.read.

FieldTypeLocationRequired
ownerstringpathyes
repostringpathyes
limitintegerqueryno
cursorstringqueryno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/someone/garden.git/info/lfs/locks/verify?limit=100&cursor='
GET/repos/searchMember
Global code search

Search page across every readable repository.

FieldTypeLocationRequired
qstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/search?q=migrate'
GET/repos/{name}/searchMember
Repository code search

Search page scoped to one repository. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
qstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/search?q=migrate'
GET/repos/search/apiMember
Global code search JSON

JSON hits plus telemetry. Query q is capped at 500 chars, count clamps to 1-100.

FieldTypeLocationRequired
qstringqueryno
countintegerqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/search/api?q=migrate&count=10'
GET/repos/{name}/search/apiMember
Repository code search JSON

JSON hits plus telemetry scoped to one repository. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
qstringqueryno
countintegerqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/search/api?q=migrate&count=10'
GET/repos/search/streamMember
Global code search stream

Server-sent stream with result, telemetry, and done events.

FieldTypeLocationRequired
qstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/search/stream?q=migrate'
GET/repos/{name}/search/streamMember
Repository code search stream

Server-sent stream scoped to one repository. Needs repository.read.

FieldTypeLocationRequired
namestringpathyes
qstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/search/stream?q=migrate'
GET/repos/{name}/branchesguest
Branches

Active branches: default, branches with open pull requests, and branches with commits in the last 90 days.

FieldTypeLocationRequired
namestringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/branches'
GET/repos/{name}/compareMember
Compare branches

Merge check, commits and diff between a base and a head branch, plus the creation form.

FieldTypeLocationRequired
namestringpathyes
basestringqueryno
headstringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/compare?base=main&head=feature'
GET/repos/pullsMember
All pull requests

Pull requests across every readable repository with status, review, draft, merge, author and involvement filters.

FieldTypeLocationRequired
state
Allowed: open, merged, closed, all
stringqueryno
involved
Allowed: authored, review_requested, reviewed
stringqueryno
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/pulls?state=open&involved=authored'
GET/repos/{name}/pullsguest
Pull requests

Pull requests of one repository with status tabs and filters.

FieldTypeLocationRequired
namestringpathyes
state
Allowed: open, merged, closed, all
stringqueryno
review
Allowed: any, approved, changes_requested, review_required, unreviewed
stringqueryno
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls?state=open&review=any'
POST/repos/{name}/pullsMember
Create pull request

Opens a pull request from head into base. Needs repository.write.

FieldTypeLocationRequired
namestringpathyes
basestringbodyyes
headstringbodyyes
titlestringbodyyes
bodystringbodyno
reviewersstringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls'
GET/repos/{name}/pulls/{number}guest
Pull request

Conversation, commits or files changed of one pull request, with merge box and reviewers.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
tab
Allowed: conversation, commits, files
stringqueryno
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1?tab=conversation'
POST/repos/{name}/pulls/{number}/editMember
Edit pull request

Changes title, description or base branch. Author or writers, open pull requests only.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
titlestringbodyno
bodystringbodyno
basestringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/edit'
POST/repos/{name}/pulls/{number}/wipMember
Toggle work in progress

Adds or removes the work-in-progress title prefix.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/wip'
POST/repos/{name}/pulls/{number}/closeMember
Close pull request

Closes an open pull request. Author or writers.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/close'
POST/repos/{name}/pulls/{number}/reopenMember
Reopen pull request

Reopens a closed pull request when both branches exist.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reopen'
POST/repos/{name}/pulls/{number}/commentsMember
Comment

Adds a conversation comment; action=close closes the pull request as well.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
bodystringbodyno
action
Allowed: comment, close
stringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/comments'
POST/repos/{name}/pulls/{number}/comments/{comment_uid}/editMember
Edit comment

Edits your own comment.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
comment_uidstringpathyes
bodystringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/comments/{comment_uid}/edit'
POST/repos/{name}/pulls/{number}/comments/{comment_uid}/deleteMember
Delete comment

Deletes your own comment; repository administrators may delete any comment.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
comment_uidstringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/comments/{comment_uid}/delete'
POST/repos/{name}/pulls/{number}/code-commentsMember
Line comment

Comments on a diff line as a single comment or as part of your pending review; thread replies to a conversation.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
bodystringbodyyes
mode
Allowed: single, review
stringbodyno
pathstringbodyno
side
Allowed: new, old
stringbodyno
lineintegerbodyno
threadstringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/code-comments'
POST/repos/{name}/pulls/{number}/threads/{thread_uid}/{action}Member
Resolve conversation

Resolves or unresolves a conversation. Author, writers and official reviewers.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
thread_uidstringpathyes
action
Allowed: resolve, unresolve
stringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/threads/{thread_uid}/{action}'
POST/repos/{name}/pulls/{number}/reviewsMember
Submit review

Submits a review: approve, comment or reject (request changes). Authors cannot approve or reject their own pull request.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
type
Allowed: approve, comment, reject
stringbodyyes
bodystringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviews'
POST/repos/{name}/pulls/{number}/reviews/discardMember
Discard pending review

Deletes your pending review and its pending comments.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviews/discard'
POST/repos/{name}/pulls/{number}/reviews/{review_uid}/dismissMember
Dismiss review

Dismisses an approval or change request with a message. Repository administrators only.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
review_uidstringpathyes
messagestringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviews/{review_uid}/dismiss'
POST/repos/{name}/pulls/{number}/reviewersMember
Request review

Requests or re-requests a review from a user who can read the repository.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
userstringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviewers'
POST/repos/{name}/pulls/{number}/reviewers/{user_uid}/removeMember
Remove review request

Removes a pending review request.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
user_uidstringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviewers/{user_uid}/remove'
POST/repos/{name}/pulls/{number}/viewedMember
Mark file viewed

Marks or unmarks a changed file as viewed for yourself.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
pathstringbodyyes
viewedbooleanbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/viewed'
GET/repos/{name}/pulls/{number}/checkguest
Merge status

Current merge status, advisory warnings and assisted merge availability.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1/check'
POST/repos/{name}/pulls/{number}/delete-branchMember
Delete head branch

Deletes the head branch of a closed or merged pull request when it has no new commits.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/delete-branch'
POST/repos/{name}/pulls/{number}/restore-branchMember
Restore head branch

Recreates a deleted head branch from refs/pull/N/head.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/restore-branch'
POST/repos/{name}/pulls/{number}/mergeMember
Merge pull request

Starts a merge job: merge, rebase, rebase-merge, squash, fast-forward-only or manually-merged; assisted=1 resolves conflicts with the assistant. Writers may merge their own pull requests.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
style
Allowed: merge, rebase, rebase-merge, squash, fast-forward-only, manually-merged
stringbodyno
titlestringbodyno
messagestringbodyno
commitstringbodyno
delete_branchbooleanbodyno
assistedbooleanbodyno
acknowledgedstringbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/merge'
POST/repos/{name}/pulls/{number}/updateMember
Update branch

Merges the base branch into the head branch when that merge is clean.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/update'
GET/repos/{name}/pulls/{number}/merge/jobs/{job_uid}guest
Merge job

State of a merge job.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
job_uidstringpathyes
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1/merge/jobs/{job_uid}'
GET/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/streamguest
Merge job stream

Server-sent events: line, phase, telemetry, state, cleanup, error, result, done.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
job_uidstringpathyes
afterintegerqueryno
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1/merge/jobs/{job_uid}/stream'
POST/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/cancelMember
Cancel merge job

Cancels a running merge job; cleanup always runs. Starter or repository administrators.

FieldTypeLocationRequired
namestringpathyes
numberintegerpathyes
job_uidstringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/merge/jobs/{job_uid}/cancel'
POST/repos/{name}/settings/pullsMember
Pull request settings

Allowed merge styles, default style, branch deletion default, manual merge, merge detection and assisted merging.

FieldTypeLocationRequired
namestringpathyes
merge_stylesstringbodyno
default_merge_stylestringbodyno
assisted_mergebooleanbodyno
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/settings/pulls'
POST/admin/users/{uid}/login-asAdmin
Impersonate account

Switches into the account with a stacked session. Senior administrators and deactivated accounts are refused.

FieldTypeLocationRequired
uidstringpathyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/admin/users/{uid}/login-as'
POST/admin/login-as/exitAdmin
Exit impersonation

Deletes the impersonated session and restores the administrator cookie.

curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/admin/login-as/exit'
58.4ms