{"endpoints":[{"cli":"maintainer-mode prs","description":"Open pull requests in one queue, paged. foryou: what login maintains, owns, changed or tagged; for your own login, also the packages of your machines and what you watch, in the order of the page. unowned: no maintainer. firsttime: first contributions with no review yet, the oldest first. bumps: version bumps; with login, only what login maintains. all: every pull request that needs review. ready: ready to merge; section picks a list of the committer view. Every queue but ready takes sort, checks, reviews, conflicts, base and q, as the filter bar of the page. For your own login, foryou, unowned, firsttime and all leave out what you hid, and foryou rows have why. Each row has treewide: null, or the packages and modules that a treewide pull request touches; foryou puts those rows last. Each row has too_large: null, or the changed files of a pull request too large to link to packages and people; its files are empty.","parameters":[{"description":"the queue: all by default","name":"queue","required":false,"type":"string","values":["foryou","unowned","firsttime","bumps","all","ready"]},{"description":"with queue=ready: ready by default; yours needs your own login and a committer","name":"section","required":false,"type":"string","values":["ready","yours","maintainer_approved","security","backports","waiting"]},{"description":"whose queue, for foryou and bumps; for foryou, the caller by default","name":"login","required":false,"type":"string"},{"description":"not with ready: the order of the queue by default","name":"sort","required":false,"type":"string","values":["oldest","newest","updated"]},{"description":"not with ready: keep the pull requests whose checks pass, fail or are pending","name":"checks","required":false,"type":"string","values":["pass","fail","pending"]},{"description":"not with ready: none keeps those with no review by another person yet","name":"reviews","required":false,"type":"string","values":["none","some"]},{"description":"not with ready: hide drops those with a conflict","name":"conflicts","required":false,"type":"string","values":["hide"]},{"description":"not with ready: keep one base branch, like master or staging","name":"base","required":false,"type":"string"},{"description":"not with ready: keep the pull requests with a label that contains this text, in any case, like python; commas for several, all needed","name":"label","required":false,"type":"string"},{"description":"not with ready: keep the titles with a word that starts with this text; takes the other filters as qualifiers too, as checks:fail reviews:none base:staging label:python sort:oldest, and problems names the words it does not know","name":"q","required":false,"type":"string"},{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/prs","private":false},{"cli":"maintainer-mode pr","description":"One pull request: its state, its reviews, its place in the queues, the packages and modules it touches, whether it is treewide or too large to link, its files, its discussion, the merge decision, and the branches and channels that hold its merge commit. A pull request older than the synced data comes from the archive; `from` says which.","parameters":[{"description":"the number of the pull request","name":"number","required":true,"type":"integer"}],"path":"/api/v1/prs/<number>","private":false},{"cli":"maintainer-mode record","description":"The public profile of a GitHub login: facts (committer, teams, first pull request), its open and recent pull requests, the areas it changes, its public flake sets, its review record, and the packages and NixOS modules whose meta.maintainers or meta.teams name it, with their flags. It never ranks people.","parameters":[{"description":"a GitHub login","name":"login","required":true,"type":"string"}],"path":"/api/v1/people/<login>","private":false},{"cli":"maintainer-mode needs","description":"Your Needs you list, the most urgent first: advisories on your machines, reviews and reminders on your own pull requests, pull requests to review, packages to update. It also gives the follow-up plan of each of your open pull requests, and the events of your own pull requests in the last 30 days.","parameters":[{"description":"keep the items of one mood: all by default","name":"mood","required":false,"type":"string","values":["all","mine","machines","review","maintain"]}],"path":"/api/v1/needs","private":true},{"cli":"maintainer-mode mine","description":"Your packages, as the filters of /packages show them: mine (all of them), machines (the packages of your sets), maintain, or watch. The packages of your machines come first, then what you maintain, then what you watch. In each group, what needs attention comes first. Each row has its health flags and why it is in the list.","parameters":[{"description":"mine by default","name":"filter","required":false,"type":"string","values":["mine","machines","maintain","watch"]},{"description":"with filter=machines: the name of one of your sets","name":"set","required":false,"type":"string"},{"description":"with set: an output label of that set, like web-1; keep the packages of that output","name":"output","required":false,"type":"string"},{"description":"keep the rows whose name holds this text; takes the qualifiers of /api/v1/search, such as is:outdated -has:pr","name":"q","required":false,"type":"string"},{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/mine","private":true},{"cli":"maintainer-mode get","description":"Your named package sets: machine reports and flakes, private and public, with their packages, their source, their expiry and the state of their last scan. A set that you sent with --with-outputs also has its output labels, such as host names, and the outputs that hold each package.","parameters":[{"description":"the name of one of your sets, like infra","name":"set","required":false,"type":"string"},{"description":"with set: an output label of that set, like web-1; keep the packages of that output","name":"output","required":false,"type":"string"}],"path":"/api/v1/sets","private":true},{"cli":"maintainer-mode get","description":"Your inbox, the newest first: the events of what you watch, of the packages of your sets and of your own pull requests, with the unread count. Reading it marks nothing read.","parameters":[{"description":"keep the events of one kind","name":"kind","required":false,"type":"string","values":["mine","pr","issue","advisory","release","build"]},{"description":"keep the events of one subject, like pkg:hello","name":"sub","required":false,"type":"string"},{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/inbox","private":true},{"cli":"maintainer-mode get","description":"Your own progress: your reviews this week and this month, your weekly goal, the authors your reviews helped, and your badges. It compares you with nobody.","parameters":[],"path":"/api/v1/progress","private":true},{"cli":"maintainer-mode get","description":"The rows of /committers: everyone with a status about commit access (active committer, committer with no merge in 6 months, not a committer, former committer), with the facts of their whole history: pull requests reviewed, approvals that a committer merged, own pull requests merged, pull requests merged for others, first pull request, what they maintain. Only for the members of the team that grants commit access; 403 for everyone else. No score: the order is the one fact that sort names.","parameters":[{"description":"keep one status: all by default","name":"status","required":false,"type":"string","values":["all","active","inactive","candidate","former"]},{"description":"the fact that orders the rows: reviews (the last 12 months) by default","name":"sort","required":false,"type":"string","values":["reviews","reviews_all","approved","merged","merges","last_merge","first","maintains"]},{"description":"for the people who are not committers: keep those who reviewed at least this many pull requests in the last 12 months, 10 by default","name":"min","required":false,"type":"integer"},{"description":"part of a login","name":"q","required":false,"type":"string"},{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/committers","private":true},{"cli":"maintainer-mode search","description":"What the search box of the site finds: packages, NixOS modules and areas of the tree with their health flags, maintainers, pull requests whose title has the words, and advisories with that id. `page` is the page the site opens at once, if any. A qualifier in q, as on GitHub and nixkeeper (is:outdated, -has:pr, in:python3Packages, by:login, team:name, sort:az, order:reverse), lists the packages of all of nixpkgs that it keeps, the highest risk first; see /search for the words. results is one page of them, with total and next_cursor; problems names the words the site does not know.","parameters":[{"description":"an attribute, a package name, nixos/NAME, a module file, a path, @login, #NUMBER, words of a pull request title, a CVE, GHSA or NIXPKGS id, or qualifiers such as is:outdated","name":"q","required":true,"type":"string"},{"description":"rows of results per page, 50 by default and 200 at most, and at most this many of each other kind; the search box asks for 5","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/search","private":false},{"cli":"maintainer-mode first","description":"Packages for a first contribution: small packages under pkgs/by-name with no maintainer, and a pull request to review or an issue to fix from the last 60 days. The newest task comes first.","parameters":[{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/first","private":false},{"cli":"maintainer-mode get","description":"Packages that need help: an open advisory in master, the highest risk first.","parameters":[{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/need-help","private":false},{"cli":"maintainer-mode get","description":"Zero Hydra Failures: the campaign, its Hydra jobsets, the failing builds now and at the start, the burndown, and the failing jobs of one tab, paged. yours: the packages the caller maintains or watches. unowned: packages with no maintainer that fail themselves. all: every failing job. pick: one direct failure at random, a package with no maintainer when there is one.","parameters":[{"description":"the tab: all by default","name":"tab","required":false,"type":"string","values":["yours","unowned","all","pick"]},{"description":"keep the jobs whose name or maintainer has this","name":"q","required":false,"type":"string"},{"description":"rows per page: 50 by default, 200 at most","name":"limit","required":false,"type":"integer"},{"description":"the next_cursor of the page before","name":"cursor","required":false,"type":"string"}],"path":"/api/v1/zhf","private":false},{"cli":"maintainer-mode export","description":"The public package list of the current index: pname and version of each attribute, gzip.","parameters":[],"path":"/api/v1/packages/index","private":false},{"cli":"maintainer-mode show","description":"One nixpkgs package: version, newest upstream release, last Hydra build, open advisories, maintainers, and its issues and pull requests.","parameters":[{"description":"an attribute or a package name, like hello or python3Packages.requests","name":"name","required":true,"type":"string"}],"path":"/api/v1/packages/<name>","private":false},{"cli":"maintainer-mode show","description":"One NixOS module: its NixOS test on Hydra, maintainers, and its issues and pull requests.","parameters":[{"description":"the module file, like nixos/modules/services/web-servers/nginx/default.nix, or nixos/NAME","name":"file","required":true,"type":"string"}],"path":"/api/v1/modules/<file>","private":false},{"cli":"maintainer-mode show","description":"A path of the nixpkgs tree: the packages and modules under it with their flags, and its issues and pull requests.","parameters":[{"description":"a nixpkgs path, like pkgs/development/python-modules","name":"path","required":true,"type":"string"}],"path":"/api/v1/areas/<path>","private":false},{"cli":"maintainer-mode show","description":"Redirects a name to its package, module or area.","parameters":[{"description":"a package, nixos/NAME or a path","name":"name","required":true,"type":"string"}],"path":"/api/v1/find/<name>","private":false},{"cli":"maintainer-mode metrics","description":"The state of nixpkgs, month by month: pull request flow, review times and package health. Aggregates only: no figure names a person.","parameters":[],"path":"/api/v1/metrics","private":false},{"cli":"maintainer-mode get","description":"The counts and the rules of the queues.","parameters":[],"path":"/api/v1/status","private":false},{"cli":"maintainer-mode get","description":"What the server has read from GitHub and the other sources, and how fresh it is.","parameters":[],"path":"/api/v1/sync","private":false},{"cli":null,"description":"The event log, as Server-Sent Events.","parameters":[{"description":"keep one event type","name":"type","required":false,"type":"string"},{"description":"keep one issue or pull request","name":"number","required":false,"type":"integer"},{"description":"keep one login","name":"actor","required":false,"type":"string"},{"description":"start after this event id","name":"after","required":false,"type":"integer"}],"path":"/api/v1/events","private":false},{"cli":"maintainer-mode get","description":"One stored issue or pull request of a public repository that the server archives.","parameters":[{"description":"the owner of the repository, like NixOS","name":"owner","required":true,"type":"string"},{"description":"the repository, like nixpkgs","name":"repo","required":true,"type":"string"},{"description":"the number of the issue or pull request","name":"number","required":true,"type":"integer"}],"path":"/api/v1/archive/<owner>/<repo>/<number>","private":false},{"cli":"maintainer-mode submit","description":"Uploads a strict package report, with an upload token.","parameters":[],"path":"POST /api/v1/reports","private":false},{"cli":"maintainer-mode login","description":"Starts a `maintainer-mode login`: a device code and a user code.","parameters":[],"path":"POST /api/v1/login","private":false},{"cli":"maintainer-mode login","description":"The upload token, once the person confirms the code on /login/cli.","parameters":[],"path":"POST /api/v1/login/poll","private":false}],"pages":[{"api":["/api/v1/needs","/api/v1/inbox","/api/v1/mine?filter=mine","/api/v1/people/<login>","/api/v1/first","/api/v1/need-help","/api/v1/prs?queue=unowned","/api/v1/prs?queue=ready"],"page":"/"},{"api":["/api/v1/needs?mood=all"],"page":"/?mood=all"},{"api":["/api/v1/needs?mood=mine"],"page":"/?mood=mine"},{"api":["/api/v1/needs?mood=machines"],"page":"/?mood=machines"},{"api":["/api/v1/needs?mood=review"],"page":"/?mood=review"},{"api":["/api/v1/needs?mood=maintain"],"page":"/?mood=maintain"},{"api":["/api/v1/first"],"page":"/#first"},{"api":["/api/v1/prs"],"page":"/review"},{"api":["/api/v1/prs?queue=foryou"],"page":"/review?tab=foryou"},{"api":["/api/v1/prs?queue=unowned"],"page":"/review?tab=unowned"},{"api":["/api/v1/prs?queue=firsttime"],"page":"/review?tab=firsttime"},{"api":["/api/v1/prs?queue=bumps"],"page":"/review?tab=bumps"},{"api":["/api/v1/prs?queue=bumps&login=<login>"],"page":"/review?tab=bumps&filter=mine"},{"api":["/api/v1/prs?queue=bumps&sort=newest&checks=fail"],"page":"/review?tab=bumps&sort=newest&checks=fail"},{"api":["/api/v1/prs?queue=all"],"page":"/review?tab=all"},{"api":["/api/v1/prs?queue=all&sort=newest&checks=fail"],"page":"/review?tab=all&sort=newest&checks=fail"},{"api":[],"page":"/review?tab=foryou&hidden=1","why":"the API leaves out what you hid and gives its count as hidden"},{"api":["/api/v1/prs?queue=ready"],"page":"/review?tab=ready"},{"api":["/api/v1/prs?queue=ready&section=ready"],"page":"/review?tab=ready&section=ready"},{"api":["/api/v1/prs?queue=ready&section=yours"],"page":"/review?tab=ready&section=yours"},{"api":["/api/v1/prs?queue=ready&section=maintainer_approved"],"page":"/review?tab=ready&section=maintainer_approved"},{"api":["/api/v1/prs?queue=ready&section=security"],"page":"/review?tab=ready&section=security"},{"api":["/api/v1/prs?queue=ready&section=backports"],"page":"/review?tab=ready&section=backports"},{"api":["/api/v1/prs?queue=ready&section=waiting"],"page":"/review?tab=ready&section=waiting"},{"api":["/api/v1/metrics"],"page":"/state"},{"api":["/api/v1/metrics"],"page":"/state?range=2y"},{"api":["/api/v1/metrics"],"page":"/state?range=all"},{"api":["/api/v1/status"],"page":"/state?tab=rules"},{"api":[],"page":"/state?tab=docs","why":"the docs are the Markdown files in docs/ of the repository"},{"api":["/api/v1/sync"],"page":"/state?tab=status"},{"api":["/api/v1/zhf"],"page":"/zhf"},{"api":["/api/v1/zhf?tab=yours"],"page":"/zhf?tab=yours"},{"api":["/api/v1/zhf?tab=unowned"],"page":"/zhf?tab=unowned"},{"api":["/api/v1/zhf?tab=all"],"page":"/zhf?tab=all"},{"api":["/api/v1/zhf?tab=pick"],"page":"/zhf?tab=pick"},{"api":["/api/v1/search","/api/v1/mine"],"page":"/packages"},{"api":["/api/v1/search?q=<name>"],"page":"/packages?q="},{"api":["/api/v1/search"],"page":"/search"},{"api":["/api/v1/search?q=<words>"],"page":"/search?q="},{"api":["/api/v1/mine?filter=mine"],"page":"/packages?filter=mine"},{"api":["/api/v1/mine?filter=machines","/api/v1/sets"],"page":"/packages?filter=machines"},{"api":["/api/v1/mine?filter=machines&set=<name>","/api/v1/sets?set=<name>"],"page":"/packages?filter=machines&set="},{"api":["/api/v1/mine?filter=machines&set=<name>&output=<label>","/api/v1/sets?set=<name>&output=<label>"],"page":"/packages?filter=machines&set=&output="},{"api":["/api/v1/mine?filter=maintain"],"page":"/packages?filter=maintain"},{"api":["/api/v1/mine?filter=watch"],"page":"/packages?filter=watch"},{"api":["/api/v1/search"],"page":"/packages?filter=all"},{"api":["/api/v1/packages/<name>"],"page":"/p/:attr"},{"api":["/api/v1/modules/<file>"],"page":"/m/*file"},{"api":["/api/v1/packages/<name>"],"page":"/part/p/:attr"},{"api":["/api/v1/packages/<name>"],"page":"/part/bot/:attr"},{"api":["/api/v1/modules/<file>"],"page":"/part/m/*file"},{"api":["/api/v1/areas/<path>"],"page":"/a/*path"},{"api":["/api/v1/people/<login>"],"page":"/u/:login"},{"api":["/api/v1/people/<login>"],"page":"/u/:login?tab=reviews"},{"api":["/api/v1/people/<login>"],"page":"/u/:login?tab=maintains"},{"api":["/api/v1/people/<login>"],"page":"/u/:login?tab=flakes"},{"api":["/api/v1/prs/<number>","/api/v1/needs"],"page":"/pr/:number"},{"api":["/api/v1/inbox"],"page":"/inbox"},{"api":["/api/v1/inbox?sub=<key>"],"page":"/inbox?sub="},{"api":["/api/v1/inbox?kind=mine"],"page":"/inbox?kind=mine"},{"api":["/api/v1/inbox?kind=pr"],"page":"/inbox?kind=pr"},{"api":["/api/v1/inbox?kind=issue"],"page":"/inbox?kind=issue"},{"api":["/api/v1/inbox?kind=advisory"],"page":"/inbox?kind=advisory"},{"api":["/api/v1/inbox?kind=release"],"page":"/inbox?kind=release"},{"api":["/api/v1/inbox?kind=build"],"page":"/inbox?kind=build"},{"api":["/api/v1/progress"],"page":"/me/progress"},{"api":["/api/v1/committers"],"page":"/committers"},{"api":["/api/v1/committers?status=all"],"page":"/committers?status=all"},{"api":["/api/v1/committers?status=active"],"page":"/committers?status=active"},{"api":["/api/v1/committers?status=inactive"],"page":"/committers?status=inactive"},{"api":["/api/v1/committers?status=candidate"],"page":"/committers?status=candidate"},{"api":["/api/v1/committers?status=former"],"page":"/committers?status=former"},{"api":["/api/v1/committers?sort=reviews"],"page":"/committers?sort=reviews"},{"api":["/api/v1/committers?sort=reviews_all"],"page":"/committers?sort=reviews_all"},{"api":["/api/v1/committers?sort=approved"],"page":"/committers?sort=approved"},{"api":["/api/v1/committers?sort=merged"],"page":"/committers?sort=merged"},{"api":["/api/v1/committers?sort=merges"],"page":"/committers?sort=merges"},{"api":["/api/v1/committers?sort=last_merge"],"page":"/committers?sort=last_merge"},{"api":["/api/v1/committers?sort=first"],"page":"/committers?sort=first"},{"api":["/api/v1/committers?sort=maintains"],"page":"/committers?sort=maintains"},{"api":["/api/v1/committers?min=1"],"page":"/committers?min=1"},{"api":["/api/v1/committers?min=10"],"page":"/committers?min=10"},{"api":["/api/v1/committers?min=25"],"page":"/committers?min=25"},{"api":["/api/v1/committers?min=50"],"page":"/committers?min=50"},{"api":["/api/v1/sets","/api/v1/progress","/api/v1/needs"],"page":"/me/settings"},{"api":[],"page":"/me/settings#notifications","why":"the kinds that the unread count includes: a setting that only the page changes"},{"api":["/api/v1/needs"],"page":"/me/settings#followup"},{"api":[],"page":"/me/settings#feed","why":"the secret address of your Atom feed; /api/v1/inbox gives its events"},{"api":["/api/v1/sets"],"page":"/me/settings#upload"},{"api":[],"page":"/me/settings#api","why":"the API token: the server shows it once and keeps only its hash"},{"api":[],"page":"/me/settings#tags","why":"a setting; /api/v1/prs?queue=foryou with your own login uses it"},{"api":["/api/v1/progress"],"page":"/me/settings#goal"},{"api":[],"page":"/me/settings#start","why":"the steps of Get started"},{"api":[],"page":"/me/settings#github","why":"fixed text: what the server does with the GitHub token of a session"},{"api":[],"page":"/login/cli","why":"confirms the code of `maintainer-mode login`; it makes an upload token"}],"paging":"lists return at most limit items (default 50, at most 200); pass next_cursor as cursor for the next page","private":"a private endpoint answers only for you: send your session cookie, or Authorization: Bearer <your API token>","version":"0.1.0"}