[{"data":1,"prerenderedAt":720},["ShallowReactive",2],{"navigation_docs":3,"-guide-templates":80,"-guide-templates-surround":715},[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 and CI","\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":79},"Platforms","\u002Fplatforms","2.platforms\u002F0.index",[61,63,67,71,75],{"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},"GitBucket","\u002Fplatforms\u002Fgitbucket","2.platforms\u002F04.gitbucket","i-lucide-library",{"id":81,"title":36,"body":82,"description":708,"extension":709,"links":710,"meta":711,"navigation":213,"path":37,"seo":713,"stem":38,"__hash__":714},"docs\u002F1.guide\u002F08.templates.md",{"type":83,"value":84,"toc":702},"minimark",[85,90,420,440,444,625,629,656,670,676,681,684,688,698],[86,87,89],"h2",{"id":88},"calls","Calls",[91,92,97],"pre",{"className":93,"code":94,"language":95,"meta":96,"style":96},"language-ts shiki shiki-themes github-light github-light poimandres","const page = await forge.contributionTemplates.list(\"owner\", \"repo\", \"issue\", {\n  page: 1,\n  perPage: 20,\n});\n\nfor (const summary of page.items) {\n  console.log(summary.name, summary.scope, summary.inherited, summary.sourcePath);\n}\n\nconst template = await forge.contributionTemplates.get(\n  \"owner\",\n  \"repo\",\n  \"issue\",\n  page.items[0]!.key,\n);\nconsole.log(template.content);\n","ts","",[98,99,100,172,189,202,208,215,243,294,300,305,331,343,354,365,393,398],"code",{"__ignoreMap":96},[101,102,105,109,113,116,120,124,128,131,133,137,140,144,148,150,153,155,158,160,162,164,167,169],"span",{"class":103,"line":104},"line",1,[101,106,108],{"class":107},"s1TYA","const",[101,110,112],{"class":111},"saoiD"," page",[101,114,115],{"class":107}," =",[101,117,119],{"class":118},"sZW6a"," await",[101,121,123],{"class":122},"spVlQ"," forge",[101,125,127],{"class":126},"sKlNE",".",[101,129,130],{"class":122},"contributionTemplates",[101,132,127],{"class":126},[101,134,136],{"class":135},"sULi6","list",[101,138,139],{"class":126},"(",[101,141,143],{"class":142},"scVjq","\"",[101,145,147],{"class":146},"sQ7BG","owner",[101,149,143],{"class":142},[101,151,152],{"class":126},", ",[101,154,143],{"class":142},[101,156,157],{"class":146},"repo",[101,159,143],{"class":142},[101,161,152],{"class":126},[101,163,143],{"class":142},[101,165,166],{"class":146},"issue",[101,168,143],{"class":142},[101,170,171],{"class":126},", {\n",[101,173,175,179,182,186],{"class":103,"line":174},2,[101,176,178],{"class":177},"snHMy","  page",[101,180,181],{"class":126},":",[101,183,185],{"class":184},"siHFe"," 1",[101,187,188],{"class":126},",\n",[101,190,192,195,197,200],{"class":103,"line":191},3,[101,193,194],{"class":177},"  perPage",[101,196,181],{"class":126},[101,198,199],{"class":184}," 20",[101,201,188],{"class":126},[101,203,205],{"class":103,"line":204},4,[101,206,207],{"class":126},"});\n",[101,209,211],{"class":103,"line":210},5,[101,212,214],{"emptyLinePlaceholder":213},true,"\n",[101,216,218,222,225,227,230,233,235,237,240],{"class":103,"line":217},6,[101,219,221],{"class":220},"stCPd","for",[101,223,224],{"class":126}," (",[101,226,108],{"class":107},[101,228,229],{"class":111}," summary",[101,231,232],{"class":107}," of",[101,234,112],{"class":122},[101,236,127],{"class":126},[101,238,239],{"class":122},"items",[101,241,242],{"class":126},") {\n",[101,244,246,249,251,254,256,259,261,264,266,268,270,273,275,277,279,282,284,286,288,291],{"class":103,"line":245},7,[101,247,248],{"class":122},"  console",[101,250,127],{"class":126},[101,252,253],{"class":135},"log",[101,255,139],{"class":126},[101,257,258],{"class":122},"summary",[101,260,127],{"class":126},[101,262,263],{"class":122},"name",[101,265,152],{"class":126},[101,267,258],{"class":122},[101,269,127],{"class":126},[101,271,272],{"class":122},"scope",[101,274,152],{"class":126},[101,276,258],{"class":122},[101,278,127],{"class":126},[101,280,281],{"class":122},"inherited",[101,283,152],{"class":126},[101,285,258],{"class":122},[101,287,127],{"class":126},[101,289,290],{"class":122},"sourcePath",[101,292,293],{"class":126},");\n",[101,295,297],{"class":103,"line":296},8,[101,298,299],{"class":126},"}\n",[101,301,303],{"class":103,"line":302},9,[101,304,214],{"emptyLinePlaceholder":213},[101,306,308,310,313,315,317,319,321,323,325,328],{"class":103,"line":307},10,[101,309,108],{"class":107},[101,311,312],{"class":111}," template",[101,314,115],{"class":107},[101,316,119],{"class":118},[101,318,123],{"class":122},[101,320,127],{"class":126},[101,322,130],{"class":122},[101,324,127],{"class":126},[101,326,327],{"class":135},"get",[101,329,330],{"class":126},"(\n",[101,332,334,337,339,341],{"class":103,"line":333},11,[101,335,336],{"class":142},"  \"",[101,338,147],{"class":146},[101,340,143],{"class":142},[101,342,188],{"class":126},[101,344,346,348,350,352],{"class":103,"line":345},12,[101,347,336],{"class":142},[101,349,157],{"class":146},[101,351,143],{"class":142},[101,353,188],{"class":126},[101,355,357,359,361,363],{"class":103,"line":356},13,[101,358,336],{"class":142},[101,360,166],{"class":146},[101,362,143],{"class":142},[101,364,188],{"class":126},[101,366,368,370,372,374,377,380,383,386,388,391],{"class":103,"line":367},14,[101,369,178],{"class":122},[101,371,127],{"class":126},[101,373,239],{"class":122},[101,375,376],{"class":126},"[",[101,378,379],{"class":184},"0",[101,381,382],{"class":126},"]",[101,384,385],{"class":107},"!",[101,387,127],{"class":126},[101,389,390],{"class":122},"key",[101,392,188],{"class":126},[101,394,396],{"class":103,"line":395},15,[101,397,293],{"class":126},[101,399,401,404,406,408,410,413,415,418],{"class":103,"line":400},16,[101,402,403],{"class":122},"console",[101,405,127],{"class":126},[101,407,253],{"class":135},[101,409,139],{"class":126},[101,411,412],{"class":122},"template",[101,414,127],{"class":126},[101,416,417],{"class":122},"content",[101,419,293],{"class":126},[421,422,423,426,427,429,430,433,434,436,437,439],"p",{},[98,424,425],{},"kind"," is ",[98,428,166],{}," or ",[98,431,432],{},"pull_request",". Lists carry metadata only. A template body can be big, so ",[98,435,327],{}," reads one by the opaque ",[98,438,390],{}," the list gave you. Pass kind and key back unchanged.",[86,441,443],{"id":442},"the-shape","The shape",[91,445,447],{"className":93,"code":446,"language":95,"meta":96,"style":96},"interface ContributionTemplateSummary {\n  kind: \"issue\" | \"pull_request\";\n  key: string;\n  name: string;\n  scope: \"repository\" | \"owner\" | \"group\" | \"instance\" | \"unknown\";\n  inherited: boolean;\n  sourceRepository: string | null;\n  sourcePath: string | null;\n  sourceRef: string | null;\n}\n",[98,448,449,461,488,501,512,563,575,591,606,621],{"__ignoreMap":96},[101,450,451,454,458],{"class":103,"line":104},[101,452,453],{"class":107},"interface",[101,455,457],{"class":456},"sCrqT"," ContributionTemplateSummary",[101,459,460],{"class":126}," {\n",[101,462,463,467,469,472,474,476,479,481,483,485],{"class":103,"line":174},[101,464,466],{"class":465},"s0VbO","  kind",[101,468,181],{"class":107},[101,470,471],{"class":142}," \"",[101,473,166],{"class":146},[101,475,143],{"class":142},[101,477,478],{"class":107}," |",[101,480,471],{"class":142},[101,482,432],{"class":146},[101,484,143],{"class":142},[101,486,487],{"class":126},";\n",[101,489,490,493,495,499],{"class":103,"line":191},[101,491,492],{"class":465},"  key",[101,494,181],{"class":107},[101,496,498],{"class":497},"s8yaW"," string",[101,500,487],{"class":126},[101,502,503,506,508,510],{"class":103,"line":204},[101,504,505],{"class":465},"  name",[101,507,181],{"class":107},[101,509,498],{"class":497},[101,511,487],{"class":126},[101,513,514,517,519,521,524,526,528,530,532,534,536,538,541,543,545,547,550,552,554,556,559,561],{"class":103,"line":210},[101,515,516],{"class":465},"  scope",[101,518,181],{"class":107},[101,520,471],{"class":142},[101,522,523],{"class":146},"repository",[101,525,143],{"class":142},[101,527,478],{"class":107},[101,529,471],{"class":142},[101,531,147],{"class":146},[101,533,143],{"class":142},[101,535,478],{"class":107},[101,537,471],{"class":142},[101,539,540],{"class":146},"group",[101,542,143],{"class":142},[101,544,478],{"class":107},[101,546,471],{"class":142},[101,548,549],{"class":146},"instance",[101,551,143],{"class":142},[101,553,478],{"class":107},[101,555,471],{"class":142},[101,557,558],{"class":146},"unknown",[101,560,143],{"class":142},[101,562,487],{"class":126},[101,564,565,568,570,573],{"class":103,"line":217},[101,566,567],{"class":465},"  inherited",[101,569,181],{"class":107},[101,571,572],{"class":497}," boolean",[101,574,487],{"class":126},[101,576,577,580,582,584,586,589],{"class":103,"line":245},[101,578,579],{"class":465},"  sourceRepository",[101,581,181],{"class":107},[101,583,498],{"class":497},[101,585,478],{"class":107},[101,587,588],{"class":497}," null",[101,590,487],{"class":126},[101,592,593,596,598,600,602,604],{"class":103,"line":296},[101,594,595],{"class":465},"  sourcePath",[101,597,181],{"class":107},[101,599,498],{"class":497},[101,601,478],{"class":107},[101,603,588],{"class":497},[101,605,487],{"class":126},[101,607,608,611,613,615,617,619],{"class":103,"line":302},[101,609,610],{"class":465},"  sourceRef",[101,612,181],{"class":107},[101,614,498],{"class":497},[101,616,478],{"class":107},[101,618,588],{"class":497},[101,620,487],{"class":126},[101,622,623],{"class":103,"line":307},[101,624,299],{"class":126},[86,626,628],{"id":627},"where-templates-come-from","Where templates come from",[421,630,631,634,635,152,638,152,641,644,645,648,649,152,652,655],{},[632,633,64],"strong",{}," follows the recognized locations: ",[98,636,637],{},".github\u002FISSUE_TEMPLATE\u002F",[98,639,640],{},"ISSUE_TEMPLATE.md",[98,642,643],{},"pull_request_template.md"," and friends, in the repository first. When the repository has none, the owner's ",[98,646,647],{},".github"," repository supplies defaults, with ",[98,650,651],{},"scope: \"owner\"",[98,653,654],{},"inherited: true"," and the source repository and path filled in. Issue and pull request overrides are resolved on their own: a local issue template does not hide an inherited pull request template. A host that speaks the GitHub API but lacks the GitHub Enterprise headers is treated as repository scope only, because guessing at owner inheritance there would be exactly that, a guess.",[421,657,658,660,661,426,663,665,666,669],{},[632,659,68],{}," uses its effective project template API, which already knows about group and instance inheritance. When that API hides where the winning file came from, ",[98,662,272],{},[98,664,558],{}," and the three source fields are ",[98,667,668],{},"null",". No guessing here either.",[421,671,672,675],{},[632,673,674],{},"Gitea and Forgejo"," expose repository scope only.",[421,677,678,680],{},[632,679,76],{}," and other hosts speaking the GitHub API: repository scope only.",[421,682,683],{},"Discovery does not lint template frontmatter or form schemas. It tells you what applies and where it lives, and stops there.",[86,685,687],{"id":686},"in-an-agent","In an agent",[421,689,690,693,694,697],{},[98,691,692],{},"forges_contribution_templates_list"," and ",[98,695,696],{},"forges_contribution_templates_get"," are the same two calls. A list drops bodies outright and names the tool that reads one, because a busy repository's templates would otherwise push the actual conversation out of the context.",[699,700,701],"style",{},"html pre.shiki code .s1TYA, html code.shiki .s1TYA{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#91B4D5}html pre.shiki code .saoiD, html code.shiki .saoiD{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#E4F0FB}html pre.shiki code .sZW6a, html code.shiki .sZW6a{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7C0}html pre.shiki code .spVlQ, html code.shiki .spVlQ{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E4F0FB}html pre.shiki code .sKlNE, html code.shiki .sKlNE{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#A6ACCD}html pre.shiki code .sULi6, html code.shiki .sULi6{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#E4F0FBD0}html pre.shiki code .scVjq, html code.shiki .scVjq{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#A6ACCD}html pre.shiki code .sQ7BG, html code.shiki .sQ7BG{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#5DE4C7}html pre.shiki code .snHMy, html code.shiki .snHMy{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#ADD7FF}html pre.shiki code .siHFe, html code.shiki .siHFe{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#5DE4C7}html pre.shiki code .stCPd, html code.shiki .stCPd{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#A6ACCD}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);}html pre.shiki code .sCrqT, html code.shiki .sCrqT{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#A6ACCDC0}html pre.shiki code .s0VbO, html code.shiki .s0VbO{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#A6ACCD}html pre.shiki code .s8yaW, html code.shiki .s8yaW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#A6ACCDC0}",{"title":96,"searchDepth":174,"depth":174,"links":703},[704,705,706,707],{"id":88,"depth":174,"text":89},{"id":442,"depth":174,"text":443},{"id":627,"depth":174,"text":628},{"id":686,"depth":174,"text":687},"Find the effective issue and pull request templates of a repository, with their scope and source, and read one in full by its key.","md",null,{"icon":712},"i-lucide-file-text",{"title":36,"description":708},"o8nkoUFqx5BpJb3wACEgcLWH6Z6S8mhcKu_71NNp-vg",[716,718],{"title":32,"path":33,"stem":34,"description":717,"children":-1},"Commit history without patches, one commit with its changed files, and CI runs with one status and one conclusion across GitHub Actions, GitLab pipelines and Gitea Actions.",{"title":40,"path":41,"stem":42,"description":719,"children":-1},"File matches by query, global or scoped to an owner or a repository, on the platforms that have an endpoint for it.",1788525967449]