[{"data":1,"prerenderedAt":772},["ShallowReactive",2],{"navigation_docs":3,"-platforms-pushin":104,"-platforms-pushin-surround":767},[4,56],{"title":5,"path":6,"stem":7,"children":8,"icon":55},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47,51],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Authentication","\u002Fguide\u002Fauth","1.guide\u002F02.auth",{"title":16,"path":17,"stem":18},"Repositories","\u002Fguide\u002Frepositories","1.guide\u002F03.repositories",{"title":20,"path":21,"stem":22},"Issues","\u002Fguide\u002Fissues","1.guide\u002F04.issues",{"title":24,"path":25,"stem":26},"Pull requests","\u002Fguide\u002Fpull-requests","1.guide\u002F05.pull-requests",{"title":28,"path":29,"stem":30},"Review threads","\u002Fguide\u002Fthreads","1.guide\u002F06.threads",{"title":32,"path":33,"stem":34},"Commits, CI and releases","\u002Fguide\u002Fcommits","1.guide\u002F07.commits",{"title":36,"path":37,"stem":38},"Contribution templates","\u002Fguide\u002Ftemplates","1.guide\u002F08.templates",{"title":40,"path":41,"stem":42},"Code search","\u002Fguide\u002Fcode-search","1.guide\u002F09.code-search",{"title":44,"path":45,"stem":46},"Agents","\u002Fguide\u002Fagents","1.guide\u002F10.agents",{"title":48,"path":49,"stem":50},"Custom providers","\u002Fguide\u002Fcustom","1.guide\u002F11.custom",{"title":52,"path":53,"stem":54},"Explorer","\u002Fguide\u002Fexplorer","1.guide\u002F12.explorer","i-lucide-book-open",{"title":57,"path":58,"stem":59,"children":60,"icon":103},"Platforms","\u002Fplatforms","2.platforms\u002F0.index",[61,63,67,71,75,79,83,87,91,95,99],{"title":62,"path":58,"stem":59},"Overview",{"title":64,"path":65,"stem":66},"GitHub","\u002Fplatforms\u002Fgithub","2.platforms\u002F01.github",{"title":68,"path":69,"stem":70},"GitLab","\u002Fplatforms\u002Fgitlab","2.platforms\u002F02.gitlab",{"title":72,"path":73,"stem":74},"Gitea","\u002Fplatforms\u002Fgitea","2.platforms\u002F03.gitea",{"title":76,"path":77,"stem":78},"Bitbucket","\u002Fplatforms\u002Fbitbucket","2.platforms\u002F04.bitbucket",{"title":80,"path":81,"stem":82},"Gitee","\u002Fplatforms\u002Fgitee","2.platforms\u002F05.gitee",{"title":84,"path":85,"stem":86},"Azure DevOps","\u002Fplatforms\u002Fazure-devops","2.platforms\u002F06.azure-devops",{"title":88,"path":89,"stem":90},"GitCafe","\u002Fplatforms\u002Fgitcafe","2.platforms\u002F07.gitcafe",{"title":92,"path":93,"stem":94},"Pushin.eu","\u002Fplatforms\u002Fpushin","2.platforms\u002F08.pushin",{"title":96,"path":97,"stem":98},"GitBucket","\u002Fplatforms\u002Fgitbucket","2.platforms\u002F09.gitbucket",{"title":100,"path":101,"stem":102},"Artifacts","\u002Fplatforms\u002Fartifacts","2.platforms\u002F10.artifacts","i-lucide-library",{"id":105,"title":92,"body":106,"description":759,"extension":760,"links":761,"meta":762,"navigation":156,"path":93,"seo":764,"stem":94,"__hash__":766},"docs\u002F2.platforms\u002F08.pushin.md",{"type":107,"value":108,"toc":747},"minimark",[109,113,118,310,318,321,340,358,376,381,387,409,424,427,438,442,455,557,561,605,609,613,616,619,630,637,641,644,650,683,688,716,720,733,743],[110,111],"platform-facts",{"platform":112},"pushin",[114,115,117],"h2",{"id":116},"read-a-pushineu-repository","Read a Pushin.eu repository",[119,120,125],"pre",{"className":121,"code":122,"language":123,"meta":124,"style":124},"language-ts shiki shiki-themes forges forges forges","import { createProvider } from \"@agntn\u002Fforges\";\n\nconst pushin = await createProvider(\"pushin\", {\n  token: process.env.PUSHIN_TOKEN ?? \"\",\n});\n\nconst repo = { owner: \"pjullrich\", repo: \"pushin\" };\nconst tracker = await pushin.repos.get(repo);\nconst issues = await pushin.issues.list(repo, { state: \"all\" });\nconst comments = await pushin.issues.listComments({ ...repo, number: 68 });\n","ts","",[126,127,128,151,158,186,201,207,212,236,257,284],"code",{"__ignoreMap":124},[129,130,133,137,141,144,148],"span",{"class":131,"line":132},"line",1,[129,134,136],{"class":135},"skH_V","import",[129,138,140],{"class":139},"s38Sx"," { createProvider } ",[129,142,143],{"class":135},"from",[129,145,147],{"class":146},"shU9J"," \"@agntn\u002Fforges\"",[129,149,150],{"class":139},";\n",[129,152,154],{"class":131,"line":153},2,[129,155,157],{"emptyLinePlaceholder":156},true,"\n",[129,159,161,164,167,170,173,177,180,183],{"class":131,"line":160},3,[129,162,163],{"class":135},"const",[129,165,166],{"class":139}," pushin ",[129,168,169],{"class":135},"=",[129,171,172],{"class":135}," await",[129,174,176],{"class":175},"sK71F"," createProvider",[129,178,179],{"class":139},"(",[129,181,182],{"class":146},"\"pushin\"",[129,184,185],{"class":139},", {\n",[129,187,189,192,195,198],{"class":131,"line":188},4,[129,190,191],{"class":139},"  token: process.env.PUSHIN_TOKEN ",[129,193,194],{"class":135},"??",[129,196,197],{"class":146}," \"\"",[129,199,200],{"class":139},",\n",[129,202,204],{"class":131,"line":203},5,[129,205,206],{"class":139},"});\n",[129,208,210],{"class":131,"line":209},6,[129,211,157],{"emptyLinePlaceholder":156},[129,213,215,217,220,222,225,228,231,233],{"class":131,"line":214},7,[129,216,163],{"class":135},[129,218,219],{"class":139}," repo ",[129,221,169],{"class":135},[129,223,224],{"class":139}," { owner: ",[129,226,227],{"class":146},"\"pjullrich\"",[129,229,230],{"class":139},", repo: ",[129,232,182],{"class":146},[129,234,235],{"class":139}," };\n",[129,237,239,241,244,246,248,251,254],{"class":131,"line":238},8,[129,240,163],{"class":135},[129,242,243],{"class":139}," tracker ",[129,245,169],{"class":135},[129,247,172],{"class":135},[129,249,250],{"class":139}," pushin.repos.",[129,252,253],{"class":175},"get",[129,255,256],{"class":139},"(repo);\n",[129,258,260,262,265,267,269,272,275,278,281],{"class":131,"line":259},9,[129,261,163],{"class":135},[129,263,264],{"class":139}," issues ",[129,266,169],{"class":135},[129,268,172],{"class":135},[129,270,271],{"class":139}," pushin.issues.",[129,273,274],{"class":175},"list",[129,276,277],{"class":139},"(repo, { state: ",[129,279,280],{"class":146},"\"all\"",[129,282,283],{"class":139}," });\n",[129,285,287,289,292,294,296,298,301,304,307],{"class":131,"line":286},10,[129,288,163],{"class":135},[129,290,291],{"class":139}," comments ",[129,293,169],{"class":135},[129,295,172],{"class":135},[129,297,271],{"class":139},[129,299,300],{"class":175},"listComments",[129,302,303],{"class":139},"({ ",[129,305,306],{"class":135},"...",[129,308,309],{"class":139},"repo, number: 68 });\n",[311,312,313,314,317],"p",{},"Public reads are free without a token, so the ",[126,315,316],{},"?? \"\""," above is enough to start. Writes need one.",[311,319,320],{},"The API is GitHub shaped, with fewer rooms. So most of this page is about the rooms that aren't there.",[311,322,323,324,327,328,331,332,335,336,339],{},"The default API base is ",[126,325,326],{},"https:\u002F\u002Fpushin.eu\u002Fapi\u002Fv1",". forges adds ",[126,329,330],{},"\u002Fapi\u002Fv1"," when missing. For a self hosted instance, pass its bare root as ",[126,333,334],{},"baseURL",". The MCP server and Pi\u002FOMP extensions use ",[126,337,338],{},"FORGES_PUSHIN_BASE_URL",".",[311,341,342,343,346,347,350,351,354,355,339],{},"IDs are strings, such as ",[126,344,345],{},"repo_033njmWmzIFsMhzbVEe4Kh"," and ",[126,348,349],{},"iss_0350XjM9mMevqk8sUGfTkU",". Issue and pull request numbers stay numbers. Lists page with a ",[126,352,353],{},"Link"," header, like GitHub. forges returns the next page as ",[126,356,357],{},"nextCursor",[311,359,360,361,364,365,368,369,372,373,339],{},"Cloning? ",[126,362,363],{},"cloneUrl"," points to ",[126,366,367],{},"git.pushin.eu",", not ",[126,370,371],{},"pushin.eu",". The code has a different front door. Pi and OMP recognize HTTPS remotes on both hosts and SSH remotes at ",[126,374,375],{},"git@git.pushin.eu",[377,378,380],"h3",{"id":379},"where-does-the-token-come-from","Where does the token come from?",[311,382,383,386],{},[126,384,385],{},"@agntn\u002Fcredentials\u002Fpushin"," checks these sources in order:",[388,389,390,397,402],"ol",{},[391,392,393,394,339],"li",{},"An explicit ",[126,395,396],{},"{ token }",[391,398,399,339],{},[126,400,401],{},"PUSHIN_TOKEN",[391,403,404,405,408],{},"The instance login saved by ",[126,406,407],{},"pun",", the Pushin CLI.",[311,410,411,412,415,416,419,420,423],{},"Run ",[126,413,414],{},"pun login"," to save a login. It goes into ",[126,417,418],{},"pun\u002Fhosts.json"," under the XDG config directory. ",[126,421,422],{},"PUN_CONFIG_DIR"," changes that location.",[311,425,426],{},"Create a personal access token in Pushin.eu Settings, under Security, Personal access tokens. Pushin.eu wants two factor auth on first. forges sends the token as a Bearer token.",[311,428,429,430,433,434,437],{},"Pass ",[126,431,432],{},"{ token: \"\" }"," to read public repositories anonymously. ",[126,435,436],{},"users.authenticated"," needs a token.",[114,439,441],{"id":440},"what-it-reads","What it reads",[311,443,444,445,447,448,451,452,339],{},"Endpoints are relative to ",[126,446,330],{},". In the table, ",[126,449,450],{},"…"," means ",[126,453,454],{},"\u002Frepos\u002F:owner\u002F:repo",[456,457,458,471],"table",{},[459,460,461],"thead",{},[462,463,464,468],"tr",{},[465,466,467],"th",{},"Resource",[465,469,470],{},"Endpoint",[472,473,474,484,500,512,525,538],"tbody",{},[462,475,476,479],{},[477,478,16],"td",{},[477,480,481],{},[126,482,483],{},"GET …",[462,485,486,488],{},[477,487,20],{},[477,489,490,493,494,493,497],{},[126,491,492],{},"GET …\u002Fissues",", ",[126,495,496],{},"GET …\u002Fissues\u002F:number",[126,498,499],{},"GET …\u002Fissues\u002F:number\u002Fcomments",[462,501,502,504],{},[477,503,24],{},[477,505,506,493,509],{},[126,507,508],{},"GET …\u002Fpulls",[126,510,511],{},"GET …\u002Fpulls\u002F:number",[462,513,514,516],{},[477,515,28],{},[477,517,518,521,522],{},[126,519,520],{},"GET …\u002Fpulls\u002F:number\u002Fcomments",", resolved with ",[126,523,524],{},"PATCH …\u002Fpulls\u002Fcomments\u002F:id",[462,526,527,530],{},[477,528,529],{},"Releases",[477,531,532,493,535],{},[126,533,534],{},"GET …\u002Freleases",[126,536,537],{},"GET …\u002Freleases\u002Ftags\u002F:tag",[462,539,540,543],{},[477,541,542],{},"Writes",[477,544,545,493,548,493,551,493,554],{},[126,546,547],{},"POST …\u002Fissues",[126,549,550],{},"POST …\u002Fpulls",[126,552,553],{},"POST …\u002Freleases",[126,555,556],{},"POST …\u002Fpulls\u002F:number\u002Fcomments\u002F:id\u002Freplies",[114,558,560],{"id":559},"what-comes-back","What comes back",[562,563,564,570,577,580,583,586,589,592,595,598],"ul",{},[391,565,566,567,339],{},"Review threads come from the pull request's inline comments. Replies join the thread they answer. A thread is resolved when its root comment is resolved, and a range keeps its first line as ",[126,568,569],{},"startLine",[391,571,572,573,576],{},"A merged pull request keeps its ",[126,574,575],{},"mergeCommitSha",", which the upstream adapter leaves in the raw payload.",[391,578,579],{},"The upstream adapter collects threads from submitted reviews only. Pushin.eu leaves standalone inline comments out of every review. Reading reviews alone would lose them, a bad deal for a code review.",[391,581,582],{},"Replying, resolving and unresolving need a token. Resolving also needs moderator rights.",[391,584,585],{},"More than 2000 inline comments produces a 413, not a partial thread list.",[391,587,588],{},"Issue and pull request events contain comments only.",[391,590,591],{},"An author imported from another forge has a login but no account ID.",[391,593,594],{},"Review verdicts are web UI only. The API can't create or submit a review.",[391,596,597],{},"The inline comment shape is tested against Pushin.eu's OpenAPI schema. No public pull request had inline comments when this provider was written.",[391,599,600,601,604],{},"Repository, issue, comment and release reads were checked live on ",[126,602,603],{},"pjullrich\u002Fpushin",", the tracker for Pushin.eu itself.",[114,606,608],{"id":607},"gotchas","Gotchas",[377,610,612],{"id":611},"why-do-commits-and-files-return-501-on-a-git-forge","Why do commits and files return 501 on a Git forge?",[311,614,615],{},"Because Pushin.eu's REST API has no route for them. No commit log, no contents, trees, tags, branches or comparisons. forges returns 501 before making a request.",[311,617,618],{},"Without a token, the 501 also suggests passing one. A token doesn't add the missing routes. Nice try though.",[311,620,621,622,625,626,629],{},"Pushin.eu silently caps ",[126,623,624],{},"perPage"," at 100. Anonymous reads share a rate limit, and anonymous live calls saw ",[126,627,628],{},"x-ratelimit-limit: 90"," per window.",[311,631,632,633,636],{},"The explorer at ",[126,634,635],{},"forges.agntn.dev"," doesn't run Pushin.eu.",[114,638,640],{"id":639},"what-isnt-there","What isn't there",[311,642,643],{},"These operations return 501 with a sentence instead of pretending.",[311,645,646],{},[647,648,649],"strong",{},"Pushin.eu has no route for:",[562,651,652,666,674,677,680],{},[391,653,654,493,657,493,660,346,663,339],{},[126,655,656],{},"commits.*",[126,658,659],{},"repos.readContents",[126,661,662],{},"repos.listTree",[126,664,665],{},"repos.listTags",[391,667,668,346,671,339],{},[126,669,670],{},"pullRequests.listFiles",[126,672,673],{},"pullRequests.merge",[391,675,676],{},"Issue edits. An issue can be read and created, never closed through the API.",[391,678,679],{},"Code search, issue search and pull request search.",[391,681,682],{},"Reactions, issue fields, sub issues and contribution templates.",[311,684,685],{},[647,686,687],{},"Pushin.eu has the route, forges doesn't use it yet:",[562,689,690,704,713],{},[391,691,692,493,695,493,698,346,701,339],{},[126,693,694],{},"ciRuns.*",[126,696,697],{},"pullRequests.listChecks",[126,699,700],{},"commits.listChecks",[126,702,703],{},"pullRequests.listReviews",[391,705,706,493,709,712],{},[126,707,708],{},"users.get",[126,710,711],{},"repos.list"," for an organization and pull request edits.",[391,714,715],{},"Posting a new issue or pull request comment.",[114,717,719],{"id":718},"where-it-lives","Where it lives",[311,721,722,725,726,729,730,339],{},[126,723,724],{},"PushinProvider"," lives in ",[126,727,728],{},"src\u002Fproviders\u002Fpushin.ts",". Import it from ",[126,731,732],{},"@agntn\u002Fforges\u002Fpushin",[311,734,735,736,739,740,742],{},"It uses the upstream ",[126,737,738],{},"forges\u002Fpushin"," adapter and ",[126,741,385],{},". Upstream forges marks its Pushin adapter experimental.",[744,745,746],"style",{},"html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":124,"searchDepth":153,"depth":153,"links":748},[749,752,753,754,757,758],{"id":116,"depth":153,"text":117,"children":750},[751],{"id":379,"depth":160,"text":380},{"id":440,"depth":153,"text":441},{"id":559,"depth":153,"text":560},{"id":607,"depth":153,"text":608,"children":755},[756],{"id":611,"depth":160,"text":612},{"id":639,"depth":153,"text":640},{"id":718,"depth":153,"text":719},"Read public Pushin.eu repositories, issues, pull requests and review threads with forges, without a token.","md",null,{"icon":763},"i-lucide-euro",{"title":765,"description":759},"Read Pushin.eu issues, pull requests and review threads with forges","zuTQm1q9RVXabhcr3VWjN29kfuI5qTLBZ1mHJFrmOkM",[768,770],{"title":88,"path":89,"stem":90,"description":769,"children":-1},"GitCafe repositories, pull requests, review threads and files in the same shapes as every other forge. Public ones read without a token.",{"title":96,"path":97,"stem":98,"description":771,"children":-1},"The GitHub provider pointed at a GitBucket \u002Fapi\u002Fv3. What GitBucket does not serve fails with a sentence, not a 404.",1795734048162]