routes-for-api-docs.json 620 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477
  1. {
  2. "activity": {
  3. "checkNotificationThreadSubscription": {
  4. "description": "This checks to see if the current user is subscribed to a thread. You can also [get a Repository subscription](https://developer.github.com/v3/activity/watching/#get-a-repository-subscription).\n\nNote that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mention**ed, or manually subscribe to a thread.",
  5. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription",
  6. "enabledForApps": false,
  7. "method": "GET",
  8. "name": "Get a thread subscription",
  9. "params": [
  10. {
  11. "name": "thread_id",
  12. "type": "string",
  13. "required": true,
  14. "description": "",
  15. "location": "url"
  16. }
  17. ],
  18. "path": "/notifications/threads/:thread_id/subscription"
  19. },
  20. "checkStarringRepo": {
  21. "description": "Requires for the user to be authenticated.",
  22. "documentationUrl": "https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository",
  23. "enabledForApps": false,
  24. "method": "GET",
  25. "name": "Check if you are starring a repository",
  26. "params": [
  27. {
  28. "name": "owner",
  29. "type": "string",
  30. "required": true,
  31. "description": "",
  32. "location": "url"
  33. },
  34. {
  35. "name": "repo",
  36. "type": "string",
  37. "required": true,
  38. "description": "",
  39. "location": "url"
  40. }
  41. ],
  42. "path": "/user/starred/:owner/:repo"
  43. },
  44. "deleteNotificationThreadSubscription": {
  45. "description": "Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed.",
  46. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription",
  47. "enabledForApps": false,
  48. "method": "DELETE",
  49. "name": "Delete a thread subscription",
  50. "params": [
  51. {
  52. "name": "thread_id",
  53. "type": "string",
  54. "required": true,
  55. "description": "",
  56. "location": "url"
  57. }
  58. ],
  59. "path": "/notifications/threads/:thread_id/subscription"
  60. },
  61. "getEvents": {
  62. "description": "",
  63. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-public-events",
  64. "enabledForApps": true,
  65. "method": "GET",
  66. "name": "List public events",
  67. "params": [
  68. {
  69. "name": "per_page",
  70. "type": "integer",
  71. "required": false,
  72. "description": "Results per page (max 100)",
  73. "default": 30,
  74. "location": "query"
  75. },
  76. {
  77. "name": "page",
  78. "type": "integer",
  79. "required": false,
  80. "description": "Page number of the results to fetch.",
  81. "default": 1,
  82. "location": "query"
  83. }
  84. ],
  85. "path": "/events"
  86. },
  87. "getEventsForOrg": {
  88. "description": "",
  89. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-public-events-for-an-organization",
  90. "enabledForApps": true,
  91. "method": "GET",
  92. "name": "List public events for an organization",
  93. "params": [
  94. {
  95. "name": "org",
  96. "type": "string",
  97. "required": true,
  98. "description": "",
  99. "location": "url"
  100. },
  101. {
  102. "name": "per_page",
  103. "type": "integer",
  104. "required": false,
  105. "description": "Results per page (max 100)",
  106. "default": 30,
  107. "location": "query"
  108. },
  109. {
  110. "name": "page",
  111. "type": "integer",
  112. "required": false,
  113. "description": "Page number of the results to fetch.",
  114. "default": 1,
  115. "location": "query"
  116. }
  117. ],
  118. "path": "/orgs/:org/events"
  119. },
  120. "getEventsForRepo": {
  121. "description": "",
  122. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-repository-events",
  123. "enabledForApps": true,
  124. "method": "GET",
  125. "name": "List repository events",
  126. "params": [
  127. {
  128. "name": "owner",
  129. "type": "string",
  130. "required": true,
  131. "description": "",
  132. "location": "url"
  133. },
  134. {
  135. "name": "repo",
  136. "type": "string",
  137. "required": true,
  138. "description": "",
  139. "location": "url"
  140. },
  141. {
  142. "name": "per_page",
  143. "type": "integer",
  144. "required": false,
  145. "description": "Results per page (max 100)",
  146. "default": 30,
  147. "location": "query"
  148. },
  149. {
  150. "name": "page",
  151. "type": "integer",
  152. "required": false,
  153. "description": "Page number of the results to fetch.",
  154. "default": 1,
  155. "location": "query"
  156. }
  157. ],
  158. "path": "/repos/:owner/:repo/events"
  159. },
  160. "getEventsForRepoNetwork": {
  161. "description": "",
  162. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories",
  163. "enabledForApps": true,
  164. "method": "GET",
  165. "name": "List public events for a network of repositories",
  166. "params": [
  167. {
  168. "name": "owner",
  169. "type": "string",
  170. "required": true,
  171. "description": "",
  172. "location": "url"
  173. },
  174. {
  175. "name": "repo",
  176. "type": "string",
  177. "required": true,
  178. "description": "",
  179. "location": "url"
  180. },
  181. {
  182. "name": "per_page",
  183. "type": "integer",
  184. "required": false,
  185. "description": "Results per page (max 100)",
  186. "default": 30,
  187. "location": "query"
  188. },
  189. {
  190. "name": "page",
  191. "type": "integer",
  192. "required": false,
  193. "description": "Page number of the results to fetch.",
  194. "default": 1,
  195. "location": "query"
  196. }
  197. ],
  198. "path": "/networks/:owner/:repo/events"
  199. },
  200. "getEventsForUser": {
  201. "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.",
  202. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-events-performed-by-a-user",
  203. "enabledForApps": true,
  204. "method": "GET",
  205. "name": "List events performed by a user",
  206. "params": [
  207. {
  208. "name": "username",
  209. "type": "string",
  210. "required": true,
  211. "description": "",
  212. "location": "url"
  213. },
  214. {
  215. "name": "per_page",
  216. "type": "integer",
  217. "required": false,
  218. "description": "Results per page (max 100)",
  219. "default": 30,
  220. "location": "query"
  221. },
  222. {
  223. "name": "page",
  224. "type": "integer",
  225. "required": false,
  226. "description": "Page number of the results to fetch.",
  227. "default": 1,
  228. "location": "query"
  229. }
  230. ],
  231. "path": "/users/:username/events"
  232. },
  233. "getEventsForUserOrg": {
  234. "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.",
  235. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-events-for-an-organization",
  236. "enabledForApps": false,
  237. "method": "GET",
  238. "name": "List events for an organization",
  239. "params": [
  240. {
  241. "name": "username",
  242. "type": "string",
  243. "required": true,
  244. "description": "",
  245. "location": "url"
  246. },
  247. {
  248. "name": "org",
  249. "type": "string",
  250. "required": true,
  251. "description": "",
  252. "location": "url"
  253. },
  254. {
  255. "name": "per_page",
  256. "type": "integer",
  257. "required": false,
  258. "description": "Results per page (max 100)",
  259. "default": 30,
  260. "location": "query"
  261. },
  262. {
  263. "name": "page",
  264. "type": "integer",
  265. "required": false,
  266. "description": "Page number of the results to fetch.",
  267. "default": 1,
  268. "location": "query"
  269. }
  270. ],
  271. "path": "/users/:username/events/orgs/:org"
  272. },
  273. "getEventsForUserPublic": {
  274. "description": "",
  275. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user",
  276. "enabledForApps": true,
  277. "method": "GET",
  278. "name": "List public events performed by a user",
  279. "params": [
  280. {
  281. "name": "username",
  282. "type": "string",
  283. "required": true,
  284. "description": "",
  285. "location": "url"
  286. },
  287. {
  288. "name": "per_page",
  289. "type": "integer",
  290. "required": false,
  291. "description": "Results per page (max 100)",
  292. "default": 30,
  293. "location": "query"
  294. },
  295. {
  296. "name": "page",
  297. "type": "integer",
  298. "required": false,
  299. "description": "Page number of the results to fetch.",
  300. "default": 1,
  301. "location": "query"
  302. }
  303. ],
  304. "path": "/users/:username/events/public"
  305. },
  306. "getEventsReceived": {
  307. "description": "These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.",
  308. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received",
  309. "enabledForApps": true,
  310. "method": "GET",
  311. "name": "List events that a user has received",
  312. "params": [
  313. {
  314. "name": "username",
  315. "type": "string",
  316. "required": true,
  317. "description": "",
  318. "location": "url"
  319. },
  320. {
  321. "name": "per_page",
  322. "type": "integer",
  323. "required": false,
  324. "description": "Results per page (max 100)",
  325. "default": 30,
  326. "location": "query"
  327. },
  328. {
  329. "name": "page",
  330. "type": "integer",
  331. "required": false,
  332. "description": "Page number of the results to fetch.",
  333. "default": 1,
  334. "location": "query"
  335. }
  336. ],
  337. "path": "/users/:username/received_events"
  338. },
  339. "getEventsReceivedPublic": {
  340. "description": "",
  341. "documentationUrl": "https://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received",
  342. "enabledForApps": true,
  343. "method": "GET",
  344. "name": "List public events that a user has received",
  345. "params": [
  346. {
  347. "name": "username",
  348. "type": "string",
  349. "required": true,
  350. "description": "",
  351. "location": "url"
  352. },
  353. {
  354. "name": "per_page",
  355. "type": "integer",
  356. "required": false,
  357. "description": "Results per page (max 100)",
  358. "default": 30,
  359. "location": "query"
  360. },
  361. {
  362. "name": "page",
  363. "type": "integer",
  364. "required": false,
  365. "description": "Page number of the results to fetch.",
  366. "default": 1,
  367. "location": "query"
  368. }
  369. ],
  370. "path": "/users/:username/received_events/public"
  371. },
  372. "getFeeds": {
  373. "description": "GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:\n\n* **Timeline**: The GitHub global public timeline\n* **User**: The public timeline for any user, using [URI template](https://developer.github.com/v3/#hypermedia)\n* **Current user public**: The public timeline for the authenticated user\n* **Current user**: The private timeline for the authenticated user\n* **Current user actor**: The private timeline for activity created by the authenticated user\n* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.\n\n**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens.",
  374. "documentationUrl": "https://developer.github.com/v3/activity/feeds/#list-feeds",
  375. "enabledForApps": true,
  376. "method": "GET",
  377. "name": "List Feeds",
  378. "params": [],
  379. "path": "/feeds"
  380. },
  381. "getNotificationThread": {
  382. "description": "",
  383. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#view-a-single-thread",
  384. "enabledForApps": false,
  385. "method": "GET",
  386. "name": "View a single thread",
  387. "params": [
  388. {
  389. "name": "thread_id",
  390. "type": "string",
  391. "required": true,
  392. "description": "",
  393. "location": "url"
  394. }
  395. ],
  396. "path": "/notifications/threads/:thread_id"
  397. },
  398. "getNotifications": {
  399. "description": "List all notifications for the current user, sorted by most recently updated.",
  400. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#list-your-notifications",
  401. "enabledForApps": false,
  402. "method": "GET",
  403. "name": "List your notifications",
  404. "params": [
  405. {
  406. "name": "all",
  407. "type": "boolean",
  408. "description": "If `true`, show notifications marked as read.",
  409. "default": false,
  410. "required": false,
  411. "location": "query"
  412. },
  413. {
  414. "name": "participating",
  415. "type": "boolean",
  416. "description": "If `true`, only shows notifications in which the user is directly participating or mentioned.",
  417. "default": false,
  418. "required": false,
  419. "location": "query"
  420. },
  421. {
  422. "name": "since",
  423. "type": "string",
  424. "description": "Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  425. "default": "<current date/time>",
  426. "required": false,
  427. "location": "query"
  428. },
  429. {
  430. "name": "before",
  431. "type": "string",
  432. "description": "Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  433. "required": false,
  434. "location": "query"
  435. },
  436. {
  437. "name": "per_page",
  438. "type": "integer",
  439. "required": false,
  440. "description": "Results per page (max 100)",
  441. "default": 30,
  442. "location": "query"
  443. },
  444. {
  445. "name": "page",
  446. "type": "integer",
  447. "required": false,
  448. "description": "Page number of the results to fetch.",
  449. "default": 1,
  450. "location": "query"
  451. }
  452. ],
  453. "path": "/notifications"
  454. },
  455. "getNotificationsForUser": {
  456. "description": "List all notifications for the current user.",
  457. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository",
  458. "enabledForApps": false,
  459. "method": "GET",
  460. "name": "List your notifications in a repository",
  461. "params": [
  462. {
  463. "name": "owner",
  464. "type": "string",
  465. "required": true,
  466. "description": "",
  467. "location": "url"
  468. },
  469. {
  470. "name": "repo",
  471. "type": "string",
  472. "required": true,
  473. "description": "",
  474. "location": "url"
  475. },
  476. {
  477. "name": "all",
  478. "type": "boolean",
  479. "description": "If `true`, show notifications marked as read.",
  480. "default": false,
  481. "required": false,
  482. "location": "query"
  483. },
  484. {
  485. "name": "participating",
  486. "type": "boolean",
  487. "description": "If `true`, only shows notifications in which the user is directly participating or mentioned.",
  488. "default": false,
  489. "required": false,
  490. "location": "query"
  491. },
  492. {
  493. "name": "since",
  494. "type": "string",
  495. "description": "Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  496. "default": "<current date/time>",
  497. "required": false,
  498. "location": "query"
  499. },
  500. {
  501. "name": "before",
  502. "type": "string",
  503. "description": "Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  504. "required": false,
  505. "location": "query"
  506. },
  507. {
  508. "name": "per_page",
  509. "type": "integer",
  510. "required": false,
  511. "description": "Results per page (max 100)",
  512. "default": 30,
  513. "location": "query"
  514. },
  515. {
  516. "name": "page",
  517. "type": "integer",
  518. "required": false,
  519. "description": "Page number of the results to fetch.",
  520. "default": 1,
  521. "location": "query"
  522. }
  523. ],
  524. "path": "/repos/:owner/:repo/notifications"
  525. },
  526. "getRepoSubscription": {
  527. "description": "",
  528. "documentationUrl": "https://developer.github.com/v3/activity/watching/#get-a-repository-subscription",
  529. "enabledForApps": false,
  530. "method": "GET",
  531. "name": "Get a Repository Subscription",
  532. "params": [
  533. {
  534. "name": "owner",
  535. "type": "string",
  536. "required": true,
  537. "description": "",
  538. "location": "url"
  539. },
  540. {
  541. "name": "repo",
  542. "type": "string",
  543. "required": true,
  544. "description": "",
  545. "location": "url"
  546. }
  547. ],
  548. "path": "/repos/:owner/:repo/subscription"
  549. },
  550. "getStargazersForRepo": {
  551. "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header:",
  552. "documentationUrl": "https://developer.github.com/v3/activity/starring/#list-stargazers",
  553. "enabledForApps": true,
  554. "method": "GET",
  555. "name": "List Stargazers",
  556. "params": [
  557. {
  558. "name": "owner",
  559. "type": "string",
  560. "required": true,
  561. "description": "",
  562. "location": "url"
  563. },
  564. {
  565. "name": "repo",
  566. "type": "string",
  567. "required": true,
  568. "description": "",
  569. "location": "url"
  570. },
  571. {
  572. "name": "per_page",
  573. "type": "integer",
  574. "required": false,
  575. "description": "Results per page (max 100)",
  576. "default": 30,
  577. "location": "query"
  578. },
  579. {
  580. "name": "page",
  581. "type": "integer",
  582. "required": false,
  583. "description": "Page number of the results to fetch.",
  584. "default": 1,
  585. "location": "query"
  586. }
  587. ],
  588. "path": "/repos/:owner/:repo/stargazers"
  589. },
  590. "getStarredRepos": {
  591. "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header:",
  592. "documentationUrl": "https://developer.github.com/v3/activity/starring/#list-repositories-being-starred",
  593. "enabledForApps": false,
  594. "method": "GET",
  595. "name": "List repositories being starred by the authenticated user",
  596. "params": [
  597. {
  598. "name": "sort",
  599. "type": "string",
  600. "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to).",
  601. "default": "created",
  602. "required": false,
  603. "enum": [
  604. "created",
  605. "updated"
  606. ],
  607. "location": "query"
  608. },
  609. {
  610. "name": "direction",
  611. "type": "string",
  612. "description": "One of `asc` (ascending) or `desc` (descending).",
  613. "default": "desc",
  614. "required": false,
  615. "enum": [
  616. "asc",
  617. "desc"
  618. ],
  619. "location": "query"
  620. },
  621. {
  622. "name": "per_page",
  623. "type": "integer",
  624. "required": false,
  625. "description": "Results per page (max 100)",
  626. "default": 30,
  627. "location": "query"
  628. },
  629. {
  630. "name": "page",
  631. "type": "integer",
  632. "required": false,
  633. "description": "Page number of the results to fetch.",
  634. "default": 1,
  635. "location": "query"
  636. }
  637. ],
  638. "path": "/user/starred"
  639. },
  640. "getStarredReposForUser": {
  641. "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header:",
  642. "documentationUrl": "https://developer.github.com/v3/activity/starring/#list-repositories-being-starred",
  643. "enabledForApps": false,
  644. "method": "GET",
  645. "name": "List repositories being starred by a user",
  646. "params": [
  647. {
  648. "name": "username",
  649. "type": "string",
  650. "required": true,
  651. "description": "",
  652. "location": "url"
  653. },
  654. {
  655. "name": "sort",
  656. "type": "string",
  657. "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to).",
  658. "default": "created",
  659. "required": false,
  660. "enum": [
  661. "created",
  662. "updated"
  663. ],
  664. "location": "query"
  665. },
  666. {
  667. "name": "direction",
  668. "type": "string",
  669. "description": "One of `asc` (ascending) or `desc` (descending).",
  670. "default": "desc",
  671. "required": false,
  672. "enum": [
  673. "asc",
  674. "desc"
  675. ],
  676. "location": "query"
  677. },
  678. {
  679. "name": "per_page",
  680. "type": "integer",
  681. "required": false,
  682. "description": "Results per page (max 100)",
  683. "default": 30,
  684. "location": "query"
  685. },
  686. {
  687. "name": "page",
  688. "type": "integer",
  689. "required": false,
  690. "description": "Page number of the results to fetch.",
  691. "default": 1,
  692. "location": "query"
  693. }
  694. ],
  695. "path": "/users/:username/starred"
  696. },
  697. "getWatchedRepos": {
  698. "description": "",
  699. "documentationUrl": "https://developer.github.com/v3/activity/watching/#list-repositories-being-watched",
  700. "enabledForApps": false,
  701. "method": "GET",
  702. "name": "List repositories being watched by the authenticated user",
  703. "params": [
  704. {
  705. "name": "per_page",
  706. "type": "integer",
  707. "required": false,
  708. "description": "Results per page (max 100)",
  709. "default": 30,
  710. "location": "query"
  711. },
  712. {
  713. "name": "page",
  714. "type": "integer",
  715. "required": false,
  716. "description": "Page number of the results to fetch.",
  717. "default": 1,
  718. "location": "query"
  719. }
  720. ],
  721. "path": "/user/subscriptions"
  722. },
  723. "getWatchedReposForUser": {
  724. "description": "",
  725. "documentationUrl": "https://developer.github.com/v3/activity/watching/#list-repositories-being-watched",
  726. "enabledForApps": false,
  727. "method": "GET",
  728. "name": "List repositories being watched by a user",
  729. "params": [
  730. {
  731. "name": "username",
  732. "type": "string",
  733. "required": true,
  734. "description": "",
  735. "location": "url"
  736. },
  737. {
  738. "name": "per_page",
  739. "type": "integer",
  740. "required": false,
  741. "description": "Results per page (max 100)",
  742. "default": 30,
  743. "location": "query"
  744. },
  745. {
  746. "name": "page",
  747. "type": "integer",
  748. "required": false,
  749. "description": "Page number of the results to fetch.",
  750. "default": 1,
  751. "location": "query"
  752. }
  753. ],
  754. "path": "/users/:username/subscriptions"
  755. },
  756. "getWatchersForRepo": {
  757. "description": "",
  758. "documentationUrl": "https://developer.github.com/v3/activity/watching/#list-watchers",
  759. "enabledForApps": true,
  760. "method": "GET",
  761. "name": "List watchers",
  762. "params": [
  763. {
  764. "name": "owner",
  765. "type": "string",
  766. "required": true,
  767. "description": "",
  768. "location": "url"
  769. },
  770. {
  771. "name": "repo",
  772. "type": "string",
  773. "required": true,
  774. "description": "",
  775. "location": "url"
  776. },
  777. {
  778. "name": "per_page",
  779. "type": "integer",
  780. "required": false,
  781. "description": "Results per page (max 100)",
  782. "default": 30,
  783. "location": "query"
  784. },
  785. {
  786. "name": "page",
  787. "type": "integer",
  788. "required": false,
  789. "description": "Page number of the results to fetch.",
  790. "default": 1,
  791. "location": "query"
  792. }
  793. ],
  794. "path": "/repos/:owner/:repo/subscribers"
  795. },
  796. "markNotificationThreadAsRead": {
  797. "description": "",
  798. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read",
  799. "enabledForApps": false,
  800. "method": "PATCH",
  801. "name": "Mark a thread as read",
  802. "params": [
  803. {
  804. "name": "thread_id",
  805. "type": "string",
  806. "required": true,
  807. "description": "",
  808. "location": "url"
  809. }
  810. ],
  811. "path": "/notifications/threads/:thread_id"
  812. },
  813. "markNotificationsAsRead": {
  814. "description": "Marking a notification as \"read\" removes it from the [default view on GitHub](https://github.com/notifications).",
  815. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#mark-as-read",
  816. "enabledForApps": false,
  817. "method": "PUT",
  818. "name": "Mark as read",
  819. "params": [
  820. {
  821. "name": "last_read_at",
  822. "type": "string",
  823. "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  824. "default": "<current date/time>",
  825. "required": false,
  826. "location": "body"
  827. }
  828. ],
  829. "path": "/notifications"
  830. },
  831. "markNotificationsAsReadForRepo": {
  832. "description": "Marking all notifications in a repository as \"read\" removes them from the [default view on GitHub](https://github.com/notifications).",
  833. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository",
  834. "enabledForApps": false,
  835. "method": "PUT",
  836. "name": "Mark notifications as read in a repository",
  837. "params": [
  838. {
  839. "name": "owner",
  840. "type": "string",
  841. "required": true,
  842. "description": "",
  843. "location": "url"
  844. },
  845. {
  846. "name": "repo",
  847. "type": "string",
  848. "required": true,
  849. "description": "",
  850. "location": "url"
  851. },
  852. {
  853. "name": "last_read_at",
  854. "type": "string",
  855. "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  856. "default": "<current date/time>",
  857. "required": false,
  858. "location": "body"
  859. }
  860. ],
  861. "path": "/repos/:owner/:repo/notifications"
  862. },
  863. "setNotificationThreadSubscription": {
  864. "description": "This lets you subscribe or unsubscribe from a conversation.",
  865. "documentationUrl": "https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription",
  866. "enabledForApps": false,
  867. "method": "PUT",
  868. "name": "Set a thread subscription",
  869. "params": [
  870. {
  871. "name": "thread_id",
  872. "type": "string",
  873. "required": true,
  874. "description": "",
  875. "location": "url"
  876. },
  877. {
  878. "name": "ignored",
  879. "type": "boolean",
  880. "description": "Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread.",
  881. "default": false,
  882. "required": false,
  883. "location": "body"
  884. }
  885. ],
  886. "path": "/notifications/threads/:thread_id/subscription"
  887. },
  888. "setRepoSubscription": {
  889. "description": "If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](#delete-a-repository-subscription) completely.",
  890. "documentationUrl": "https://developer.github.com/v3/activity/watching/#set-a-repository-subscription",
  891. "enabledForApps": false,
  892. "method": "PUT",
  893. "name": "Set a Repository Subscription",
  894. "params": [
  895. {
  896. "name": "owner",
  897. "type": "string",
  898. "required": true,
  899. "description": "",
  900. "location": "url"
  901. },
  902. {
  903. "name": "repo",
  904. "type": "string",
  905. "required": true,
  906. "description": "",
  907. "location": "url"
  908. },
  909. {
  910. "name": "subscribed",
  911. "type": "boolean",
  912. "description": "Determines if notifications should be received from this repository.",
  913. "required": false,
  914. "location": "body"
  915. },
  916. {
  917. "name": "ignored",
  918. "type": "boolean",
  919. "description": "Determines if all notifications should be blocked from this repository.",
  920. "required": false,
  921. "location": "body"
  922. }
  923. ],
  924. "path": "/repos/:owner/:repo/subscription"
  925. },
  926. "starRepo": {
  927. "description": "Requires for the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"",
  928. "documentationUrl": "https://developer.github.com/v3/activity/starring/#star-a-repository",
  929. "enabledForApps": false,
  930. "method": "PUT",
  931. "name": "Star a repository",
  932. "params": [
  933. {
  934. "name": "owner",
  935. "type": "string",
  936. "required": true,
  937. "description": "",
  938. "location": "url"
  939. },
  940. {
  941. "name": "repo",
  942. "type": "string",
  943. "required": true,
  944. "description": "",
  945. "location": "url"
  946. }
  947. ],
  948. "path": "/user/starred/:owner/:repo"
  949. },
  950. "unstarRepo": {
  951. "description": "Requires for the user to be authenticated.",
  952. "documentationUrl": "https://developer.github.com/v3/activity/starring/#unstar-a-repository",
  953. "enabledForApps": false,
  954. "method": "DELETE",
  955. "name": "Unstar a repository",
  956. "params": [
  957. {
  958. "name": "owner",
  959. "type": "string",
  960. "required": true,
  961. "description": "",
  962. "location": "url"
  963. },
  964. {
  965. "name": "repo",
  966. "type": "string",
  967. "required": true,
  968. "description": "",
  969. "location": "url"
  970. }
  971. ],
  972. "path": "/user/starred/:owner/:repo"
  973. },
  974. "unwatchRepo": {
  975. "description": "This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](#set-a-repository-subscription).",
  976. "documentationUrl": "https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription",
  977. "enabledForApps": false,
  978. "method": "DELETE",
  979. "name": "Delete a Repository Subscription",
  980. "params": [
  981. {
  982. "name": "owner",
  983. "type": "string",
  984. "required": true,
  985. "description": "",
  986. "location": "url"
  987. },
  988. {
  989. "name": "repo",
  990. "type": "string",
  991. "required": true,
  992. "description": "",
  993. "location": "url"
  994. }
  995. ],
  996. "path": "/repos/:owner/:repo/subscription"
  997. }
  998. },
  999. "apps": {
  1000. "addRepoToInstallation": {
  1001. "description": "Add a single repository to an installation.\n\nThe authenticated user must have admin access to the repository.",
  1002. "documentationUrl": "https://developer.github.com/v3/apps/installations/#add-repository-to-installation",
  1003. "enabledForApps": false,
  1004. "method": "PUT",
  1005. "name": "Add repository to installation",
  1006. "params": [
  1007. {
  1008. "name": "installation_id",
  1009. "type": "string",
  1010. "required": true,
  1011. "description": "",
  1012. "location": "url"
  1013. },
  1014. {
  1015. "name": "repository_id",
  1016. "type": "string",
  1017. "required": true,
  1018. "description": "",
  1019. "location": "url"
  1020. }
  1021. ],
  1022. "path": "/user/installations/:installation_id/repositories/:repository_id"
  1023. },
  1024. "checkMarketplaceListingAccount": {
  1025. "description": "Checks whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App.",
  1026. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#check-if-a-github-account-is-associated-with-any-marketplace-listing",
  1027. "enabledForApps": false,
  1028. "method": "GET",
  1029. "name": "Check if a GitHub account is associated with any Marketplace listing",
  1030. "params": [
  1031. {
  1032. "name": "account_id",
  1033. "type": "string",
  1034. "required": true,
  1035. "description": "",
  1036. "location": "url"
  1037. },
  1038. {
  1039. "name": "per_page",
  1040. "type": "integer",
  1041. "required": false,
  1042. "description": "Results per page (max 100)",
  1043. "default": 30,
  1044. "location": "query"
  1045. },
  1046. {
  1047. "name": "page",
  1048. "type": "integer",
  1049. "required": false,
  1050. "description": "Page number of the results to fetch.",
  1051. "default": 1,
  1052. "location": "query"
  1053. }
  1054. ],
  1055. "path": "/marketplace_listing/accounts/:account_id"
  1056. },
  1057. "checkMarketplaceListingStubbedAccount": {
  1058. "description": "Checks whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App.",
  1059. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#check-if-a-github-account-is-associated-with-any-marketplace-listing",
  1060. "enabledForApps": false,
  1061. "method": "GET",
  1062. "name": "Check if a GitHub account is associated with any Marketplace listing (stubbed)",
  1063. "params": [
  1064. {
  1065. "name": "account_id",
  1066. "type": "string",
  1067. "required": true,
  1068. "description": "",
  1069. "location": "url"
  1070. },
  1071. {
  1072. "name": "per_page",
  1073. "type": "integer",
  1074. "required": false,
  1075. "description": "Results per page (max 100)",
  1076. "default": 30,
  1077. "location": "query"
  1078. },
  1079. {
  1080. "name": "page",
  1081. "type": "integer",
  1082. "required": false,
  1083. "description": "Page number of the results to fetch.",
  1084. "default": 1,
  1085. "location": "query"
  1086. }
  1087. ],
  1088. "path": "/marketplace_listing/stubbed/accounts/:account_id"
  1089. },
  1090. "createInstallationToken": {
  1091. "description": "Creates an access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.",
  1092. "documentationUrl": "https://developer.github.com/v3/apps/#create-a-new-installation-token",
  1093. "enabledForApps": true,
  1094. "method": "POST",
  1095. "name": "Create a new installation token",
  1096. "params": [
  1097. {
  1098. "name": "installation_id",
  1099. "type": "string",
  1100. "required": true,
  1101. "description": "",
  1102. "location": "url"
  1103. }
  1104. ],
  1105. "path": "/installations/:installation_id/access_tokens"
  1106. },
  1107. "get": {
  1108. "description": "Returns the GitHub App associated with the [authentication credentials](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-a-github-app) used.",
  1109. "documentationUrl": "https://developer.github.com/v3/apps/#get-the-authenticated-github-app",
  1110. "enabledForApps": true,
  1111. "method": "GET",
  1112. "name": "Get the authenticated GitHub App",
  1113. "params": [],
  1114. "path": "/app"
  1115. },
  1116. "getForSlug": {
  1117. "description": "**Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).",
  1118. "documentationUrl": "https://developer.github.com/v3/apps/#get-a-single-github-app",
  1119. "enabledForApps": true,
  1120. "method": "GET",
  1121. "name": "Get a single GitHub App",
  1122. "params": [
  1123. {
  1124. "name": "app_slug",
  1125. "type": "string",
  1126. "required": true,
  1127. "description": "",
  1128. "location": "url"
  1129. }
  1130. ],
  1131. "path": "/apps/:app_slug"
  1132. },
  1133. "getInstallation": {
  1134. "description": "",
  1135. "documentationUrl": "https://developer.github.com/v3/apps/#get-a-single-installation",
  1136. "enabledForApps": true,
  1137. "method": "GET",
  1138. "name": "Get a single installation",
  1139. "params": [
  1140. {
  1141. "name": "installation_id",
  1142. "type": "string",
  1143. "required": true,
  1144. "description": "",
  1145. "location": "url"
  1146. }
  1147. ],
  1148. "path": "/app/installations/:installation_id"
  1149. },
  1150. "getInstallationRepositories": {
  1151. "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.",
  1152. "documentationUrl": "https://developer.github.com/v3/apps/installations/#list-repositories",
  1153. "enabledForApps": true,
  1154. "method": "GET",
  1155. "name": "List repositories",
  1156. "params": [
  1157. {
  1158. "name": "per_page",
  1159. "type": "integer",
  1160. "required": false,
  1161. "description": "Results per page (max 100)",
  1162. "default": 30,
  1163. "location": "query"
  1164. },
  1165. {
  1166. "name": "page",
  1167. "type": "integer",
  1168. "required": false,
  1169. "description": "Page number of the results to fetch.",
  1170. "default": 1,
  1171. "location": "query"
  1172. }
  1173. ],
  1174. "path": "/installation/repositories"
  1175. },
  1176. "getInstallations": {
  1177. "description": "The permissions the installation has are included under the `permissions` key.",
  1178. "documentationUrl": "https://developer.github.com/v3/apps/#find-installations",
  1179. "enabledForApps": true,
  1180. "method": "GET",
  1181. "name": "Find installations",
  1182. "params": [
  1183. {
  1184. "name": "per_page",
  1185. "type": "integer",
  1186. "required": false,
  1187. "description": "Results per page (max 100)",
  1188. "default": 30,
  1189. "location": "query"
  1190. },
  1191. {
  1192. "name": "page",
  1193. "type": "integer",
  1194. "required": false,
  1195. "description": "Page number of the results to fetch.",
  1196. "default": 1,
  1197. "location": "query"
  1198. }
  1199. ],
  1200. "path": "/app/installations"
  1201. },
  1202. "getMarketplaceListingPlanAccounts": {
  1203. "description": "Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased.",
  1204. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan",
  1205. "enabledForApps": false,
  1206. "method": "GET",
  1207. "name": "List all GitHub accounts (user or organization) on a specific plan",
  1208. "params": [
  1209. {
  1210. "name": "plan_id",
  1211. "type": "string",
  1212. "required": true,
  1213. "description": "",
  1214. "location": "url"
  1215. },
  1216. {
  1217. "name": "sort",
  1218. "type": "string",
  1219. "description": "Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`.",
  1220. "default": "created",
  1221. "required": false,
  1222. "enum": [
  1223. "created",
  1224. "updated"
  1225. ],
  1226. "location": "query"
  1227. },
  1228. {
  1229. "name": "direction",
  1230. "type": "string",
  1231. "description": "To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter.",
  1232. "required": false,
  1233. "enum": [
  1234. "asc",
  1235. "desc"
  1236. ],
  1237. "location": "query"
  1238. },
  1239. {
  1240. "name": "per_page",
  1241. "type": "integer",
  1242. "required": false,
  1243. "description": "Results per page (max 100)",
  1244. "default": 30,
  1245. "location": "query"
  1246. },
  1247. {
  1248. "name": "page",
  1249. "type": "integer",
  1250. "required": false,
  1251. "description": "Page number of the results to fetch.",
  1252. "default": 1,
  1253. "location": "query"
  1254. }
  1255. ],
  1256. "path": "/marketplace_listing/plans/:plan_id/accounts"
  1257. },
  1258. "getMarketplaceListingPlans": {
  1259. "description": "",
  1260. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#list-all-plans-for-your-marketplace-listing",
  1261. "enabledForApps": false,
  1262. "method": "GET",
  1263. "name": "List all plans for your Marketplace listing",
  1264. "params": [
  1265. {
  1266. "name": "per_page",
  1267. "type": "integer",
  1268. "required": false,
  1269. "description": "Results per page (max 100)",
  1270. "default": 30,
  1271. "location": "query"
  1272. },
  1273. {
  1274. "name": "page",
  1275. "type": "integer",
  1276. "required": false,
  1277. "description": "Page number of the results to fetch.",
  1278. "default": 1,
  1279. "location": "query"
  1280. }
  1281. ],
  1282. "path": "/marketplace_listing/plans"
  1283. },
  1284. "getMarketplaceListingStubbedPlanAccounts": {
  1285. "description": "Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased.",
  1286. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan",
  1287. "enabledForApps": false,
  1288. "method": "GET",
  1289. "name": "List all GitHub accounts (user or organization) on a specific plan (stubbed)",
  1290. "params": [
  1291. {
  1292. "name": "plan_id",
  1293. "type": "string",
  1294. "required": true,
  1295. "description": "",
  1296. "location": "url"
  1297. },
  1298. {
  1299. "name": "sort",
  1300. "type": "string",
  1301. "description": "Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`.",
  1302. "default": "created",
  1303. "required": false,
  1304. "enum": [
  1305. "created",
  1306. "updated"
  1307. ],
  1308. "location": "query"
  1309. },
  1310. {
  1311. "name": "direction",
  1312. "type": "string",
  1313. "description": "To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter.",
  1314. "required": false,
  1315. "enum": [
  1316. "asc",
  1317. "desc"
  1318. ],
  1319. "location": "query"
  1320. },
  1321. {
  1322. "name": "per_page",
  1323. "type": "integer",
  1324. "required": false,
  1325. "description": "Results per page (max 100)",
  1326. "default": 30,
  1327. "location": "query"
  1328. },
  1329. {
  1330. "name": "page",
  1331. "type": "integer",
  1332. "required": false,
  1333. "description": "Page number of the results to fetch.",
  1334. "default": 1,
  1335. "location": "query"
  1336. }
  1337. ],
  1338. "path": "/marketplace_listing/stubbed/plans/:plan_id/accounts"
  1339. },
  1340. "getMarketplaceListingStubbedPlans": {
  1341. "description": "",
  1342. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#list-all-plans-for-your-marketplace-listing",
  1343. "enabledForApps": false,
  1344. "method": "GET",
  1345. "name": "List all plans for your Marketplace listing (stubbed)",
  1346. "params": [
  1347. {
  1348. "name": "per_page",
  1349. "type": "integer",
  1350. "required": false,
  1351. "description": "Results per page (max 100)",
  1352. "default": 30,
  1353. "location": "query"
  1354. },
  1355. {
  1356. "name": "page",
  1357. "type": "integer",
  1358. "required": false,
  1359. "description": "Page number of the results to fetch.",
  1360. "default": 1,
  1361. "location": "query"
  1362. }
  1363. ],
  1364. "path": "/marketplace_listing/stubbed/plans"
  1365. },
  1366. "removeRepoFromInstallation": {
  1367. "description": "Remove a single repository from an installation.\n\nThe authenticated user must have admin access to the repository.",
  1368. "documentationUrl": "https://developer.github.com/v3/apps/installations/#remove-repository-from-installation",
  1369. "enabledForApps": false,
  1370. "method": "DELETE",
  1371. "name": "Remove repository from installation",
  1372. "params": [
  1373. {
  1374. "name": "installation_id",
  1375. "type": "string",
  1376. "required": true,
  1377. "description": "",
  1378. "location": "url"
  1379. },
  1380. {
  1381. "name": "repository_id",
  1382. "type": "string",
  1383. "required": true,
  1384. "description": "",
  1385. "location": "url"
  1386. }
  1387. ],
  1388. "path": "/user/installations/:installation_id/repositories/:repository_id"
  1389. }
  1390. },
  1391. "authorization": {
  1392. "check": {
  1393. "description": "OAuth applications can use a special API method for checking OAuth token validity without running afoul of normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
  1394. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#check-an-authorization",
  1395. "enabledForApps": false,
  1396. "method": "GET",
  1397. "name": "Check an authorization",
  1398. "params": [
  1399. {
  1400. "name": "client_id",
  1401. "type": "string",
  1402. "required": true,
  1403. "description": "",
  1404. "location": "url"
  1405. },
  1406. {
  1407. "name": "access_token",
  1408. "type": "string",
  1409. "required": true,
  1410. "description": "",
  1411. "location": "url"
  1412. }
  1413. ],
  1414. "path": "/applications/:client_id/tokens/:access_token"
  1415. },
  1416. "create": {
  1417. "description": "If you need a small number of personal access tokens, implementing the [web flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/) can be cumbersome. Instead, tokens can be created using the OAuth Authorizations API using [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication). To create personal access tokens for a particular OAuth application, you must provide its client ID and secret, found on the OAuth application settings page, linked from your [OAuth applications listing on GitHub](https://github.com/settings/developers).\n\nIf your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.\n\nYou can also create OAuth tokens through the web UI via the [personal access tokens settings](https://github.com/settings/tokens). Read more about these tokens on the [GitHub Help site](https://help.github.com/articles/creating-an-access-token-for-command-line-use).\n\nOrganizations that enforce SAML SSO require personal access tokens to be whitelisted. Read more about whitelisting tokens on the [GitHub Help site](https://help.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on).",
  1418. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
  1419. "enabledForApps": false,
  1420. "method": "POST",
  1421. "name": "Create a new authorization",
  1422. "params": [
  1423. {
  1424. "name": "scopes",
  1425. "type": "string[]",
  1426. "description": "A list of scopes that this authorization is in.",
  1427. "required": false,
  1428. "location": "body"
  1429. },
  1430. {
  1431. "name": "note",
  1432. "type": "string",
  1433. "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
  1434. "required": true,
  1435. "location": "body"
  1436. },
  1437. {
  1438. "name": "note_url",
  1439. "type": "string",
  1440. "description": "A URL to remind you what app the OAuth token is for.",
  1441. "required": false,
  1442. "location": "body"
  1443. },
  1444. {
  1445. "name": "client_id",
  1446. "type": "string",
  1447. "description": "The 20 character OAuth app client key for which to create the token.",
  1448. "required": false,
  1449. "location": "body"
  1450. },
  1451. {
  1452. "name": "client_secret",
  1453. "type": "string",
  1454. "description": "The 40 character OAuth app client secret for which to create the token.",
  1455. "required": false,
  1456. "location": "body"
  1457. },
  1458. {
  1459. "name": "fingerprint",
  1460. "type": "string",
  1461. "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
  1462. "required": false,
  1463. "location": "body"
  1464. }
  1465. ],
  1466. "path": "/authorizations"
  1467. },
  1468. "delete": {
  1469. "description": "",
  1470. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
  1471. "enabledForApps": false,
  1472. "method": "DELETE",
  1473. "name": "Delete an authorization",
  1474. "params": [
  1475. {
  1476. "name": "authorization_id",
  1477. "type": "string",
  1478. "required": true,
  1479. "description": "",
  1480. "location": "url"
  1481. }
  1482. ],
  1483. "path": "/authorizations/:authorization_id"
  1484. },
  1485. "deleteGrant": {
  1486. "description": "Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
  1487. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
  1488. "enabledForApps": false,
  1489. "method": "DELETE",
  1490. "name": "Delete a grant",
  1491. "params": [
  1492. {
  1493. "name": "grant_id",
  1494. "type": "string",
  1495. "required": true,
  1496. "description": "",
  1497. "location": "url"
  1498. }
  1499. ],
  1500. "path": "/applications/grants/:grant_id"
  1501. },
  1502. "get": {
  1503. "description": "",
  1504. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
  1505. "enabledForApps": false,
  1506. "method": "GET",
  1507. "name": "Get a single authorization",
  1508. "params": [
  1509. {
  1510. "name": "authorization_id",
  1511. "type": "string",
  1512. "required": true,
  1513. "description": "",
  1514. "location": "url"
  1515. }
  1516. ],
  1517. "path": "/authorizations/:authorization_id"
  1518. },
  1519. "getAll": {
  1520. "description": "",
  1521. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
  1522. "enabledForApps": false,
  1523. "method": "GET",
  1524. "name": "List your authorizations",
  1525. "params": [
  1526. {
  1527. "name": "per_page",
  1528. "type": "integer",
  1529. "required": false,
  1530. "description": "Results per page (max 100)",
  1531. "default": 30,
  1532. "location": "query"
  1533. },
  1534. {
  1535. "name": "page",
  1536. "type": "integer",
  1537. "required": false,
  1538. "description": "Page number of the results to fetch.",
  1539. "default": 1,
  1540. "location": "query"
  1541. }
  1542. ],
  1543. "path": "/authorizations"
  1544. },
  1545. "getGrant": {
  1546. "description": "",
  1547. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
  1548. "enabledForApps": false,
  1549. "method": "GET",
  1550. "name": "Get a single grant",
  1551. "params": [
  1552. {
  1553. "name": "grant_id",
  1554. "type": "string",
  1555. "required": true,
  1556. "description": "",
  1557. "location": "url"
  1558. }
  1559. ],
  1560. "path": "/applications/grants/:grant_id"
  1561. },
  1562. "getGrants": {
  1563. "description": "You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `[\"repo\", \"user\"]`.",
  1564. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
  1565. "enabledForApps": false,
  1566. "method": "GET",
  1567. "name": "List your grants",
  1568. "params": [
  1569. {
  1570. "name": "per_page",
  1571. "type": "integer",
  1572. "required": false,
  1573. "description": "Results per page (max 100)",
  1574. "default": 30,
  1575. "location": "query"
  1576. },
  1577. {
  1578. "name": "page",
  1579. "type": "integer",
  1580. "required": false,
  1581. "description": "Page number of the results to fetch.",
  1582. "default": 1,
  1583. "location": "query"
  1584. }
  1585. ],
  1586. "path": "/applications/grants"
  1587. },
  1588. "getOrCreateAuthorizationForApp": {
  1589. "description": "This method will create a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.",
  1590. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
  1591. "enabledForApps": false,
  1592. "method": "PUT",
  1593. "name": "Get-or-create an authorization for a specific app",
  1594. "params": [
  1595. {
  1596. "name": "client_id",
  1597. "type": "string",
  1598. "required": true,
  1599. "description": "",
  1600. "location": "url"
  1601. },
  1602. {
  1603. "name": "client_secret",
  1604. "type": "string",
  1605. "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
  1606. "required": true,
  1607. "location": "body"
  1608. },
  1609. {
  1610. "name": "scopes",
  1611. "type": "string[]",
  1612. "description": "A list of scopes that this authorization is in.",
  1613. "required": false,
  1614. "location": "body"
  1615. },
  1616. {
  1617. "name": "note",
  1618. "type": "string",
  1619. "description": "A note to remind you what the OAuth token is for.",
  1620. "required": false,
  1621. "location": "body"
  1622. },
  1623. {
  1624. "name": "note_url",
  1625. "type": "string",
  1626. "description": "A URL to remind you what app the OAuth token is for.",
  1627. "required": false,
  1628. "location": "body"
  1629. },
  1630. {
  1631. "name": "fingerprint",
  1632. "type": "string",
  1633. "description": "A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).",
  1634. "required": false,
  1635. "location": "body"
  1636. }
  1637. ],
  1638. "path": "/authorizations/clients/:client_id"
  1639. },
  1640. "getOrCreateAuthorizationForAppAndFingerprint": {
  1641. "description": "This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.",
  1642. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
  1643. "enabledForApps": false,
  1644. "method": "PUT",
  1645. "name": "Get-or-create an authorization for a specific app and fingerprint",
  1646. "params": [
  1647. {
  1648. "name": "client_id",
  1649. "type": "string",
  1650. "required": true,
  1651. "description": "",
  1652. "location": "url"
  1653. },
  1654. {
  1655. "name": "fingerprint",
  1656. "type": "string",
  1657. "required": true,
  1658. "description": "",
  1659. "location": "url"
  1660. },
  1661. {
  1662. "name": "client_secret",
  1663. "type": "string",
  1664. "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
  1665. "required": true,
  1666. "location": "body"
  1667. },
  1668. {
  1669. "name": "scopes",
  1670. "type": "string[]",
  1671. "description": "A list of scopes that this authorization is in.",
  1672. "required": false,
  1673. "location": "body"
  1674. },
  1675. {
  1676. "name": "note",
  1677. "type": "string",
  1678. "description": "A note to remind you what the OAuth token is for.",
  1679. "required": false,
  1680. "location": "body"
  1681. },
  1682. {
  1683. "name": "note_url",
  1684. "type": "string",
  1685. "description": "A URL to remind you what app the OAuth token is for.",
  1686. "required": false,
  1687. "location": "body"
  1688. }
  1689. ],
  1690. "path": "/authorizations/clients/:client_id/:fingerprint"
  1691. },
  1692. "reset": {
  1693. "description": "OAuth applications can use this API method to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
  1694. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization",
  1695. "enabledForApps": false,
  1696. "method": "POST",
  1697. "name": "Reset an authorization",
  1698. "params": [
  1699. {
  1700. "name": "client_id",
  1701. "type": "string",
  1702. "required": true,
  1703. "description": "",
  1704. "location": "url"
  1705. },
  1706. {
  1707. "name": "access_token",
  1708. "type": "string",
  1709. "required": true,
  1710. "description": "",
  1711. "location": "url"
  1712. }
  1713. ],
  1714. "path": "/applications/:client_id/tokens/:access_token"
  1715. },
  1716. "revoke": {
  1717. "description": "OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`.",
  1718. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application",
  1719. "enabledForApps": false,
  1720. "method": "DELETE",
  1721. "name": "Revoke an authorization for an application",
  1722. "params": [
  1723. {
  1724. "name": "client_id",
  1725. "type": "string",
  1726. "required": true,
  1727. "description": "",
  1728. "location": "url"
  1729. },
  1730. {
  1731. "name": "access_token",
  1732. "type": "string",
  1733. "required": true,
  1734. "description": "",
  1735. "location": "url"
  1736. }
  1737. ],
  1738. "path": "/applications/:client_id/tokens/:access_token"
  1739. },
  1740. "revokeGrant": {
  1741. "description": "OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. You must also provide a valid token as `:token` and the grant for the token's owner will be deleted.\n\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
  1742. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#revoke-a-grant-for-an-application",
  1743. "enabledForApps": false,
  1744. "method": "DELETE",
  1745. "name": "Revoke a grant for an application",
  1746. "params": [
  1747. {
  1748. "name": "client_id",
  1749. "type": "string",
  1750. "required": true,
  1751. "description": "",
  1752. "location": "url"
  1753. },
  1754. {
  1755. "name": "access_token",
  1756. "type": "string",
  1757. "required": true,
  1758. "description": "",
  1759. "location": "url"
  1760. }
  1761. ],
  1762. "path": "/applications/:client_id/grants/:access_token"
  1763. },
  1764. "update": {
  1765. "description": "You can only send one of these scope keys at a time.",
  1766. "documentationUrl": "https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
  1767. "enabledForApps": false,
  1768. "method": "PATCH",
  1769. "name": "Update an existing authorization",
  1770. "params": [
  1771. {
  1772. "name": "authorization_id",
  1773. "type": "string",
  1774. "required": true,
  1775. "description": "",
  1776. "location": "url"
  1777. },
  1778. {
  1779. "name": "scopes",
  1780. "type": "string[]",
  1781. "description": "Replaces the authorization scopes with these.",
  1782. "required": false,
  1783. "location": "body"
  1784. },
  1785. {
  1786. "name": "add_scopes",
  1787. "type": "string[]",
  1788. "description": "A list of scopes to add to this authorization.",
  1789. "required": false,
  1790. "location": "body"
  1791. },
  1792. {
  1793. "name": "remove_scopes",
  1794. "type": "string[]",
  1795. "description": "A list of scopes to remove from this authorization.",
  1796. "required": false,
  1797. "location": "body"
  1798. },
  1799. {
  1800. "name": "note",
  1801. "type": "string",
  1802. "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
  1803. "required": false,
  1804. "location": "body"
  1805. },
  1806. {
  1807. "name": "note_url",
  1808. "type": "string",
  1809. "description": "A URL to remind you what app the OAuth token is for.",
  1810. "required": false,
  1811. "location": "body"
  1812. },
  1813. {
  1814. "name": "fingerprint",
  1815. "type": "string",
  1816. "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
  1817. "required": false,
  1818. "location": "body"
  1819. }
  1820. ],
  1821. "path": "/authorizations/:authorization_id"
  1822. }
  1823. },
  1824. "checks": {
  1825. "create": {
  1826. "description": "Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
  1827. "documentationUrl": "https://developer.github.com/v3/checks/runs/#create-a-check-run",
  1828. "enabledForApps": true,
  1829. "method": "POST",
  1830. "name": "Create a check run",
  1831. "params": [
  1832. {
  1833. "name": "owner",
  1834. "type": "string",
  1835. "required": true,
  1836. "description": "",
  1837. "location": "url"
  1838. },
  1839. {
  1840. "name": "repo",
  1841. "type": "string",
  1842. "required": true,
  1843. "description": "",
  1844. "location": "url"
  1845. },
  1846. {
  1847. "name": "name",
  1848. "type": "string",
  1849. "description": "The name of the check (e.g., \"code-coverage\").",
  1850. "required": true,
  1851. "location": "body"
  1852. },
  1853. {
  1854. "name": "head_branch",
  1855. "type": "string",
  1856. "description": "The name of the branch to perform a check against.",
  1857. "required": true,
  1858. "location": "body"
  1859. },
  1860. {
  1861. "name": "head_sha",
  1862. "type": "string",
  1863. "description": "The SHA of the commit.",
  1864. "required": true,
  1865. "location": "body"
  1866. },
  1867. {
  1868. "name": "details_url",
  1869. "type": "string",
  1870. "description": "The URL of the integrator's site that has the full details of the check.",
  1871. "required": false,
  1872. "location": "body"
  1873. },
  1874. {
  1875. "name": "external_id",
  1876. "type": "string",
  1877. "description": "A reference for the run on the integrator's system.",
  1878. "required": false,
  1879. "location": "body"
  1880. },
  1881. {
  1882. "name": "status",
  1883. "type": "string",
  1884. "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
  1885. "default": "queued",
  1886. "required": false,
  1887. "enum": [
  1888. "queued",
  1889. "in_progress",
  1890. "completed"
  1891. ],
  1892. "location": "body"
  1893. },
  1894. {
  1895. "name": "started_at",
  1896. "type": "string",
  1897. "description": "The time that the check run began in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  1898. "required": false,
  1899. "location": "body"
  1900. },
  1901. {
  1902. "name": "conclusion",
  1903. "type": "string",
  1904. "description": "**Required if you provide a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`.",
  1905. "required": false,
  1906. "enum": [
  1907. "success",
  1908. "failure",
  1909. "neutral",
  1910. "cancelled",
  1911. "timed_out",
  1912. "action_required",
  1913. "details_url"
  1914. ],
  1915. "location": "body"
  1916. },
  1917. {
  1918. "name": "completed_at",
  1919. "type": "string",
  1920. "description": "**Required if you provide `conclusion`**. The time the check completed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  1921. "required": false,
  1922. "location": "body"
  1923. },
  1924. {
  1925. "name": "output",
  1926. "type": "object",
  1927. "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](#output-object) description.",
  1928. "required": false,
  1929. "location": "body"
  1930. },
  1931. {
  1932. "name": "output.title",
  1933. "type": "string",
  1934. "description": "The title of the check run.",
  1935. "required": true,
  1936. "location": "body"
  1937. },
  1938. {
  1939. "name": "output.summary",
  1940. "type": "string",
  1941. "description": "The summary of the check run. This parameter supports Markdown.",
  1942. "required": true,
  1943. "location": "body"
  1944. },
  1945. {
  1946. "name": "output.text",
  1947. "type": "string",
  1948. "description": "The details of the check run. This parameter supports Markdown.",
  1949. "required": false,
  1950. "location": "body"
  1951. },
  1952. {
  1953. "name": "output.annotations",
  1954. "type": "object[]",
  1955. "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](#annotations-object) description for details about how to use this parameter.",
  1956. "required": false,
  1957. "location": "body"
  1958. },
  1959. {
  1960. "name": "output.annotations[].filename",
  1961. "type": "string",
  1962. "description": "The name of the file to add an annotation to.",
  1963. "required": true,
  1964. "location": "body"
  1965. },
  1966. {
  1967. "name": "output.annotations[].blob_href",
  1968. "type": "string",
  1969. "description": "The file's full blob URL.",
  1970. "required": true,
  1971. "location": "body"
  1972. },
  1973. {
  1974. "name": "output.annotations[].start_line",
  1975. "type": "integer",
  1976. "description": "The start line of the annotation.",
  1977. "required": true,
  1978. "location": "body"
  1979. },
  1980. {
  1981. "name": "output.annotations[].end_line",
  1982. "type": "integer",
  1983. "description": "The end line of the annotation.",
  1984. "required": true,
  1985. "location": "body"
  1986. },
  1987. {
  1988. "name": "output.annotations[].warning_level",
  1989. "type": "string",
  1990. "description": "The warning level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
  1991. "required": true,
  1992. "enum": [
  1993. "notice",
  1994. "warning",
  1995. "failure"
  1996. ],
  1997. "location": "body"
  1998. },
  1999. {
  2000. "name": "output.annotations[].message",
  2001. "type": "string",
  2002. "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
  2003. "required": true,
  2004. "location": "body"
  2005. },
  2006. {
  2007. "name": "output.annotations[].title",
  2008. "type": "string",
  2009. "description": "The title that represents the annotation. The maximum size is 255 characters.",
  2010. "required": false,
  2011. "location": "body"
  2012. },
  2013. {
  2014. "name": "output.annotations[].raw_details",
  2015. "type": "string",
  2016. "description": "Details about this annotation. The maximum size is 64 KB.",
  2017. "required": false,
  2018. "location": "body"
  2019. },
  2020. {
  2021. "name": "output.images",
  2022. "type": "object[]",
  2023. "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](#images-object) description for details.",
  2024. "required": false,
  2025. "location": "body"
  2026. },
  2027. {
  2028. "name": "output.images[].alt",
  2029. "type": "string",
  2030. "description": "The alternative text for the image.",
  2031. "required": true,
  2032. "location": "body"
  2033. },
  2034. {
  2035. "name": "output.images[].image_url",
  2036. "type": "string",
  2037. "description": "The full URL of the image.",
  2038. "required": true,
  2039. "location": "body"
  2040. },
  2041. {
  2042. "name": "output.images[].caption",
  2043. "type": "string",
  2044. "description": "A short image description.",
  2045. "required": false,
  2046. "location": "body"
  2047. },
  2048. {
  2049. "name": "actions",
  2050. "type": "object",
  2051. "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](#actions-object) description.",
  2052. "required": false,
  2053. "location": "body"
  2054. },
  2055. {
  2056. "name": "actions.label",
  2057. "type": "string",
  2058. "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
  2059. "required": true,
  2060. "location": "body"
  2061. },
  2062. {
  2063. "name": "actions.description",
  2064. "type": "string",
  2065. "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
  2066. "required": true,
  2067. "location": "body"
  2068. },
  2069. {
  2070. "name": "actions.identifier",
  2071. "type": "string",
  2072. "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
  2073. "required": true,
  2074. "location": "body"
  2075. }
  2076. ],
  2077. "path": "/repos/:owner/:repo/check-runs"
  2078. },
  2079. "createSuite": {
  2080. "description": "By default, check suites are automatically created when you create a [check run](https://developer.github.com/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"[Set preferences for check suites on a repository](https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)\". Your GitHub App must have the `checks:write` permission to create check suites.",
  2081. "documentationUrl": "https://developer.github.com/v3/checks/suites/#create-a-check-suite",
  2082. "enabledForApps": true,
  2083. "method": "POST",
  2084. "name": "Create a check suite",
  2085. "params": [
  2086. {
  2087. "name": "owner",
  2088. "type": "string",
  2089. "required": true,
  2090. "description": "",
  2091. "location": "url"
  2092. },
  2093. {
  2094. "name": "repo",
  2095. "type": "string",
  2096. "required": true,
  2097. "description": "",
  2098. "location": "url"
  2099. },
  2100. {
  2101. "name": "head_sha",
  2102. "type": "string",
  2103. "description": "The sha of the head commit.",
  2104. "required": true,
  2105. "location": "body"
  2106. },
  2107. {
  2108. "name": "head_branch",
  2109. "type": "string",
  2110. "description": "The name of the head branch where the code changes are implemented.",
  2111. "required": false,
  2112. "location": "body"
  2113. }
  2114. ],
  2115. "path": "/repos/:owner/:repo/check-suites"
  2116. },
  2117. "get": {
  2118. "description": "Gets a single check run using its `id`. To get a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
  2119. "documentationUrl": "https://developer.github.com/v3/checks/runs/#get-a-single-check-run",
  2120. "enabledForApps": true,
  2121. "method": "GET",
  2122. "name": "Get a single check run",
  2123. "params": [
  2124. {
  2125. "name": "owner",
  2126. "type": "string",
  2127. "required": true,
  2128. "description": "",
  2129. "location": "url"
  2130. },
  2131. {
  2132. "name": "repo",
  2133. "type": "string",
  2134. "required": true,
  2135. "description": "",
  2136. "location": "url"
  2137. },
  2138. {
  2139. "name": "check_run_id",
  2140. "type": "string",
  2141. "required": true,
  2142. "description": "",
  2143. "location": "url"
  2144. }
  2145. ],
  2146. "path": "/repos/:owner/:repo/check-runs/:check_run_id"
  2147. },
  2148. "getSuite": {
  2149. "description": "Gets a single check suite using its `id`. Your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites.",
  2150. "documentationUrl": "https://developer.github.com/v3/checks/suites/#get-a-single-check-suite",
  2151. "enabledForApps": true,
  2152. "method": "GET",
  2153. "name": "Get a single check suite",
  2154. "params": [
  2155. {
  2156. "name": "owner",
  2157. "type": "string",
  2158. "required": true,
  2159. "description": "",
  2160. "location": "url"
  2161. },
  2162. {
  2163. "name": "repo",
  2164. "type": "string",
  2165. "required": true,
  2166. "description": "",
  2167. "location": "url"
  2168. },
  2169. {
  2170. "name": "check_suite_id",
  2171. "type": "string",
  2172. "required": true,
  2173. "description": "",
  2174. "location": "url"
  2175. }
  2176. ],
  2177. "path": "/repos/:owner/:repo/check-suites/:check_suite_id"
  2178. },
  2179. "listAnnotations": {
  2180. "description": "Lists annotations for a check run using the annotation `id`. To list annotations for a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
  2181. "documentationUrl": "https://developer.github.com/v3/checks/runs/#list-annotations-for-a-check-run",
  2182. "enabledForApps": true,
  2183. "method": "GET",
  2184. "name": "List annotations for a check run",
  2185. "params": [
  2186. {
  2187. "name": "owner",
  2188. "type": "string",
  2189. "required": true,
  2190. "description": "",
  2191. "location": "url"
  2192. },
  2193. {
  2194. "name": "repo",
  2195. "type": "string",
  2196. "required": true,
  2197. "description": "",
  2198. "location": "url"
  2199. },
  2200. {
  2201. "name": "check_run_id",
  2202. "type": "string",
  2203. "required": true,
  2204. "description": "",
  2205. "location": "url"
  2206. },
  2207. {
  2208. "name": "per_page",
  2209. "type": "integer",
  2210. "required": false,
  2211. "description": "Results per page (max 100)",
  2212. "default": 30,
  2213. "location": "query"
  2214. },
  2215. {
  2216. "name": "page",
  2217. "type": "integer",
  2218. "required": false,
  2219. "description": "Page number of the results to fetch.",
  2220. "default": 1,
  2221. "location": "query"
  2222. }
  2223. ],
  2224. "path": "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
  2225. },
  2226. "listForRef": {
  2227. "description": "Lists check runs for a SHA, branch name, or tag name. To list check runs, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
  2228. "documentationUrl": "https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-specific-ref",
  2229. "enabledForApps": true,
  2230. "method": "GET",
  2231. "name": "List check runs for a specific ref",
  2232. "params": [
  2233. {
  2234. "name": "owner",
  2235. "type": "string",
  2236. "required": true,
  2237. "description": "",
  2238. "location": "url"
  2239. },
  2240. {
  2241. "name": "repo",
  2242. "type": "string",
  2243. "required": true,
  2244. "description": "",
  2245. "location": "url"
  2246. },
  2247. {
  2248. "name": "ref",
  2249. "type": "string",
  2250. "description": "Can be a SHA, branch name, or tag name.",
  2251. "required": true,
  2252. "location": "url"
  2253. },
  2254. {
  2255. "name": "check_name",
  2256. "type": "string",
  2257. "description": "Returns check runs with the specified `name`.",
  2258. "required": false,
  2259. "location": "query"
  2260. },
  2261. {
  2262. "name": "status",
  2263. "type": "string",
  2264. "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.",
  2265. "required": false,
  2266. "enum": [
  2267. "queued",
  2268. "in_progress",
  2269. "completed"
  2270. ],
  2271. "location": "query"
  2272. },
  2273. {
  2274. "name": "filter",
  2275. "type": "string",
  2276. "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.",
  2277. "default": "latest",
  2278. "required": false,
  2279. "enum": [
  2280. "latest",
  2281. "all"
  2282. ],
  2283. "location": "query"
  2284. },
  2285. {
  2286. "name": "per_page",
  2287. "type": "integer",
  2288. "required": false,
  2289. "description": "Results per page (max 100)",
  2290. "default": 30,
  2291. "location": "query"
  2292. },
  2293. {
  2294. "name": "page",
  2295. "type": "integer",
  2296. "required": false,
  2297. "description": "Page number of the results to fetch.",
  2298. "default": 1,
  2299. "location": "query"
  2300. }
  2301. ],
  2302. "path": "/repos/:owner/:repo/commits/:ref/check-runs"
  2303. },
  2304. "listForSuite": {
  2305. "description": "Lists check runs for a check suite using its `id`. To list check runs, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
  2306. "documentationUrl": "https://developer.github.com/v3/checks/runs/#list-check-runs-in-a-check-suite",
  2307. "enabledForApps": true,
  2308. "method": "GET",
  2309. "name": "List check runs in a check suite",
  2310. "params": [
  2311. {
  2312. "name": "owner",
  2313. "type": "string",
  2314. "required": true,
  2315. "description": "",
  2316. "location": "url"
  2317. },
  2318. {
  2319. "name": "repo",
  2320. "type": "string",
  2321. "required": true,
  2322. "description": "",
  2323. "location": "url"
  2324. },
  2325. {
  2326. "name": "check_suite_id",
  2327. "type": "string",
  2328. "required": true,
  2329. "description": "",
  2330. "location": "url"
  2331. },
  2332. {
  2333. "name": "check_name",
  2334. "type": "string",
  2335. "description": "Returns check runs with the specified `name`.",
  2336. "required": false,
  2337. "location": "query"
  2338. },
  2339. {
  2340. "name": "status",
  2341. "type": "string",
  2342. "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.",
  2343. "required": false,
  2344. "enum": [
  2345. "queued",
  2346. "in_progress",
  2347. "completed"
  2348. ],
  2349. "location": "query"
  2350. },
  2351. {
  2352. "name": "filter",
  2353. "type": "string",
  2354. "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.",
  2355. "default": "latest",
  2356. "required": false,
  2357. "enum": [
  2358. "latest",
  2359. "all"
  2360. ],
  2361. "location": "query"
  2362. },
  2363. {
  2364. "name": "per_page",
  2365. "type": "integer",
  2366. "required": false,
  2367. "description": "Results per page (max 100)",
  2368. "default": 30,
  2369. "location": "query"
  2370. },
  2371. {
  2372. "name": "page",
  2373. "type": "integer",
  2374. "required": false,
  2375. "description": "Page number of the results to fetch.",
  2376. "default": 1,
  2377. "location": "query"
  2378. }
  2379. ],
  2380. "path": "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
  2381. },
  2382. "listSuitesForRef": {
  2383. "description": "Lists the check suites that were created for a commit `ref`. Your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites.",
  2384. "documentationUrl": "https://developer.github.com/v3/checks/suites/#list-check-suites-for-a-specific-ref",
  2385. "enabledForApps": true,
  2386. "method": "GET",
  2387. "name": "List check suites for a specific ref",
  2388. "params": [
  2389. {
  2390. "name": "owner",
  2391. "type": "string",
  2392. "required": true,
  2393. "description": "",
  2394. "location": "url"
  2395. },
  2396. {
  2397. "name": "repo",
  2398. "type": "string",
  2399. "required": true,
  2400. "description": "",
  2401. "location": "url"
  2402. },
  2403. {
  2404. "name": "ref",
  2405. "type": "string",
  2406. "description": "The `ref` can be a SHA, branch name, or a tag name.",
  2407. "required": true,
  2408. "location": "url"
  2409. },
  2410. {
  2411. "name": "app_id",
  2412. "type": "integer",
  2413. "description": "Filters check suites by GitHub App `id`.",
  2414. "required": false,
  2415. "location": "query"
  2416. },
  2417. {
  2418. "name": "check_name",
  2419. "type": "string",
  2420. "description": "Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/).",
  2421. "required": false,
  2422. "location": "query"
  2423. },
  2424. {
  2425. "name": "per_page",
  2426. "type": "integer",
  2427. "required": false,
  2428. "description": "Results per page (max 100)",
  2429. "default": 30,
  2430. "location": "query"
  2431. },
  2432. {
  2433. "name": "page",
  2434. "type": "integer",
  2435. "required": false,
  2436. "description": "Page number of the results to fetch.",
  2437. "default": 1,
  2438. "location": "query"
  2439. }
  2440. ],
  2441. "path": "/repos/:owner/:repo/commits/:ref/check-suites"
  2442. },
  2443. "requestSuites": {
  2444. "description": "Triggers GitHub to create a new check suite, without pushing new code to a repository. To request a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
  2445. "documentationUrl": "https://developer.github.com/v3/checks/suites/#request-check-suites",
  2446. "enabledForApps": true,
  2447. "method": "POST",
  2448. "name": "Request check suites",
  2449. "params": [
  2450. {
  2451. "name": "owner",
  2452. "type": "string",
  2453. "required": true,
  2454. "description": "",
  2455. "location": "url"
  2456. },
  2457. {
  2458. "name": "repo",
  2459. "type": "string",
  2460. "required": true,
  2461. "description": "",
  2462. "location": "url"
  2463. },
  2464. {
  2465. "name": "head_sha",
  2466. "type": "string",
  2467. "description": "**Required.** The sha of the head commit.",
  2468. "required": false,
  2469. "location": "body"
  2470. }
  2471. ],
  2472. "path": "/repos/:owner/:repo/check-suite-requests"
  2473. },
  2474. "setSuitesPreferences": {
  2475. "description": "Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.",
  2476. "documentationUrl": "https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository",
  2477. "enabledForApps": true,
  2478. "method": "PATCH",
  2479. "name": "Set preferences for check suites on a repository",
  2480. "params": [
  2481. {
  2482. "name": "owner",
  2483. "type": "string",
  2484. "required": true,
  2485. "description": "",
  2486. "location": "url"
  2487. },
  2488. {
  2489. "name": "repo",
  2490. "type": "string",
  2491. "required": true,
  2492. "description": "",
  2493. "location": "url"
  2494. },
  2495. {
  2496. "name": "auto_trigger_checks",
  2497. "type": "object[]",
  2498. "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](#auto_trigger_checks-object) description for details.",
  2499. "required": false,
  2500. "location": "body"
  2501. },
  2502. {
  2503. "name": "auto_trigger_checks[].app_id",
  2504. "type": "integer",
  2505. "description": "The `id` of the GitHub App.",
  2506. "required": true,
  2507. "location": "body"
  2508. },
  2509. {
  2510. "name": "auto_trigger_checks[].setting",
  2511. "type": "boolean",
  2512. "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
  2513. "default": true,
  2514. "required": true,
  2515. "location": "body"
  2516. }
  2517. ],
  2518. "path": "/repos/:owner/:repo/check-suites/preferences"
  2519. },
  2520. "update": {
  2521. "description": "Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.",
  2522. "documentationUrl": "https://developer.github.com/v3/checks/runs/#update-a-check-run",
  2523. "enabledForApps": true,
  2524. "method": "PATCH",
  2525. "name": "Update a check run",
  2526. "params": [
  2527. {
  2528. "name": "owner",
  2529. "type": "string",
  2530. "required": true,
  2531. "description": "",
  2532. "location": "url"
  2533. },
  2534. {
  2535. "name": "repo",
  2536. "type": "string",
  2537. "required": true,
  2538. "description": "",
  2539. "location": "url"
  2540. },
  2541. {
  2542. "name": "check_run_id",
  2543. "type": "string",
  2544. "required": true,
  2545. "description": "",
  2546. "location": "url"
  2547. },
  2548. {
  2549. "name": "name",
  2550. "type": "string",
  2551. "description": "The name of the check (e.g., \"code-coverage\").",
  2552. "required": true,
  2553. "location": "body"
  2554. },
  2555. {
  2556. "name": "details_url",
  2557. "type": "string",
  2558. "description": "The URL of the integrator's site that has the full details of the check.",
  2559. "required": false,
  2560. "location": "body"
  2561. },
  2562. {
  2563. "name": "external_id",
  2564. "type": "string",
  2565. "description": "A reference for the run on the integrator's system.",
  2566. "required": false,
  2567. "location": "body"
  2568. },
  2569. {
  2570. "name": "started_at",
  2571. "type": "string",
  2572. "description": "A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  2573. "required": false,
  2574. "location": "body"
  2575. },
  2576. {
  2577. "name": "status",
  2578. "type": "string",
  2579. "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
  2580. "required": false,
  2581. "enum": [
  2582. "queued",
  2583. "in_progress",
  2584. "completed"
  2585. ],
  2586. "location": "body"
  2587. },
  2588. {
  2589. "name": "conclusion",
  2590. "type": "string",
  2591. "description": "**Required if you provide a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`.",
  2592. "required": false,
  2593. "enum": [
  2594. "success",
  2595. "failure",
  2596. "neutral",
  2597. "cancelled",
  2598. "timed_out",
  2599. "action_required",
  2600. "details_url"
  2601. ],
  2602. "location": "body"
  2603. },
  2604. {
  2605. "name": "completed_at",
  2606. "type": "string",
  2607. "description": "**Required if you provide `conclusion`**. The time the check completed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  2608. "required": false,
  2609. "location": "body"
  2610. },
  2611. {
  2612. "name": "output",
  2613. "type": "object",
  2614. "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](#output-object-1) description.",
  2615. "required": false,
  2616. "location": "body"
  2617. },
  2618. {
  2619. "name": "output.title",
  2620. "type": "string",
  2621. "description": "**Required**.",
  2622. "required": false,
  2623. "location": "body"
  2624. },
  2625. {
  2626. "name": "output.summary",
  2627. "type": "string",
  2628. "description": "Can contain Markdown.",
  2629. "required": true,
  2630. "location": "body"
  2631. },
  2632. {
  2633. "name": "output.text",
  2634. "type": "string",
  2635. "description": "Can contain Markdown.",
  2636. "required": false,
  2637. "location": "body"
  2638. },
  2639. {
  2640. "name": "output.annotations",
  2641. "type": "object[]",
  2642. "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](#annotations-object-1) description for details.",
  2643. "required": false,
  2644. "location": "body"
  2645. },
  2646. {
  2647. "name": "output.annotations[].filename",
  2648. "type": "string",
  2649. "description": "The name of the file to add an annotation to.",
  2650. "required": true,
  2651. "location": "body"
  2652. },
  2653. {
  2654. "name": "output.annotations[].blob_href",
  2655. "type": "string",
  2656. "description": "The file's full blob URL.",
  2657. "required": true,
  2658. "location": "body"
  2659. },
  2660. {
  2661. "name": "output.annotations[].start_line",
  2662. "type": "integer",
  2663. "description": "The start line of the annotation.",
  2664. "required": true,
  2665. "location": "body"
  2666. },
  2667. {
  2668. "name": "output.annotations[].end_line",
  2669. "type": "integer",
  2670. "description": "The end line of the annotation.",
  2671. "required": true,
  2672. "location": "body"
  2673. },
  2674. {
  2675. "name": "output.annotations[].warning_level",
  2676. "type": "string",
  2677. "description": "The warning level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
  2678. "required": true,
  2679. "enum": [
  2680. "notice",
  2681. "warning",
  2682. "failure"
  2683. ],
  2684. "location": "body"
  2685. },
  2686. {
  2687. "name": "output.annotations[].message",
  2688. "type": "string",
  2689. "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
  2690. "required": true,
  2691. "location": "body"
  2692. },
  2693. {
  2694. "name": "output.annotations[].title",
  2695. "type": "string",
  2696. "description": "The title that represents the annotation. The maximum size is 255 characters.",
  2697. "required": false,
  2698. "location": "body"
  2699. },
  2700. {
  2701. "name": "output.annotations[].raw_details",
  2702. "type": "string",
  2703. "description": "Details about this annotation. The maximum size is 64 KB.",
  2704. "required": false,
  2705. "location": "body"
  2706. },
  2707. {
  2708. "name": "output.images",
  2709. "type": "object[]",
  2710. "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](#annotations-object-1) description for details.",
  2711. "required": false,
  2712. "location": "body"
  2713. },
  2714. {
  2715. "name": "output.images[].alt",
  2716. "type": "string",
  2717. "description": "The alternative text for the image.",
  2718. "required": true,
  2719. "location": "body"
  2720. },
  2721. {
  2722. "name": "output.images[].image_url",
  2723. "type": "string",
  2724. "description": "The full URL of the image.",
  2725. "required": true,
  2726. "location": "body"
  2727. },
  2728. {
  2729. "name": "output.images[].caption",
  2730. "type": "string",
  2731. "description": "A short image description.",
  2732. "required": false,
  2733. "location": "body"
  2734. },
  2735. {
  2736. "name": "actions",
  2737. "type": "object",
  2738. "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](#actions-object) description.",
  2739. "required": false,
  2740. "location": "body"
  2741. },
  2742. {
  2743. "name": "actions.label",
  2744. "type": "string",
  2745. "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
  2746. "required": true,
  2747. "location": "body"
  2748. },
  2749. {
  2750. "name": "actions.description",
  2751. "type": "string",
  2752. "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
  2753. "required": true,
  2754. "location": "body"
  2755. },
  2756. {
  2757. "name": "actions.identifier",
  2758. "type": "string",
  2759. "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
  2760. "required": true,
  2761. "location": "body"
  2762. }
  2763. ],
  2764. "path": "/repos/:owner/:repo/check-runs/:check_run_id"
  2765. }
  2766. },
  2767. "gists": {
  2768. "checkStar": {
  2769. "description": "",
  2770. "documentationUrl": "https://developer.github.com/v3/gists/#check-if-a-gist-is-starred",
  2771. "enabledForApps": false,
  2772. "method": "GET",
  2773. "name": "Check if a gist is starred",
  2774. "params": [
  2775. {
  2776. "name": "gist_id",
  2777. "type": "string",
  2778. "required": true,
  2779. "description": "",
  2780. "location": "url"
  2781. }
  2782. ],
  2783. "path": "/gists/:gist_id/star"
  2784. },
  2785. "create": {
  2786. "description": "The keys in the `files` object are the `string` filename, and the value is another `object` with a key of `content`, and a value of the file contents. For example:\n\n**Note:** Don't name your files \"gistfile\" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.",
  2787. "documentationUrl": "https://developer.github.com/v3/gists/#create-a-gist",
  2788. "enabledForApps": false,
  2789. "method": "POST",
  2790. "name": "Create a gist",
  2791. "params": [
  2792. {
  2793. "name": "files",
  2794. "type": "object",
  2795. "description": "Files that make up this gist.",
  2796. "required": true,
  2797. "location": "body"
  2798. },
  2799. {
  2800. "name": "description",
  2801. "type": "string",
  2802. "description": "A description of the gist.",
  2803. "required": false,
  2804. "location": "body"
  2805. },
  2806. {
  2807. "name": "public",
  2808. "type": "boolean",
  2809. "description": "Indicates whether the gist is public.",
  2810. "default": false,
  2811. "required": false,
  2812. "location": "body"
  2813. }
  2814. ],
  2815. "path": "/gists"
  2816. },
  2817. "createComment": {
  2818. "description": "",
  2819. "documentationUrl": "https://developer.github.com/v3/gists/comments/#create-a-comment",
  2820. "enabledForApps": false,
  2821. "method": "POST",
  2822. "name": "Create a comment",
  2823. "params": [
  2824. {
  2825. "name": "gist_id",
  2826. "type": "string",
  2827. "required": true,
  2828. "description": "",
  2829. "location": "url"
  2830. },
  2831. {
  2832. "name": "body",
  2833. "type": "string",
  2834. "description": "The comment text.",
  2835. "required": true,
  2836. "location": "body"
  2837. }
  2838. ],
  2839. "path": "/gists/:gist_id/comments"
  2840. },
  2841. "delete": {
  2842. "description": "",
  2843. "documentationUrl": "https://developer.github.com/v3/gists/#delete-a-gist",
  2844. "enabledForApps": false,
  2845. "method": "DELETE",
  2846. "name": "Delete a gist",
  2847. "params": [
  2848. {
  2849. "name": "gist_id",
  2850. "type": "string",
  2851. "required": true,
  2852. "description": "",
  2853. "location": "url"
  2854. }
  2855. ],
  2856. "path": "/gists/:gist_id"
  2857. },
  2858. "deleteComment": {
  2859. "description": "",
  2860. "documentationUrl": "https://developer.github.com/v3/gists/comments/#delete-a-comment",
  2861. "enabledForApps": false,
  2862. "method": "DELETE",
  2863. "name": "Delete a comment",
  2864. "params": [
  2865. {
  2866. "name": "gist_id",
  2867. "type": "string",
  2868. "required": true,
  2869. "description": "",
  2870. "location": "url"
  2871. },
  2872. {
  2873. "name": "comment_id",
  2874. "type": "string",
  2875. "required": true,
  2876. "description": "",
  2877. "location": "url"
  2878. }
  2879. ],
  2880. "path": "/gists/:gist_id/comments/:comment_id"
  2881. },
  2882. "edit": {
  2883. "description": "The keys in the `files` object are the `string` filename. The value is another `object` with a key of `content` (indicating the new contents), or `filename` (indicating the new filename). For example:\n\n**Note**: All files from the previous version of the gist are carried over by default if not included in the object. Deletes can be performed by including the filename with a `null` object.",
  2884. "documentationUrl": "https://developer.github.com/v3/gists/#edit-a-gist",
  2885. "enabledForApps": false,
  2886. "method": "PATCH",
  2887. "name": "Edit a gist",
  2888. "params": [
  2889. {
  2890. "name": "gist_id",
  2891. "type": "string",
  2892. "required": true,
  2893. "description": "",
  2894. "location": "url"
  2895. },
  2896. {
  2897. "name": "description",
  2898. "type": "string",
  2899. "description": "A description of the gist.",
  2900. "required": false,
  2901. "location": "body"
  2902. },
  2903. {
  2904. "name": "files",
  2905. "type": "object",
  2906. "description": "Files that make up this gist.",
  2907. "required": false,
  2908. "location": "body"
  2909. },
  2910. {
  2911. "name": "content",
  2912. "type": "string",
  2913. "description": "Updated file contents.",
  2914. "required": false,
  2915. "location": "body"
  2916. },
  2917. {
  2918. "name": "filename",
  2919. "type": "string",
  2920. "description": "New name for this file.",
  2921. "required": false,
  2922. "location": "body"
  2923. }
  2924. ],
  2925. "path": "/gists/:gist_id"
  2926. },
  2927. "editComment": {
  2928. "description": "",
  2929. "documentationUrl": "https://developer.github.com/v3/gists/comments/#edit-a-comment",
  2930. "enabledForApps": false,
  2931. "method": "PATCH",
  2932. "name": "Edit a comment",
  2933. "params": [
  2934. {
  2935. "name": "gist_id",
  2936. "type": "string",
  2937. "required": true,
  2938. "description": "",
  2939. "location": "url"
  2940. },
  2941. {
  2942. "name": "comment_id",
  2943. "type": "string",
  2944. "required": true,
  2945. "description": "",
  2946. "location": "url"
  2947. },
  2948. {
  2949. "name": "body",
  2950. "type": "string",
  2951. "description": "The comment text.",
  2952. "required": true,
  2953. "location": "body"
  2954. }
  2955. ],
  2956. "path": "/gists/:gist_id/comments/:comment_id"
  2957. },
  2958. "fork": {
  2959. "description": "**Note**: This was previously `/gists/:gist_id/fork`.",
  2960. "documentationUrl": "https://developer.github.com/v3/gists/#fork-a-gist",
  2961. "enabledForApps": false,
  2962. "method": "POST",
  2963. "name": "Fork a gist",
  2964. "params": [
  2965. {
  2966. "name": "gist_id",
  2967. "type": "string",
  2968. "required": true,
  2969. "description": "",
  2970. "location": "url"
  2971. }
  2972. ],
  2973. "path": "/gists/:gist_id/forks"
  2974. },
  2975. "get": {
  2976. "description": "",
  2977. "documentationUrl": "https://developer.github.com/v3/gists/#get-a-single-gist",
  2978. "enabledForApps": false,
  2979. "method": "GET",
  2980. "name": "Get a single gist",
  2981. "params": [
  2982. {
  2983. "name": "gist_id",
  2984. "type": "string",
  2985. "required": true,
  2986. "description": "",
  2987. "location": "url"
  2988. }
  2989. ],
  2990. "path": "/gists/:gist_id"
  2991. },
  2992. "getAll": {
  2993. "description": "",
  2994. "documentationUrl": "https://developer.github.com/v3/gists/#list-a-users-gists",
  2995. "enabledForApps": false,
  2996. "method": "GET",
  2997. "name": "List the authenticated user's gists or if called anonymously, this will return all public gists",
  2998. "params": [
  2999. {
  3000. "name": "since",
  3001. "type": "string",
  3002. "description": "A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.",
  3003. "required": false,
  3004. "location": "query"
  3005. },
  3006. {
  3007. "name": "per_page",
  3008. "type": "integer",
  3009. "required": false,
  3010. "description": "Results per page (max 100)",
  3011. "default": 30,
  3012. "location": "query"
  3013. },
  3014. {
  3015. "name": "page",
  3016. "type": "integer",
  3017. "required": false,
  3018. "description": "Page number of the results to fetch.",
  3019. "default": 1,
  3020. "location": "query"
  3021. }
  3022. ],
  3023. "path": "/gists"
  3024. },
  3025. "getComment": {
  3026. "description": "",
  3027. "documentationUrl": "https://developer.github.com/v3/gists/comments/#get-a-single-comment",
  3028. "enabledForApps": false,
  3029. "method": "GET",
  3030. "name": "Get a single comment",
  3031. "params": [
  3032. {
  3033. "name": "gist_id",
  3034. "type": "string",
  3035. "required": true,
  3036. "description": "",
  3037. "location": "url"
  3038. },
  3039. {
  3040. "name": "comment_id",
  3041. "type": "string",
  3042. "required": true,
  3043. "description": "",
  3044. "location": "url"
  3045. }
  3046. ],
  3047. "path": "/gists/:gist_id/comments/:comment_id"
  3048. },
  3049. "getComments": {
  3050. "description": "",
  3051. "documentationUrl": "https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist",
  3052. "enabledForApps": false,
  3053. "method": "GET",
  3054. "name": "List comments on a gist",
  3055. "params": [
  3056. {
  3057. "name": "gist_id",
  3058. "type": "string",
  3059. "required": true,
  3060. "description": "",
  3061. "location": "url"
  3062. },
  3063. {
  3064. "name": "per_page",
  3065. "type": "integer",
  3066. "required": false,
  3067. "description": "Results per page (max 100)",
  3068. "default": 30,
  3069. "location": "query"
  3070. },
  3071. {
  3072. "name": "page",
  3073. "type": "integer",
  3074. "required": false,
  3075. "description": "Page number of the results to fetch.",
  3076. "default": 1,
  3077. "location": "query"
  3078. }
  3079. ],
  3080. "path": "/gists/:gist_id/comments"
  3081. },
  3082. "getCommits": {
  3083. "description": "",
  3084. "documentationUrl": "https://developer.github.com/v3/gists/#list-gist-commits",
  3085. "enabledForApps": false,
  3086. "method": "GET",
  3087. "name": "List gist commits",
  3088. "params": [
  3089. {
  3090. "name": "gist_id",
  3091. "type": "string",
  3092. "required": true,
  3093. "description": "",
  3094. "location": "url"
  3095. },
  3096. {
  3097. "name": "per_page",
  3098. "type": "integer",
  3099. "required": false,
  3100. "description": "Results per page (max 100)",
  3101. "default": 30,
  3102. "location": "query"
  3103. },
  3104. {
  3105. "name": "page",
  3106. "type": "integer",
  3107. "required": false,
  3108. "description": "Page number of the results to fetch.",
  3109. "default": 1,
  3110. "location": "query"
  3111. }
  3112. ],
  3113. "path": "/gists/:gist_id/commits"
  3114. },
  3115. "getForUser": {
  3116. "description": "",
  3117. "documentationUrl": "https://developer.github.com/v3/gists/#list-a-users-gists",
  3118. "enabledForApps": false,
  3119. "method": "GET",
  3120. "name": "List public gists for the specified user",
  3121. "params": [
  3122. {
  3123. "name": "username",
  3124. "type": "string",
  3125. "required": true,
  3126. "description": "",
  3127. "location": "url"
  3128. },
  3129. {
  3130. "name": "since",
  3131. "type": "string",
  3132. "description": "A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.",
  3133. "required": false,
  3134. "location": "query"
  3135. },
  3136. {
  3137. "name": "per_page",
  3138. "type": "integer",
  3139. "required": false,
  3140. "description": "Results per page (max 100)",
  3141. "default": 30,
  3142. "location": "query"
  3143. },
  3144. {
  3145. "name": "page",
  3146. "type": "integer",
  3147. "required": false,
  3148. "description": "Page number of the results to fetch.",
  3149. "default": 1,
  3150. "location": "query"
  3151. }
  3152. ],
  3153. "path": "/users/:username/gists"
  3154. },
  3155. "getForks": {
  3156. "description": "",
  3157. "documentationUrl": "https://developer.github.com/v3/gists/#list-gist-forks",
  3158. "enabledForApps": false,
  3159. "method": "GET",
  3160. "name": "List gist forks",
  3161. "params": [
  3162. {
  3163. "name": "gist_id",
  3164. "type": "string",
  3165. "required": true,
  3166. "description": "",
  3167. "location": "url"
  3168. },
  3169. {
  3170. "name": "per_page",
  3171. "type": "integer",
  3172. "required": false,
  3173. "description": "Results per page (max 100)",
  3174. "default": 30,
  3175. "location": "query"
  3176. },
  3177. {
  3178. "name": "page",
  3179. "type": "integer",
  3180. "required": false,
  3181. "description": "Page number of the results to fetch.",
  3182. "default": 1,
  3183. "location": "query"
  3184. }
  3185. ],
  3186. "path": "/gists/:gist_id/forks"
  3187. },
  3188. "getPublic": {
  3189. "description": "List all public gists sorted by most recently updated to least recently updated.\n\nNote: With [pagination](https://developer.github.com/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.",
  3190. "documentationUrl": "https://developer.github.com/v3/gists/#list-all-public-gists",
  3191. "enabledForApps": false,
  3192. "method": "GET",
  3193. "name": "List all public gists",
  3194. "params": [
  3195. {
  3196. "name": "since",
  3197. "type": "string",
  3198. "description": "A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.",
  3199. "required": false,
  3200. "location": "query"
  3201. },
  3202. {
  3203. "name": "per_page",
  3204. "type": "integer",
  3205. "required": false,
  3206. "description": "Results per page (max 100)",
  3207. "default": 30,
  3208. "location": "query"
  3209. },
  3210. {
  3211. "name": "page",
  3212. "type": "integer",
  3213. "required": false,
  3214. "description": "Page number of the results to fetch.",
  3215. "default": 1,
  3216. "location": "query"
  3217. }
  3218. ],
  3219. "path": "/gists/public"
  3220. },
  3221. "getRevision": {
  3222. "description": "",
  3223. "documentationUrl": "https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist",
  3224. "enabledForApps": false,
  3225. "method": "GET",
  3226. "name": "Get a specific revision of a gist",
  3227. "params": [
  3228. {
  3229. "name": "gist_id",
  3230. "type": "string",
  3231. "required": true,
  3232. "description": "",
  3233. "location": "url"
  3234. },
  3235. {
  3236. "name": "sha",
  3237. "type": "string",
  3238. "required": true,
  3239. "description": "",
  3240. "location": "url"
  3241. }
  3242. ],
  3243. "path": "/gists/:gist_id/:sha"
  3244. },
  3245. "getStarred": {
  3246. "description": "List the authenticated user's starred gists:",
  3247. "documentationUrl": "https://developer.github.com/v3/gists/#list-starred-gists",
  3248. "enabledForApps": false,
  3249. "method": "GET",
  3250. "name": "List starred gists",
  3251. "params": [
  3252. {
  3253. "name": "since",
  3254. "type": "string",
  3255. "description": "A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.",
  3256. "required": false,
  3257. "location": "query"
  3258. },
  3259. {
  3260. "name": "per_page",
  3261. "type": "integer",
  3262. "required": false,
  3263. "description": "Results per page (max 100)",
  3264. "default": 30,
  3265. "location": "query"
  3266. },
  3267. {
  3268. "name": "page",
  3269. "type": "integer",
  3270. "required": false,
  3271. "description": "Page number of the results to fetch.",
  3272. "default": 1,
  3273. "location": "query"
  3274. }
  3275. ],
  3276. "path": "/gists/starred"
  3277. },
  3278. "star": {
  3279. "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"",
  3280. "documentationUrl": "https://developer.github.com/v3/gists/#star-a-gist",
  3281. "enabledForApps": false,
  3282. "method": "PUT",
  3283. "name": "Star a gist",
  3284. "params": [
  3285. {
  3286. "name": "gist_id",
  3287. "type": "string",
  3288. "required": true,
  3289. "description": "",
  3290. "location": "url"
  3291. }
  3292. ],
  3293. "path": "/gists/:gist_id/star"
  3294. },
  3295. "unstar": {
  3296. "description": "",
  3297. "documentationUrl": "https://developer.github.com/v3/gists/#unstar-a-gist",
  3298. "enabledForApps": false,
  3299. "method": "DELETE",
  3300. "name": "Unstar a gist",
  3301. "params": [
  3302. {
  3303. "name": "gist_id",
  3304. "type": "string",
  3305. "required": true,
  3306. "description": "",
  3307. "location": "url"
  3308. }
  3309. ],
  3310. "path": "/gists/:gist_id/star"
  3311. }
  3312. },
  3313. "gitdata": {
  3314. "createBlob": {
  3315. "description": "",
  3316. "documentationUrl": "https://developer.github.com/v3/git/blobs/#create-a-blob",
  3317. "enabledForApps": true,
  3318. "method": "POST",
  3319. "name": "Create a blob",
  3320. "params": [
  3321. {
  3322. "name": "owner",
  3323. "type": "string",
  3324. "required": true,
  3325. "description": "",
  3326. "location": "url"
  3327. },
  3328. {
  3329. "name": "repo",
  3330. "type": "string",
  3331. "required": true,
  3332. "description": "",
  3333. "location": "url"
  3334. },
  3335. {
  3336. "name": "content",
  3337. "type": "string",
  3338. "description": "The new blob's content.",
  3339. "required": true,
  3340. "location": "body"
  3341. },
  3342. {
  3343. "name": "encoding",
  3344. "type": "string",
  3345. "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
  3346. "default": "\"utf-8\"",
  3347. "required": false,
  3348. "location": "body"
  3349. }
  3350. ],
  3351. "path": "/repos/:owner/:repo/git/blobs"
  3352. },
  3353. "createCommit": {
  3354. "description": "Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\nThe `committer` section is optional and will be filled with the `author` data if omitted. If the `author` section is omitted, it will be filled in with the authenticated user's information and the current date.\n\nBoth the `author` and `committer` parameters have the same keys:\n\n| name | type | description |\n| ----- | ------ | ----------------------------------------------------------------------------------------------------------------------- |\n| name | string | The name of the author (or committer) of the commit |\n| email | string | The email of the author (or committer) of the commit |\n| date | string | Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. |\n\nYou can also provide an optional string `signature` parameter. This value will be added to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database.\n\n**Note**: To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.\n\nIn this example, the payload that the signature is over would have been:\n\n",
  3355. "documentationUrl": "https://developer.github.com/v3/git/commits/#create-a-commit",
  3356. "enabledForApps": true,
  3357. "method": "POST",
  3358. "name": "Create a commit",
  3359. "params": [
  3360. {
  3361. "name": "owner",
  3362. "type": "string",
  3363. "required": true,
  3364. "description": "",
  3365. "location": "url"
  3366. },
  3367. {
  3368. "name": "repo",
  3369. "type": "string",
  3370. "required": true,
  3371. "description": "",
  3372. "location": "url"
  3373. },
  3374. {
  3375. "name": "message",
  3376. "type": "string",
  3377. "description": "The commit message",
  3378. "required": true,
  3379. "location": "body"
  3380. },
  3381. {
  3382. "name": "tree",
  3383. "type": "string",
  3384. "description": "The SHA of the tree object this commit points to",
  3385. "required": true,
  3386. "location": "body"
  3387. },
  3388. {
  3389. "name": "parents",
  3390. "type": "string[]",
  3391. "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
  3392. "required": true,
  3393. "location": "body"
  3394. },
  3395. {
  3396. "name": "committer",
  3397. "type": "object",
  3398. "description": "object containing information about the committer.",
  3399. "location": "body"
  3400. },
  3401. {
  3402. "name": "author",
  3403. "type": "object",
  3404. "description": "object containing information about the author.",
  3405. "location": "body"
  3406. }
  3407. ],
  3408. "path": "/repos/:owner/:repo/git/commits"
  3409. },
  3410. "createReference": {
  3411. "description": "Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.",
  3412. "documentationUrl": "https://developer.github.com/v3/git/refs/#create-a-reference",
  3413. "enabledForApps": true,
  3414. "method": "POST",
  3415. "name": "Create a reference",
  3416. "params": [
  3417. {
  3418. "name": "owner",
  3419. "type": "string",
  3420. "required": true,
  3421. "description": "",
  3422. "location": "url"
  3423. },
  3424. {
  3425. "name": "repo",
  3426. "type": "string",
  3427. "required": true,
  3428. "description": "",
  3429. "location": "url"
  3430. },
  3431. {
  3432. "name": "ref",
  3433. "type": "string",
  3434. "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
  3435. "required": true,
  3436. "location": "body"
  3437. },
  3438. {
  3439. "name": "sha",
  3440. "type": "string",
  3441. "description": "The SHA1 value for this reference.",
  3442. "required": true,
  3443. "location": "body"
  3444. }
  3445. ],
  3446. "path": "/repos/:owner/:repo/git/refs"
  3447. },
  3448. "createTag": {
  3449. "description": "Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary.",
  3450. "documentationUrl": "https://developer.github.com/v3/git/tags/#create-a-tag-object",
  3451. "enabledForApps": true,
  3452. "method": "POST",
  3453. "name": "Create a tag object",
  3454. "params": [
  3455. {
  3456. "name": "owner",
  3457. "type": "string",
  3458. "required": true,
  3459. "description": "",
  3460. "location": "url"
  3461. },
  3462. {
  3463. "name": "repo",
  3464. "type": "string",
  3465. "required": true,
  3466. "description": "",
  3467. "location": "url"
  3468. },
  3469. {
  3470. "name": "tag",
  3471. "type": "string",
  3472. "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
  3473. "required": true,
  3474. "location": "body"
  3475. },
  3476. {
  3477. "name": "message",
  3478. "type": "string",
  3479. "description": "The tag message.",
  3480. "required": true,
  3481. "location": "body"
  3482. },
  3483. {
  3484. "name": "object",
  3485. "type": "string",
  3486. "description": "The SHA of the git object this is tagging.",
  3487. "required": true,
  3488. "location": "body"
  3489. },
  3490. {
  3491. "name": "type",
  3492. "type": "string",
  3493. "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
  3494. "required": true,
  3495. "enum": [
  3496. "commit",
  3497. "tree",
  3498. "blob"
  3499. ],
  3500. "location": "body"
  3501. },
  3502. {
  3503. "name": "tagger",
  3504. "type": "object",
  3505. "description": "An object with information about the individual creating the tag.",
  3506. "required": false,
  3507. "location": "body"
  3508. },
  3509. {
  3510. "name": "tagger.name",
  3511. "type": "string",
  3512. "description": "The name of the author of the tag",
  3513. "required": false,
  3514. "location": "body"
  3515. },
  3516. {
  3517. "name": "tagger.email",
  3518. "type": "string",
  3519. "description": "The email of the author of the tag",
  3520. "required": false,
  3521. "location": "body"
  3522. },
  3523. {
  3524. "name": "tagger.date",
  3525. "type": "string",
  3526. "description": "When this object was tagged. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  3527. "required": false,
  3528. "location": "body"
  3529. }
  3530. ],
  3531. "path": "/repos/:owner/:repo/git/tags"
  3532. },
  3533. "createTree": {
  3534. "description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
  3535. "documentationUrl": "https://developer.github.com/v3/git/trees/#create-a-tree",
  3536. "enabledForApps": true,
  3537. "method": "POST",
  3538. "name": "Create a tree",
  3539. "params": [
  3540. {
  3541. "name": "owner",
  3542. "type": "string",
  3543. "required": true,
  3544. "description": "",
  3545. "location": "url"
  3546. },
  3547. {
  3548. "name": "repo",
  3549. "type": "string",
  3550. "required": true,
  3551. "description": "",
  3552. "location": "url"
  3553. },
  3554. {
  3555. "name": "tree",
  3556. "type": "object[]",
  3557. "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure",
  3558. "required": true,
  3559. "location": "body"
  3560. },
  3561. {
  3562. "name": "tree[].path",
  3563. "type": "string",
  3564. "description": "The file referenced in the tree",
  3565. "required": false,
  3566. "location": "body"
  3567. },
  3568. {
  3569. "name": "tree[].mode",
  3570. "type": "string",
  3571. "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink",
  3572. "required": false,
  3573. "enum": [
  3574. "100644",
  3575. "100755",
  3576. "040000",
  3577. "160000",
  3578. "120000"
  3579. ],
  3580. "location": "body"
  3581. },
  3582. {
  3583. "name": "tree[].type",
  3584. "type": "string",
  3585. "description": "Either `blob`, `tree`, or `commit`",
  3586. "required": false,
  3587. "enum": [
  3588. "blob",
  3589. "tree",
  3590. "commit"
  3591. ],
  3592. "location": "body"
  3593. },
  3594. {
  3595. "name": "tree[].sha",
  3596. "type": "string",
  3597. "description": "The SHA1 checksum ID of the object in the tree",
  3598. "required": false,
  3599. "location": "body"
  3600. },
  3601. {
  3602. "name": "tree[].content",
  3603. "type": "string",
  3604. "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`.",
  3605. "required": false,
  3606. "location": "body"
  3607. },
  3608. {
  3609. "name": "base_tree",
  3610. "type": "string",
  3611. "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
  3612. "required": false,
  3613. "location": "body"
  3614. }
  3615. ],
  3616. "path": "/repos/:owner/:repo/git/trees"
  3617. },
  3618. "deleteReference": {
  3619. "description": "Example: Deleting a branch:\n\n```\nDELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\n```\n\nExample: Deleting a tag:\n\n```\nDELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n```",
  3620. "documentationUrl": "https://developer.github.com/v3/git/refs/#delete-a-reference",
  3621. "enabledForApps": true,
  3622. "method": "DELETE",
  3623. "name": "Delete a reference",
  3624. "params": [
  3625. {
  3626. "name": "owner",
  3627. "type": "string",
  3628. "required": true,
  3629. "description": "",
  3630. "location": "url"
  3631. },
  3632. {
  3633. "name": "repo",
  3634. "type": "string",
  3635. "required": true,
  3636. "description": "",
  3637. "location": "url"
  3638. },
  3639. {
  3640. "name": "ref",
  3641. "type": "string",
  3642. "required": true,
  3643. "description": "",
  3644. "location": "url"
  3645. }
  3646. ],
  3647. "path": "/repos/:owner/:repo/git/refs/:ref"
  3648. },
  3649. "getBlob": {
  3650. "description": "The `content` in the response will always be Base64 encoded.\n\n_Note_: This API supports blobs up to 100 megabytes in size.",
  3651. "documentationUrl": "https://developer.github.com/v3/git/blobs/#get-a-blob",
  3652. "enabledForApps": true,
  3653. "method": "GET",
  3654. "name": "Get a blob",
  3655. "params": [
  3656. {
  3657. "name": "owner",
  3658. "type": "string",
  3659. "required": true,
  3660. "description": "",
  3661. "location": "url"
  3662. },
  3663. {
  3664. "name": "repo",
  3665. "type": "string",
  3666. "required": true,
  3667. "description": "",
  3668. "location": "url"
  3669. },
  3670. {
  3671. "name": "file_sha",
  3672. "type": "string",
  3673. "required": true,
  3674. "description": "",
  3675. "location": "url"
  3676. }
  3677. ],
  3678. "path": "/repos/:owner/:repo/git/blobs/:file_sha"
  3679. },
  3680. "getCommit": {
  3681. "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).",
  3682. "documentationUrl": "https://developer.github.com/v3/git/commits/#get-a-commit",
  3683. "enabledForApps": true,
  3684. "method": "GET",
  3685. "name": "Get a commit",
  3686. "params": [
  3687. {
  3688. "name": "owner",
  3689. "type": "string",
  3690. "required": true,
  3691. "description": "",
  3692. "location": "url"
  3693. },
  3694. {
  3695. "name": "repo",
  3696. "type": "string",
  3697. "required": true,
  3698. "description": "",
  3699. "location": "url"
  3700. },
  3701. {
  3702. "name": "commit_sha",
  3703. "type": "string",
  3704. "required": true,
  3705. "description": "",
  3706. "location": "url"
  3707. }
  3708. ],
  3709. "path": "/repos/:owner/:repo/git/commits/:commit_sha"
  3710. },
  3711. "getCommitSignatureVerification": {
  3712. "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).",
  3713. "documentationUrl": "https://developer.github.com/v3/git/commits/#get-a-commit",
  3714. "enabledForApps": true,
  3715. "method": "GET",
  3716. "name": "Get a commit",
  3717. "params": [
  3718. {
  3719. "name": "owner",
  3720. "type": "string",
  3721. "required": true,
  3722. "description": "",
  3723. "location": "url"
  3724. },
  3725. {
  3726. "name": "repo",
  3727. "type": "string",
  3728. "required": true,
  3729. "description": "",
  3730. "location": "url"
  3731. },
  3732. {
  3733. "name": "commit_sha",
  3734. "type": "string",
  3735. "required": true,
  3736. "description": "",
  3737. "location": "url"
  3738. }
  3739. ],
  3740. "path": "/repos/:owner/:repo/git/commits/:commit_sha"
  3741. },
  3742. "getReference": {
  3743. "description": "Returns a branch or tag reference. Other than the [REST API](https://developer.github.com/v3/git/refs/#get-a-reference) it always returns a single reference. If the REST API returns with an array then the method responds with an error.",
  3744. "documentationUrl": "https://developer.github.com/v3/git/refs/#get-a-reference",
  3745. "enabledForApps": true,
  3746. "isOverride": true,
  3747. "method": "GET",
  3748. "name": "Get a Reference",
  3749. "params": [
  3750. {
  3751. "name": "owner",
  3752. "type": "string",
  3753. "required": true,
  3754. "description": "",
  3755. "location": "url"
  3756. },
  3757. {
  3758. "name": "repo",
  3759. "type": "string",
  3760. "required": true,
  3761. "description": "",
  3762. "location": "url"
  3763. },
  3764. {
  3765. "name": "ref",
  3766. "type": "string",
  3767. "description": "Must be formatted as `heads/branch`, not just `branch`",
  3768. "required": true,
  3769. "location": "url"
  3770. }
  3771. ],
  3772. "path": "/repos/:owner/:repo/git/refs/:ref"
  3773. },
  3774. "getTag": {
  3775. "description": "",
  3776. "documentationUrl": "https://developer.github.com/v3/git/tags/#get-a-tag",
  3777. "enabledForApps": true,
  3778. "method": "GET",
  3779. "name": "Get a tag",
  3780. "params": [
  3781. {
  3782. "name": "owner",
  3783. "type": "string",
  3784. "required": true,
  3785. "description": "",
  3786. "location": "url"
  3787. },
  3788. {
  3789. "name": "repo",
  3790. "type": "string",
  3791. "required": true,
  3792. "description": "",
  3793. "location": "url"
  3794. },
  3795. {
  3796. "name": "tag_sha",
  3797. "type": "string",
  3798. "required": true,
  3799. "description": "",
  3800. "location": "url"
  3801. }
  3802. ],
  3803. "path": "/repos/:owner/:repo/git/tags/:tag_sha"
  3804. },
  3805. "getTagSignatureVerification": {
  3806. "description": "",
  3807. "documentationUrl": "https://developer.github.com/v3/git/tags/#get-a-tag",
  3808. "enabledForApps": true,
  3809. "method": "GET",
  3810. "name": "Get a tag",
  3811. "params": [
  3812. {
  3813. "name": "owner",
  3814. "type": "string",
  3815. "required": true,
  3816. "description": "",
  3817. "location": "url"
  3818. },
  3819. {
  3820. "name": "repo",
  3821. "type": "string",
  3822. "required": true,
  3823. "description": "",
  3824. "location": "url"
  3825. },
  3826. {
  3827. "name": "tag_sha",
  3828. "type": "string",
  3829. "required": true,
  3830. "description": "",
  3831. "location": "url"
  3832. }
  3833. ],
  3834. "path": "/repos/:owner/:repo/git/tags/:tag_sha"
  3835. },
  3836. "getTree": {
  3837. "description": "If `truncated` in the response is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, omit the `recursive` parameter, and fetch one sub-tree at a time. If you need to fetch even more items, you can clone the repository and iterate over the Git data locally.",
  3838. "documentationUrl": "https://developer.github.com/v3/git/trees/#get-a-tree",
  3839. "enabledForApps": true,
  3840. "isOverride": true,
  3841. "method": "GET",
  3842. "name": "Get a tree",
  3843. "params": [
  3844. {
  3845. "name": "owner",
  3846. "type": "string",
  3847. "required": true,
  3848. "description": "",
  3849. "location": "url"
  3850. },
  3851. {
  3852. "name": "repo",
  3853. "type": "string",
  3854. "required": true,
  3855. "description": "",
  3856. "location": "url"
  3857. },
  3858. {
  3859. "name": "tree_sha",
  3860. "type": "string",
  3861. "required": true,
  3862. "description": "",
  3863. "location": "url"
  3864. },
  3865. {
  3866. "name": "recursive",
  3867. "type": "integer",
  3868. "description": "",
  3869. "enum": [
  3870. 1
  3871. ],
  3872. "location": "query"
  3873. }
  3874. ],
  3875. "path": "/repos/:owner/:repo/git/trees/:tree_sha"
  3876. },
  3877. "updateReference": {
  3878. "description": "",
  3879. "documentationUrl": "https://developer.github.com/v3/git/refs/#update-a-reference",
  3880. "enabledForApps": true,
  3881. "method": "PATCH",
  3882. "name": "Update a reference",
  3883. "params": [
  3884. {
  3885. "name": "owner",
  3886. "type": "string",
  3887. "required": true,
  3888. "description": "",
  3889. "location": "url"
  3890. },
  3891. {
  3892. "name": "repo",
  3893. "type": "string",
  3894. "required": true,
  3895. "description": "",
  3896. "location": "url"
  3897. },
  3898. {
  3899. "name": "ref",
  3900. "type": "string",
  3901. "required": true,
  3902. "description": "",
  3903. "location": "url"
  3904. },
  3905. {
  3906. "name": "sha",
  3907. "type": "string",
  3908. "description": "The SHA1 value to set this reference to",
  3909. "required": true,
  3910. "location": "body"
  3911. },
  3912. {
  3913. "name": "force",
  3914. "type": "boolean",
  3915. "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
  3916. "default": false,
  3917. "required": false,
  3918. "location": "body"
  3919. }
  3920. ],
  3921. "path": "/repos/:owner/:repo/git/refs/:ref"
  3922. }
  3923. },
  3924. "issues": {
  3925. "addAssigneesToIssue": {
  3926. "description": "Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.\n\nThis example adds two assignees to the existing `octocat` assignee.",
  3927. "documentationUrl": "https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue",
  3928. "enabledForApps": true,
  3929. "method": "POST",
  3930. "name": "Add assignees to an issue",
  3931. "params": [
  3932. {
  3933. "name": "owner",
  3934. "type": "string",
  3935. "required": true,
  3936. "description": "",
  3937. "location": "url"
  3938. },
  3939. {
  3940. "name": "repo",
  3941. "type": "string",
  3942. "required": true,
  3943. "description": "",
  3944. "location": "url"
  3945. },
  3946. {
  3947. "name": "number",
  3948. "type": "integer",
  3949. "required": true,
  3950. "description": "",
  3951. "location": "url"
  3952. },
  3953. {
  3954. "name": "assignees",
  3955. "type": "string[]",
  3956. "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
  3957. "required": false,
  3958. "location": "body"
  3959. }
  3960. ],
  3961. "path": "/repos/:owner/:repo/issues/:number/assignees"
  3962. },
  3963. "addLabels": {
  3964. "description": "",
  3965. "documentationUrl": "https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue",
  3966. "enabledForApps": true,
  3967. "method": "POST",
  3968. "name": "Add labels to an issue",
  3969. "params": [
  3970. {
  3971. "name": "owner",
  3972. "type": "string",
  3973. "required": true,
  3974. "description": "",
  3975. "location": "url"
  3976. },
  3977. {
  3978. "name": "repo",
  3979. "type": "string",
  3980. "required": true,
  3981. "description": "",
  3982. "location": "url"
  3983. },
  3984. {
  3985. "name": "number",
  3986. "type": "integer",
  3987. "required": true,
  3988. "description": "",
  3989. "location": "url"
  3990. }
  3991. ],
  3992. "path": "/repos/:owner/:repo/issues/:number/labels"
  3993. },
  3994. "checkAssignee": {
  3995. "description": "Checks if a user has permission to be assigned to an issue in this repository.\n\nIf the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n\nOtherwise a `404` status code is returned.",
  3996. "documentationUrl": "https://developer.github.com/v3/issues/assignees/#check-assignee",
  3997. "enabledForApps": true,
  3998. "method": "GET",
  3999. "name": "Check assignee",
  4000. "params": [
  4001. {
  4002. "name": "owner",
  4003. "type": "string",
  4004. "required": true,
  4005. "description": "",
  4006. "location": "url"
  4007. },
  4008. {
  4009. "name": "repo",
  4010. "type": "string",
  4011. "required": true,
  4012. "description": "",
  4013. "location": "url"
  4014. },
  4015. {
  4016. "name": "assignee",
  4017. "type": "string",
  4018. "required": true,
  4019. "description": "",
  4020. "location": "url"
  4021. }
  4022. ],
  4023. "path": "/repos/:owner/:repo/assignees/:assignee"
  4024. },
  4025. "create": {
  4026. "description": "Any user with pull access to a repository can create an issue.",
  4027. "documentationUrl": "https://developer.github.com/v3/issues/#create-an-issue",
  4028. "enabledForApps": true,
  4029. "method": "POST",
  4030. "name": "Create an issue",
  4031. "params": [
  4032. {
  4033. "name": "owner",
  4034. "type": "string",
  4035. "required": true,
  4036. "description": "",
  4037. "location": "url"
  4038. },
  4039. {
  4040. "name": "repo",
  4041. "type": "string",
  4042. "required": true,
  4043. "description": "",
  4044. "location": "url"
  4045. },
  4046. {
  4047. "name": "title",
  4048. "type": "string",
  4049. "description": "The title of the issue.",
  4050. "required": true,
  4051. "location": "body"
  4052. },
  4053. {
  4054. "name": "body",
  4055. "type": "string",
  4056. "description": "The contents of the issue.",
  4057. "required": false,
  4058. "location": "body"
  4059. },
  4060. {
  4061. "name": "assignee",
  4062. "type": "string",
  4063. "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
  4064. "required": false,
  4065. "location": "body"
  4066. },
  4067. {
  4068. "name": "milestone",
  4069. "type": "integer",
  4070. "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._",
  4071. "required": false,
  4072. "location": "body"
  4073. },
  4074. {
  4075. "name": "labels",
  4076. "type": "string[]",
  4077. "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
  4078. "required": false,
  4079. "location": "body"
  4080. },
  4081. {
  4082. "name": "assignees",
  4083. "type": "string[]",
  4084. "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
  4085. "required": false,
  4086. "location": "body"
  4087. }
  4088. ],
  4089. "path": "/repos/:owner/:repo/issues"
  4090. },
  4091. "createComment": {
  4092. "description": "",
  4093. "documentationUrl": "https://developer.github.com/v3/issues/comments/#create-a-comment",
  4094. "enabledForApps": true,
  4095. "method": "POST",
  4096. "name": "Create a comment",
  4097. "params": [
  4098. {
  4099. "name": "owner",
  4100. "type": "string",
  4101. "required": true,
  4102. "description": "",
  4103. "location": "url"
  4104. },
  4105. {
  4106. "name": "repo",
  4107. "type": "string",
  4108. "required": true,
  4109. "description": "",
  4110. "location": "url"
  4111. },
  4112. {
  4113. "name": "number",
  4114. "type": "integer",
  4115. "required": true,
  4116. "description": "",
  4117. "location": "url"
  4118. },
  4119. {
  4120. "name": "body",
  4121. "type": "string",
  4122. "description": "The contents of the comment.",
  4123. "required": true,
  4124. "location": "body"
  4125. }
  4126. ],
  4127. "path": "/repos/:owner/:repo/issues/:number/comments"
  4128. },
  4129. "createLabel": {
  4130. "description": "",
  4131. "documentationUrl": "https://developer.github.com/v3/issues/labels/#create-a-label",
  4132. "enabledForApps": true,
  4133. "method": "POST",
  4134. "name": "Create a label",
  4135. "params": [
  4136. {
  4137. "name": "owner",
  4138. "type": "string",
  4139. "required": true,
  4140. "description": "",
  4141. "location": "url"
  4142. },
  4143. {
  4144. "name": "repo",
  4145. "type": "string",
  4146. "required": true,
  4147. "description": "",
  4148. "location": "url"
  4149. },
  4150. {
  4151. "name": "name",
  4152. "type": "string",
  4153. "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://a248.e.akamai.net/assets.github.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).",
  4154. "required": true,
  4155. "location": "body"
  4156. },
  4157. {
  4158. "name": "color",
  4159. "type": "string",
  4160. "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
  4161. "required": true,
  4162. "location": "body"
  4163. },
  4164. {
  4165. "name": "description",
  4166. "type": "string",
  4167. "description": "A short description of the label.",
  4168. "required": false,
  4169. "location": "body"
  4170. }
  4171. ],
  4172. "path": "/repos/:owner/:repo/labels"
  4173. },
  4174. "createMilestone": {
  4175. "description": "",
  4176. "documentationUrl": "https://developer.github.com/v3/issues/milestones/#create-a-milestone",
  4177. "enabledForApps": true,
  4178. "method": "POST",
  4179. "name": "Create a milestone",
  4180. "params": [
  4181. {
  4182. "name": "owner",
  4183. "type": "string",
  4184. "required": true,
  4185. "description": "",
  4186. "location": "url"
  4187. },
  4188. {
  4189. "name": "repo",
  4190. "type": "string",
  4191. "required": true,
  4192. "description": "",
  4193. "location": "url"
  4194. },
  4195. {
  4196. "name": "title",
  4197. "type": "string",
  4198. "description": "The title of the milestone.",
  4199. "required": true,
  4200. "location": "body"
  4201. },
  4202. {
  4203. "name": "state",
  4204. "type": "string",
  4205. "description": "The state of the milestone. Either `open` or `closed`.",
  4206. "default": "open",
  4207. "required": false,
  4208. "enum": [
  4209. "open",
  4210. "closed"
  4211. ],
  4212. "location": "body"
  4213. },
  4214. {
  4215. "name": "description",
  4216. "type": "string",
  4217. "description": "A description of the milestone.",
  4218. "required": false,
  4219. "location": "body"
  4220. },
  4221. {
  4222. "name": "due_on",
  4223. "type": "string",
  4224. "description": "The milestone due date. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  4225. "required": false,
  4226. "location": "body"
  4227. }
  4228. ],
  4229. "path": "/repos/:owner/:repo/milestones"
  4230. },
  4231. "deleteComment": {
  4232. "description": "",
  4233. "documentationUrl": "https://developer.github.com/v3/issues/comments/#delete-a-comment",
  4234. "enabledForApps": true,
  4235. "method": "DELETE",
  4236. "name": "Delete a comment",
  4237. "params": [
  4238. {
  4239. "name": "owner",
  4240. "type": "string",
  4241. "required": true,
  4242. "description": "",
  4243. "location": "url"
  4244. },
  4245. {
  4246. "name": "repo",
  4247. "type": "string",
  4248. "required": true,
  4249. "description": "",
  4250. "location": "url"
  4251. },
  4252. {
  4253. "name": "comment_id",
  4254. "type": "string",
  4255. "required": true,
  4256. "description": "",
  4257. "location": "url"
  4258. }
  4259. ],
  4260. "path": "/repos/:owner/:repo/issues/comments/:comment_id"
  4261. },
  4262. "deleteLabel": {
  4263. "description": "",
  4264. "documentationUrl": "https://developer.github.com/v3/issues/labels/#delete-a-label",
  4265. "enabledForApps": true,
  4266. "method": "DELETE",
  4267. "name": "Delete a label",
  4268. "params": [
  4269. {
  4270. "name": "owner",
  4271. "type": "string",
  4272. "required": true,
  4273. "description": "",
  4274. "location": "url"
  4275. },
  4276. {
  4277. "name": "repo",
  4278. "type": "string",
  4279. "required": true,
  4280. "description": "",
  4281. "location": "url"
  4282. },
  4283. {
  4284. "name": "name",
  4285. "type": "string",
  4286. "required": true,
  4287. "description": "",
  4288. "location": "url"
  4289. }
  4290. ],
  4291. "path": "/repos/:owner/:repo/labels/:name"
  4292. },
  4293. "deleteMilestone": {
  4294. "description": "",
  4295. "documentationUrl": "https://developer.github.com/v3/issues/milestones/#delete-a-milestone",
  4296. "enabledForApps": true,
  4297. "method": "DELETE",
  4298. "name": "Delete a milestone",
  4299. "params": [
  4300. {
  4301. "name": "owner",
  4302. "type": "string",
  4303. "required": true,
  4304. "description": "",
  4305. "location": "url"
  4306. },
  4307. {
  4308. "name": "repo",
  4309. "type": "string",
  4310. "required": true,
  4311. "description": "",
  4312. "location": "url"
  4313. },
  4314. {
  4315. "name": "number",
  4316. "type": "integer",
  4317. "required": true,
  4318. "description": "",
  4319. "location": "url"
  4320. }
  4321. ],
  4322. "path": "/repos/:owner/:repo/milestones/:number"
  4323. },
  4324. "edit": {
  4325. "description": "Issue owners and users with push access can edit an issue.",
  4326. "documentationUrl": "https://developer.github.com/v3/issues/#edit-an-issue",
  4327. "enabledForApps": true,
  4328. "method": "PATCH",
  4329. "name": "Edit an issue",
  4330. "params": [
  4331. {
  4332. "name": "owner",
  4333. "type": "string",
  4334. "required": true,
  4335. "description": "",
  4336. "location": "url"
  4337. },
  4338. {
  4339. "name": "repo",
  4340. "type": "string",
  4341. "required": true,
  4342. "description": "",
  4343. "location": "url"
  4344. },
  4345. {
  4346. "name": "number",
  4347. "type": "integer",
  4348. "required": true,
  4349. "description": "",
  4350. "location": "url"
  4351. },
  4352. {
  4353. "name": "title",
  4354. "type": "string",
  4355. "description": "The title of the issue.",
  4356. "required": false,
  4357. "location": "body"
  4358. },
  4359. {
  4360. "name": "body",
  4361. "type": "string",
  4362. "description": "The contents of the issue.",
  4363. "required": false,
  4364. "location": "body"
  4365. },
  4366. {
  4367. "name": "assignee",
  4368. "type": "string",
  4369. "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
  4370. "required": false,
  4371. "location": "body"
  4372. },
  4373. {
  4374. "name": "state",
  4375. "type": "string",
  4376. "description": "State of the issue. Either `open` or `closed`.",
  4377. "required": false,
  4378. "enum": [
  4379. "open",
  4380. "closed"
  4381. ],
  4382. "location": "body"
  4383. },
  4384. {
  4385. "name": "milestone",
  4386. "type": "integer",
  4387. "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._",
  4388. "required": false,
  4389. "allowNull": true,
  4390. "location": "body"
  4391. },
  4392. {
  4393. "name": "labels",
  4394. "type": "string[]",
  4395. "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
  4396. "required": false,
  4397. "location": "body"
  4398. },
  4399. {
  4400. "name": "assignees",
  4401. "type": "string[]",
  4402. "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
  4403. "required": false,
  4404. "location": "body"
  4405. }
  4406. ],
  4407. "path": "/repos/:owner/:repo/issues/:number"
  4408. },
  4409. "editComment": {
  4410. "description": "",
  4411. "documentationUrl": "https://developer.github.com/v3/issues/comments/#edit-a-comment",
  4412. "enabledForApps": true,
  4413. "method": "PATCH",
  4414. "name": "Edit a comment",
  4415. "params": [
  4416. {
  4417. "name": "owner",
  4418. "type": "string",
  4419. "required": true,
  4420. "description": "",
  4421. "location": "url"
  4422. },
  4423. {
  4424. "name": "repo",
  4425. "type": "string",
  4426. "required": true,
  4427. "description": "",
  4428. "location": "url"
  4429. },
  4430. {
  4431. "name": "comment_id",
  4432. "type": "string",
  4433. "required": true,
  4434. "description": "",
  4435. "location": "url"
  4436. },
  4437. {
  4438. "name": "body",
  4439. "type": "string",
  4440. "description": "The contents of the comment.",
  4441. "required": true,
  4442. "location": "body"
  4443. }
  4444. ],
  4445. "path": "/repos/:owner/:repo/issues/comments/:comment_id"
  4446. },
  4447. "get": {
  4448. "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)\" endpoint.",
  4449. "documentationUrl": "https://developer.github.com/v3/issues/#get-a-single-issue",
  4450. "enabledForApps": true,
  4451. "method": "GET",
  4452. "name": "Get a single issue",
  4453. "params": [
  4454. {
  4455. "name": "owner",
  4456. "type": "string",
  4457. "required": true,
  4458. "description": "",
  4459. "location": "url"
  4460. },
  4461. {
  4462. "name": "repo",
  4463. "type": "string",
  4464. "required": true,
  4465. "description": "",
  4466. "location": "url"
  4467. },
  4468. {
  4469. "name": "number",
  4470. "type": "integer",
  4471. "required": true,
  4472. "description": "",
  4473. "location": "url"
  4474. }
  4475. ],
  4476. "path": "/repos/:owner/:repo/issues/:number"
  4477. },
  4478. "getAll": {
  4479. "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)\" endpoint.\n\n\n\n**Note:** If a user opened an issue via a GitHub App, the `performed_via_github_app` key contains information on that GitHub App.",
  4480. "documentationUrl": "https://developer.github.com/v3/issues/#list-issues",
  4481. "enabledForApps": false,
  4482. "method": "GET",
  4483. "name": "List all issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories",
  4484. "params": [
  4485. {
  4486. "name": "filter",
  4487. "type": "string",
  4488. "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation",
  4489. "default": "assigned",
  4490. "required": false,
  4491. "enum": [
  4492. "assigned",
  4493. "created",
  4494. "mentioned",
  4495. "subscribed",
  4496. "all"
  4497. ],
  4498. "location": "query"
  4499. },
  4500. {
  4501. "name": "state",
  4502. "type": "string",
  4503. "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
  4504. "default": "open",
  4505. "required": false,
  4506. "enum": [
  4507. "open",
  4508. "closed",
  4509. "all"
  4510. ],
  4511. "location": "query"
  4512. },
  4513. {
  4514. "name": "labels",
  4515. "type": "string",
  4516. "description": "A list of comma separated label names. Example: `bug,ui,@high`",
  4517. "required": false,
  4518. "location": "query"
  4519. },
  4520. {
  4521. "name": "sort",
  4522. "type": "string",
  4523. "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
  4524. "default": "created",
  4525. "required": false,
  4526. "enum": [
  4527. "created",
  4528. "updated",
  4529. "comments"
  4530. ],
  4531. "location": "query"
  4532. },
  4533. {
  4534. "name": "direction",
  4535. "type": "string",
  4536. "description": "The direction of the sort. Can be either `asc` or `desc`.",
  4537. "default": "desc",
  4538. "required": false,
  4539. "enum": [
  4540. "asc",
  4541. "desc"
  4542. ],
  4543. "location": "query"
  4544. },
  4545. {
  4546. "name": "since",
  4547. "type": "string",
  4548. "description": "Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  4549. "required": false,
  4550. "location": "query"
  4551. },
  4552. {
  4553. "name": "per_page",
  4554. "type": "integer",
  4555. "required": false,
  4556. "description": "Results per page (max 100)",
  4557. "default": 30,
  4558. "location": "query"
  4559. },
  4560. {
  4561. "name": "page",
  4562. "type": "integer",
  4563. "required": false,
  4564. "description": "Page number of the results to fetch.",
  4565. "default": 1,
  4566. "location": "query"
  4567. }
  4568. ],
  4569. "path": "/issues"
  4570. },
  4571. "getAssignees": {
  4572. "description": "Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.",
  4573. "documentationUrl": "https://developer.github.com/v3/issues/assignees/#list-assignees",
  4574. "enabledForApps": true,
  4575. "method": "GET",
  4576. "name": "List assignees",
  4577. "params": [
  4578. {
  4579. "name": "owner",
  4580. "type": "string",
  4581. "required": true,
  4582. "description": "",
  4583. "location": "url"
  4584. },
  4585. {
  4586. "name": "repo",
  4587. "type": "string",
  4588. "required": true,
  4589. "description": "",
  4590. "location": "url"
  4591. },
  4592. {
  4593. "name": "per_page",
  4594. "type": "integer",
  4595. "required": false,
  4596. "description": "Results per page (max 100)",
  4597. "default": 30,
  4598. "location": "query"
  4599. },
  4600. {
  4601. "name": "page",
  4602. "type": "integer",
  4603. "required": false,
  4604. "description": "Page number of the results to fetch.",
  4605. "default": 1,
  4606. "location": "query"
  4607. }
  4608. ],
  4609. "path": "/repos/:owner/:repo/assignees"
  4610. },
  4611. "getComment": {
  4612. "description": "\n\n**Note:** If a user created an issue comment via a GitHub App, the `performed_via_github_app` key will contain information on that GitHub App.",
  4613. "documentationUrl": "https://developer.github.com/v3/issues/comments/#get-a-single-comment",
  4614. "enabledForApps": true,
  4615. "method": "GET",
  4616. "name": "Get a single comment",
  4617. "params": [
  4618. {
  4619. "name": "owner",
  4620. "type": "string",
  4621. "required": true,
  4622. "description": "",
  4623. "location": "url"
  4624. },
  4625. {
  4626. "name": "repo",
  4627. "type": "string",
  4628. "required": true,
  4629. "description": "",
  4630. "location": "url"
  4631. },
  4632. {
  4633. "name": "comment_id",
  4634. "type": "string",
  4635. "required": true,
  4636. "description": "",
  4637. "location": "url"
  4638. },
  4639. {
  4640. "name": "per_page",
  4641. "type": "integer",
  4642. "required": false,
  4643. "description": "Results per page (max 100)",
  4644. "default": 30,
  4645. "location": "query"
  4646. },
  4647. {
  4648. "name": "page",
  4649. "type": "integer",
  4650. "required": false,
  4651. "description": "Page number of the results to fetch.",
  4652. "default": 1,
  4653. "location": "query"
  4654. }
  4655. ],
  4656. "path": "/repos/:owner/:repo/issues/comments/:comment_id"
  4657. },
  4658. "getComments": {
  4659. "description": "Issue Comments are ordered by ascending ID.",
  4660. "documentationUrl": "https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue",
  4661. "enabledForApps": true,
  4662. "method": "GET",
  4663. "name": "List comments on an issue",
  4664. "params": [
  4665. {
  4666. "name": "owner",
  4667. "type": "string",
  4668. "required": true,
  4669. "description": "",
  4670. "location": "url"
  4671. },
  4672. {
  4673. "name": "repo",
  4674. "type": "string",
  4675. "required": true,
  4676. "description": "",
  4677. "location": "url"
  4678. },
  4679. {
  4680. "name": "number",
  4681. "type": "integer",
  4682. "required": true,
  4683. "description": "",
  4684. "location": "url"
  4685. },
  4686. {
  4687. "name": "since",
  4688. "type": "string",
  4689. "description": "Only comments updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  4690. "required": false,
  4691. "location": "query"
  4692. },
  4693. {
  4694. "name": "per_page",
  4695. "type": "integer",
  4696. "required": false,
  4697. "description": "Results per page (max 100)",
  4698. "default": 30,
  4699. "location": "query"
  4700. },
  4701. {
  4702. "name": "page",
  4703. "type": "integer",
  4704. "required": false,
  4705. "description": "Page number of the results to fetch.",
  4706. "default": 1,
  4707. "location": "query"
  4708. }
  4709. ],
  4710. "path": "/repos/:owner/:repo/issues/:number/comments"
  4711. },
  4712. "getCommentsForRepo": {
  4713. "description": "By default, Issue Comments are ordered by ascending ID.",
  4714. "documentationUrl": "https://developer.github.com/v3/issues/comments/#list-comments-in-a-repository",
  4715. "enabledForApps": true,
  4716. "method": "GET",
  4717. "name": "List comments in a repository",
  4718. "params": [
  4719. {
  4720. "name": "owner",
  4721. "type": "string",
  4722. "required": true,
  4723. "description": "",
  4724. "location": "url"
  4725. },
  4726. {
  4727. "name": "repo",
  4728. "type": "string",
  4729. "required": true,
  4730. "description": "",
  4731. "location": "url"
  4732. },
  4733. {
  4734. "name": "sort",
  4735. "type": "string",
  4736. "description": "Either `created` or `updated`.",
  4737. "default": "created",
  4738. "required": false,
  4739. "enum": [
  4740. "created",
  4741. "updated"
  4742. ],
  4743. "location": "query"
  4744. },
  4745. {
  4746. "name": "direction",
  4747. "type": "string",
  4748. "description": "Either `asc` or `desc`. Ignored without the `sort` parameter.",
  4749. "required": false,
  4750. "enum": [
  4751. "asc",
  4752. "desc"
  4753. ],
  4754. "location": "query"
  4755. },
  4756. {
  4757. "name": "since",
  4758. "type": "string",
  4759. "description": "Only comments updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  4760. "required": false,
  4761. "location": "query"
  4762. }
  4763. ],
  4764. "path": "/repos/:owner/:repo/issues/comments"
  4765. },
  4766. "getEvent": {
  4767. "description": "\n\n**Note:** If the event was triggered by a user via a GitHub App, the `performed_via_github_app` key will contain information on that GitHub App.",
  4768. "documentationUrl": "https://developer.github.com/v3/issues/events/#get-a-single-event",
  4769. "enabledForApps": true,
  4770. "method": "GET",
  4771. "name": "Get a single event",
  4772. "params": [
  4773. {
  4774. "name": "owner",
  4775. "type": "string",
  4776. "required": true,
  4777. "description": "",
  4778. "location": "url"
  4779. },
  4780. {
  4781. "name": "repo",
  4782. "type": "string",
  4783. "required": true,
  4784. "description": "",
  4785. "location": "url"
  4786. },
  4787. {
  4788. "name": "event_id",
  4789. "type": "string",
  4790. "required": true,
  4791. "description": "",
  4792. "location": "url"
  4793. }
  4794. ],
  4795. "path": "/repos/:owner/:repo/issues/events/:event_id"
  4796. },
  4797. "getEvents": {
  4798. "description": "",
  4799. "documentationUrl": "https://developer.github.com/v3/issues/events/#list-events-for-an-issue",
  4800. "enabledForApps": true,
  4801. "method": "GET",
  4802. "name": "List events for an issue",
  4803. "params": [
  4804. {
  4805. "name": "owner",
  4806. "type": "string",
  4807. "required": true,
  4808. "description": "",
  4809. "location": "url"
  4810. },
  4811. {
  4812. "name": "repo",
  4813. "type": "string",
  4814. "required": true,
  4815. "description": "",
  4816. "location": "url"
  4817. },
  4818. {
  4819. "name": "number",
  4820. "type": "integer",
  4821. "required": true,
  4822. "description": "",
  4823. "location": "url"
  4824. },
  4825. {
  4826. "name": "per_page",
  4827. "type": "integer",
  4828. "required": false,
  4829. "description": "Results per page (max 100)",
  4830. "default": 30,
  4831. "location": "query"
  4832. },
  4833. {
  4834. "name": "page",
  4835. "type": "integer",
  4836. "required": false,
  4837. "description": "Page number of the results to fetch.",
  4838. "default": 1,
  4839. "location": "query"
  4840. }
  4841. ],
  4842. "path": "/repos/:owner/:repo/issues/:number/events"
  4843. },
  4844. "getEventsForRepo": {
  4845. "description": "",
  4846. "documentationUrl": "https://developer.github.com/v3/issues/events/#list-events-for-a-repository",
  4847. "enabledForApps": true,
  4848. "method": "GET",
  4849. "name": "List events for a repository",
  4850. "params": [
  4851. {
  4852. "name": "owner",
  4853. "type": "string",
  4854. "required": true,
  4855. "description": "",
  4856. "location": "url"
  4857. },
  4858. {
  4859. "name": "repo",
  4860. "type": "string",
  4861. "required": true,
  4862. "description": "",
  4863. "location": "url"
  4864. },
  4865. {
  4866. "name": "per_page",
  4867. "type": "integer",
  4868. "required": false,
  4869. "description": "Results per page (max 100)",
  4870. "default": 30,
  4871. "location": "query"
  4872. },
  4873. {
  4874. "name": "page",
  4875. "type": "integer",
  4876. "required": false,
  4877. "description": "Page number of the results to fetch.",
  4878. "default": 1,
  4879. "location": "query"
  4880. }
  4881. ],
  4882. "path": "/repos/:owner/:repo/issues/events"
  4883. },
  4884. "getEventsTimeline": {
  4885. "description": "",
  4886. "documentationUrl": "https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue",
  4887. "enabledForApps": true,
  4888. "method": "GET",
  4889. "name": "List events for an issue",
  4890. "params": [
  4891. {
  4892. "name": "owner",
  4893. "type": "string",
  4894. "required": true,
  4895. "description": "",
  4896. "location": "url"
  4897. },
  4898. {
  4899. "name": "repo",
  4900. "type": "string",
  4901. "required": true,
  4902. "description": "",
  4903. "location": "url"
  4904. },
  4905. {
  4906. "name": "number",
  4907. "type": "integer",
  4908. "required": true,
  4909. "description": "",
  4910. "location": "url"
  4911. },
  4912. {
  4913. "name": "per_page",
  4914. "type": "integer",
  4915. "required": false,
  4916. "description": "Results per page (max 100)",
  4917. "default": 30,
  4918. "location": "query"
  4919. },
  4920. {
  4921. "name": "page",
  4922. "type": "integer",
  4923. "required": false,
  4924. "description": "Page number of the results to fetch.",
  4925. "default": 1,
  4926. "location": "query"
  4927. }
  4928. ],
  4929. "path": "/repos/:owner/:repo/issues/:number/timeline"
  4930. },
  4931. "getForOrg": {
  4932. "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)\" endpoint.\n\n\n\n**Note:** If a user opened an issue via a GitHub App, the `performed_via_github_app` key contains information on that GitHub App.",
  4933. "documentationUrl": "https://developer.github.com/v3/issues/#list-issues",
  4934. "enabledForApps": false,
  4935. "method": "GET",
  4936. "name": "List all issues for a given organization assigned to the authenticated user",
  4937. "params": [
  4938. {
  4939. "name": "org",
  4940. "type": "string",
  4941. "required": true,
  4942. "description": "",
  4943. "location": "url"
  4944. },
  4945. {
  4946. "name": "filter",
  4947. "type": "string",
  4948. "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation",
  4949. "default": "assigned",
  4950. "required": false,
  4951. "enum": [
  4952. "assigned",
  4953. "created",
  4954. "mentioned",
  4955. "subscribed",
  4956. "all"
  4957. ],
  4958. "location": "query"
  4959. },
  4960. {
  4961. "name": "state",
  4962. "type": "string",
  4963. "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
  4964. "default": "open",
  4965. "required": false,
  4966. "enum": [
  4967. "open",
  4968. "closed",
  4969. "all"
  4970. ],
  4971. "location": "query"
  4972. },
  4973. {
  4974. "name": "labels",
  4975. "type": "string",
  4976. "description": "A list of comma separated label names. Example: `bug,ui,@high`",
  4977. "required": false,
  4978. "location": "query"
  4979. },
  4980. {
  4981. "name": "sort",
  4982. "type": "string",
  4983. "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
  4984. "default": "created",
  4985. "required": false,
  4986. "enum": [
  4987. "created",
  4988. "updated",
  4989. "comments"
  4990. ],
  4991. "location": "query"
  4992. },
  4993. {
  4994. "name": "direction",
  4995. "type": "string",
  4996. "description": "The direction of the sort. Can be either `asc` or `desc`.",
  4997. "default": "desc",
  4998. "required": false,
  4999. "enum": [
  5000. "asc",
  5001. "desc"
  5002. ],
  5003. "location": "query"
  5004. },
  5005. {
  5006. "name": "since",
  5007. "type": "string",
  5008. "description": "Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  5009. "required": false,
  5010. "location": "query"
  5011. },
  5012. {
  5013. "name": "per_page",
  5014. "type": "integer",
  5015. "required": false,
  5016. "description": "Results per page (max 100)",
  5017. "default": 30,
  5018. "location": "query"
  5019. },
  5020. {
  5021. "name": "page",
  5022. "type": "integer",
  5023. "required": false,
  5024. "description": "Page number of the results to fetch.",
  5025. "default": 1,
  5026. "location": "query"
  5027. }
  5028. ],
  5029. "path": "/orgs/:org/issues"
  5030. },
  5031. "getForRepo": {
  5032. "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)\" endpoint.\n\n\n\n**Note:** If a user opened an issue via a GitHub App, the `performed_via_github_app` key contains information on that GitHub App.",
  5033. "documentationUrl": "https://developer.github.com/v3/issues/#list-issues-for-a-repository",
  5034. "enabledForApps": true,
  5035. "method": "GET",
  5036. "name": "List issues for a repository",
  5037. "params": [
  5038. {
  5039. "name": "owner",
  5040. "type": "string",
  5041. "required": true,
  5042. "description": "",
  5043. "location": "url"
  5044. },
  5045. {
  5046. "name": "repo",
  5047. "type": "string",
  5048. "required": true,
  5049. "description": "",
  5050. "location": "url"
  5051. },
  5052. {
  5053. "name": "milestone",
  5054. "type": "string",
  5055. "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned.",
  5056. "required": false,
  5057. "location": "query"
  5058. },
  5059. {
  5060. "name": "state",
  5061. "type": "string",
  5062. "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
  5063. "default": "open",
  5064. "required": false,
  5065. "enum": [
  5066. "open",
  5067. "closed",
  5068. "all"
  5069. ],
  5070. "location": "query"
  5071. },
  5072. {
  5073. "name": "assignee",
  5074. "type": "string",
  5075. "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user.",
  5076. "required": false,
  5077. "location": "query"
  5078. },
  5079. {
  5080. "name": "creator",
  5081. "type": "string",
  5082. "description": "The user that created the issue.",
  5083. "required": false,
  5084. "location": "query"
  5085. },
  5086. {
  5087. "name": "mentioned",
  5088. "type": "string",
  5089. "description": "A user that's mentioned in the issue.",
  5090. "required": false,
  5091. "location": "query"
  5092. },
  5093. {
  5094. "name": "labels",
  5095. "type": "string",
  5096. "description": "A list of comma separated label names. Example: `bug,ui,@high`",
  5097. "required": false,
  5098. "location": "query"
  5099. },
  5100. {
  5101. "name": "sort",
  5102. "type": "string",
  5103. "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
  5104. "default": "created",
  5105. "required": false,
  5106. "enum": [
  5107. "created",
  5108. "updated",
  5109. "comments"
  5110. ],
  5111. "location": "query"
  5112. },
  5113. {
  5114. "name": "direction",
  5115. "type": "string",
  5116. "description": "The direction of the sort. Can be either `asc` or `desc`.",
  5117. "default": "desc",
  5118. "required": false,
  5119. "enum": [
  5120. "asc",
  5121. "desc"
  5122. ],
  5123. "location": "query"
  5124. },
  5125. {
  5126. "name": "since",
  5127. "type": "string",
  5128. "description": "Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  5129. "required": false,
  5130. "location": "query"
  5131. },
  5132. {
  5133. "name": "per_page",
  5134. "type": "integer",
  5135. "required": false,
  5136. "description": "Results per page (max 100)",
  5137. "default": 30,
  5138. "location": "query"
  5139. },
  5140. {
  5141. "name": "page",
  5142. "type": "integer",
  5143. "required": false,
  5144. "description": "Page number of the results to fetch.",
  5145. "default": 1,
  5146. "location": "query"
  5147. }
  5148. ],
  5149. "path": "/repos/:owner/:repo/issues"
  5150. },
  5151. "getForUser": {
  5152. "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)\" endpoint.\n\n\n\n**Note:** If a user opened an issue via a GitHub App, the `performed_via_github_app` key contains information on that GitHub App.",
  5153. "documentationUrl": "https://developer.github.com/v3/issues/#list-issues",
  5154. "enabledForApps": false,
  5155. "method": "GET",
  5156. "name": "List all issues across owned and member repositories assigned to the authenticated user",
  5157. "params": [
  5158. {
  5159. "name": "filter",
  5160. "type": "string",
  5161. "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation",
  5162. "default": "assigned",
  5163. "required": false,
  5164. "enum": [
  5165. "assigned",
  5166. "created",
  5167. "mentioned",
  5168. "subscribed",
  5169. "all"
  5170. ],
  5171. "location": "query"
  5172. },
  5173. {
  5174. "name": "state",
  5175. "type": "string",
  5176. "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
  5177. "default": "open",
  5178. "required": false,
  5179. "enum": [
  5180. "open",
  5181. "closed",
  5182. "all"
  5183. ],
  5184. "location": "query"
  5185. },
  5186. {
  5187. "name": "labels",
  5188. "type": "string",
  5189. "description": "A list of comma separated label names. Example: `bug,ui,@high`",
  5190. "required": false,
  5191. "location": "query"
  5192. },
  5193. {
  5194. "name": "sort",
  5195. "type": "string",
  5196. "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
  5197. "default": "created",
  5198. "required": false,
  5199. "enum": [
  5200. "created",
  5201. "updated",
  5202. "comments"
  5203. ],
  5204. "location": "query"
  5205. },
  5206. {
  5207. "name": "direction",
  5208. "type": "string",
  5209. "description": "The direction of the sort. Can be either `asc` or `desc`.",
  5210. "default": "desc",
  5211. "required": false,
  5212. "enum": [
  5213. "asc",
  5214. "desc"
  5215. ],
  5216. "location": "query"
  5217. },
  5218. {
  5219. "name": "since",
  5220. "type": "string",
  5221. "description": "Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  5222. "required": false,
  5223. "location": "query"
  5224. },
  5225. {
  5226. "name": "per_page",
  5227. "type": "integer",
  5228. "required": false,
  5229. "description": "Results per page (max 100)",
  5230. "default": 30,
  5231. "location": "query"
  5232. },
  5233. {
  5234. "name": "page",
  5235. "type": "integer",
  5236. "required": false,
  5237. "description": "Page number of the results to fetch.",
  5238. "default": 1,
  5239. "location": "query"
  5240. }
  5241. ],
  5242. "path": "/user/issues"
  5243. },
  5244. "getIssueLabels": {
  5245. "description": "",
  5246. "documentationUrl": "https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue",
  5247. "enabledForApps": true,
  5248. "method": "GET",
  5249. "name": "List labels on an issue",
  5250. "params": [
  5251. {
  5252. "name": "owner",
  5253. "type": "string",
  5254. "required": true,
  5255. "description": "",
  5256. "location": "url"
  5257. },
  5258. {
  5259. "name": "repo",
  5260. "type": "string",
  5261. "required": true,
  5262. "description": "",
  5263. "location": "url"
  5264. },
  5265. {
  5266. "name": "number",
  5267. "type": "integer",
  5268. "required": true,
  5269. "description": "",
  5270. "location": "url"
  5271. },
  5272. {
  5273. "name": "per_page",
  5274. "type": "integer",
  5275. "required": false,
  5276. "description": "Results per page (max 100)",
  5277. "default": 30,
  5278. "location": "query"
  5279. },
  5280. {
  5281. "name": "page",
  5282. "type": "integer",
  5283. "required": false,
  5284. "description": "Page number of the results to fetch.",
  5285. "default": 1,
  5286. "location": "query"
  5287. }
  5288. ],
  5289. "path": "/repos/:owner/:repo/issues/:number/labels"
  5290. },
  5291. "getLabel": {
  5292. "description": "",
  5293. "documentationUrl": "https://developer.github.com/v3/issues/labels/#get-a-single-label",
  5294. "enabledForApps": true,
  5295. "method": "GET",
  5296. "name": "Get a single label",
  5297. "params": [
  5298. {
  5299. "name": "owner",
  5300. "type": "string",
  5301. "required": true,
  5302. "description": "",
  5303. "location": "url"
  5304. },
  5305. {
  5306. "name": "repo",
  5307. "type": "string",
  5308. "required": true,
  5309. "description": "",
  5310. "location": "url"
  5311. },
  5312. {
  5313. "name": "name",
  5314. "type": "string",
  5315. "required": true,
  5316. "description": "",
  5317. "location": "url"
  5318. }
  5319. ],
  5320. "path": "/repos/:owner/:repo/labels/:name"
  5321. },
  5322. "getLabels": {
  5323. "description": "",
  5324. "documentationUrl": "https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository",
  5325. "enabledForApps": true,
  5326. "method": "GET",
  5327. "name": "List all labels for this repository",
  5328. "params": [
  5329. {
  5330. "name": "owner",
  5331. "type": "string",
  5332. "required": true,
  5333. "description": "",
  5334. "location": "url"
  5335. },
  5336. {
  5337. "name": "repo",
  5338. "type": "string",
  5339. "required": true,
  5340. "description": "",
  5341. "location": "url"
  5342. },
  5343. {
  5344. "name": "per_page",
  5345. "type": "integer",
  5346. "required": false,
  5347. "description": "Results per page (max 100)",
  5348. "default": 30,
  5349. "location": "query"
  5350. },
  5351. {
  5352. "name": "page",
  5353. "type": "integer",
  5354. "required": false,
  5355. "description": "Page number of the results to fetch.",
  5356. "default": 1,
  5357. "location": "query"
  5358. }
  5359. ],
  5360. "path": "/repos/:owner/:repo/labels"
  5361. },
  5362. "getMilestone": {
  5363. "description": "",
  5364. "documentationUrl": "https://developer.github.com/v3/issues/milestones/#get-a-single-milestone",
  5365. "enabledForApps": true,
  5366. "method": "GET",
  5367. "name": "Get a single milestone",
  5368. "params": [
  5369. {
  5370. "name": "owner",
  5371. "type": "string",
  5372. "required": true,
  5373. "description": "",
  5374. "location": "url"
  5375. },
  5376. {
  5377. "name": "repo",
  5378. "type": "string",
  5379. "required": true,
  5380. "description": "",
  5381. "location": "url"
  5382. },
  5383. {
  5384. "name": "number",
  5385. "type": "integer",
  5386. "required": true,
  5387. "description": "",
  5388. "location": "url"
  5389. }
  5390. ],
  5391. "path": "/repos/:owner/:repo/milestones/:number"
  5392. },
  5393. "getMilestoneLabels": {
  5394. "description": "",
  5395. "documentationUrl": "https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone",
  5396. "enabledForApps": true,
  5397. "method": "GET",
  5398. "name": "Get labels for every issue in a milestone",
  5399. "params": [
  5400. {
  5401. "name": "owner",
  5402. "type": "string",
  5403. "required": true,
  5404. "description": "",
  5405. "location": "url"
  5406. },
  5407. {
  5408. "name": "repo",
  5409. "type": "string",
  5410. "required": true,
  5411. "description": "",
  5412. "location": "url"
  5413. },
  5414. {
  5415. "name": "number",
  5416. "type": "integer",
  5417. "required": true,
  5418. "description": "",
  5419. "location": "url"
  5420. },
  5421. {
  5422. "name": "per_page",
  5423. "type": "integer",
  5424. "required": false,
  5425. "description": "Results per page (max 100)",
  5426. "default": 30,
  5427. "location": "query"
  5428. },
  5429. {
  5430. "name": "page",
  5431. "type": "integer",
  5432. "required": false,
  5433. "description": "Page number of the results to fetch.",
  5434. "default": 1,
  5435. "location": "query"
  5436. }
  5437. ],
  5438. "path": "/repos/:owner/:repo/milestones/:number/labels"
  5439. },
  5440. "getMilestones": {
  5441. "description": "",
  5442. "documentationUrl": "https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository",
  5443. "enabledForApps": true,
  5444. "method": "GET",
  5445. "name": "List milestones for a repository",
  5446. "params": [
  5447. {
  5448. "name": "owner",
  5449. "type": "string",
  5450. "required": true,
  5451. "description": "",
  5452. "location": "url"
  5453. },
  5454. {
  5455. "name": "repo",
  5456. "type": "string",
  5457. "required": true,
  5458. "description": "",
  5459. "location": "url"
  5460. },
  5461. {
  5462. "name": "state",
  5463. "type": "string",
  5464. "description": "The state of the milestone. Either `open`, `closed`, or `all`.",
  5465. "default": "open",
  5466. "required": false,
  5467. "enum": [
  5468. "open",
  5469. "closed",
  5470. "all"
  5471. ],
  5472. "location": "query"
  5473. },
  5474. {
  5475. "name": "sort",
  5476. "type": "string",
  5477. "description": "What to sort results by. Either `due_on` or `completeness`.",
  5478. "default": "due_on",
  5479. "required": false,
  5480. "enum": [
  5481. "due_on",
  5482. "completeness"
  5483. ],
  5484. "location": "query"
  5485. },
  5486. {
  5487. "name": "direction",
  5488. "type": "string",
  5489. "description": "The direction of the sort. Either `asc` or `desc`.",
  5490. "default": "asc",
  5491. "required": false,
  5492. "enum": [
  5493. "asc",
  5494. "desc"
  5495. ],
  5496. "location": "query"
  5497. },
  5498. {
  5499. "name": "per_page",
  5500. "type": "integer",
  5501. "required": false,
  5502. "description": "Results per page (max 100)",
  5503. "default": 30,
  5504. "location": "query"
  5505. },
  5506. {
  5507. "name": "page",
  5508. "type": "integer",
  5509. "required": false,
  5510. "description": "Page number of the results to fetch.",
  5511. "default": 1,
  5512. "location": "query"
  5513. }
  5514. ],
  5515. "path": "/repos/:owner/:repo/milestones"
  5516. },
  5517. "lock": {
  5518. "description": "Users with push access can lock an issue or pull request's conversation.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"",
  5519. "documentationUrl": "https://developer.github.com/v3/issues/#lock-an-issue",
  5520. "enabledForApps": true,
  5521. "method": "PUT",
  5522. "name": "Lock an issue",
  5523. "params": [
  5524. {
  5525. "name": "owner",
  5526. "type": "string",
  5527. "required": true,
  5528. "description": "",
  5529. "location": "url"
  5530. },
  5531. {
  5532. "name": "repo",
  5533. "type": "string",
  5534. "required": true,
  5535. "description": "",
  5536. "location": "url"
  5537. },
  5538. {
  5539. "name": "number",
  5540. "type": "integer",
  5541. "required": true,
  5542. "description": "",
  5543. "location": "url"
  5544. },
  5545. {
  5546. "name": "lock_reason",
  5547. "type": "string",
  5548. "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
  5549. "required": false,
  5550. "enum": [
  5551. "off-topic",
  5552. "too heated",
  5553. "resolved",
  5554. "spam"
  5555. ],
  5556. "location": "body"
  5557. }
  5558. ],
  5559. "path": "/repos/:owner/:repo/issues/:number/lock"
  5560. },
  5561. "removeAllLabels": {
  5562. "description": "",
  5563. "documentationUrl": "https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue",
  5564. "enabledForApps": true,
  5565. "method": "DELETE",
  5566. "name": "Remove all labels from an issue",
  5567. "params": [
  5568. {
  5569. "name": "owner",
  5570. "type": "string",
  5571. "required": true,
  5572. "description": "",
  5573. "location": "url"
  5574. },
  5575. {
  5576. "name": "repo",
  5577. "type": "string",
  5578. "required": true,
  5579. "description": "",
  5580. "location": "url"
  5581. },
  5582. {
  5583. "name": "number",
  5584. "type": "integer",
  5585. "required": true,
  5586. "description": "",
  5587. "location": "url"
  5588. }
  5589. ],
  5590. "path": "/repos/:owner/:repo/issues/:number/labels"
  5591. },
  5592. "removeAssigneesFromIssue": {
  5593. "description": "Removes one or more assignees from an issue.\n\nThis example removes two of three assignees, leaving the `octocat` assignee.",
  5594. "documentationUrl": "https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue",
  5595. "enabledForApps": true,
  5596. "method": "DELETE",
  5597. "name": "Remove assignees from an issue",
  5598. "params": [
  5599. {
  5600. "name": "owner",
  5601. "type": "string",
  5602. "required": true,
  5603. "description": "",
  5604. "location": "url"
  5605. },
  5606. {
  5607. "name": "repo",
  5608. "type": "string",
  5609. "required": true,
  5610. "description": "",
  5611. "location": "url"
  5612. },
  5613. {
  5614. "name": "number",
  5615. "type": "integer",
  5616. "required": true,
  5617. "description": "",
  5618. "location": "url"
  5619. },
  5620. {
  5621. "name": "assignees",
  5622. "type": "string[]",
  5623. "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
  5624. "required": false,
  5625. "location": "body"
  5626. }
  5627. ],
  5628. "path": "/repos/:owner/:repo/issues/:number/assignees"
  5629. },
  5630. "removeLabel": {
  5631. "description": "",
  5632. "documentationUrl": "https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue",
  5633. "enabledForApps": true,
  5634. "method": "DELETE",
  5635. "name": "Remove a label from an issue",
  5636. "params": [
  5637. {
  5638. "name": "owner",
  5639. "type": "string",
  5640. "required": true,
  5641. "description": "",
  5642. "location": "url"
  5643. },
  5644. {
  5645. "name": "repo",
  5646. "type": "string",
  5647. "required": true,
  5648. "description": "",
  5649. "location": "url"
  5650. },
  5651. {
  5652. "name": "number",
  5653. "type": "integer",
  5654. "required": true,
  5655. "description": "",
  5656. "location": "url"
  5657. },
  5658. {
  5659. "name": "name",
  5660. "type": "string",
  5661. "required": true,
  5662. "description": "",
  5663. "location": "url"
  5664. }
  5665. ],
  5666. "path": "/repos/:owner/:repo/issues/:number/labels/:name"
  5667. },
  5668. "replaceAllLabels": {
  5669. "description": "Sending an empty array (`[]`) will remove all Labels from the Issue.",
  5670. "documentationUrl": "https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue",
  5671. "enabledForApps": true,
  5672. "method": "PUT",
  5673. "name": "Replace all labels for an issue",
  5674. "params": [
  5675. {
  5676. "name": "owner",
  5677. "type": "string",
  5678. "required": true,
  5679. "description": "",
  5680. "location": "url"
  5681. },
  5682. {
  5683. "name": "repo",
  5684. "type": "string",
  5685. "required": true,
  5686. "description": "",
  5687. "location": "url"
  5688. },
  5689. {
  5690. "name": "number",
  5691. "type": "integer",
  5692. "required": true,
  5693. "description": "",
  5694. "location": "url"
  5695. }
  5696. ],
  5697. "path": "/repos/:owner/:repo/issues/:number/labels"
  5698. },
  5699. "unlock": {
  5700. "description": "Users with push access can unlock an issue's conversation.",
  5701. "documentationUrl": "https://developer.github.com/v3/issues/#unlock-an-issue",
  5702. "enabledForApps": true,
  5703. "method": "DELETE",
  5704. "name": "Unlock an issue",
  5705. "params": [
  5706. {
  5707. "name": "owner",
  5708. "type": "string",
  5709. "required": true,
  5710. "description": "",
  5711. "location": "url"
  5712. },
  5713. {
  5714. "name": "repo",
  5715. "type": "string",
  5716. "required": true,
  5717. "description": "",
  5718. "location": "url"
  5719. },
  5720. {
  5721. "name": "number",
  5722. "type": "integer",
  5723. "required": true,
  5724. "description": "",
  5725. "location": "url"
  5726. }
  5727. ],
  5728. "path": "/repos/:owner/:repo/issues/:number/lock"
  5729. },
  5730. "updateLabel": {
  5731. "description": "",
  5732. "documentationUrl": "https://developer.github.com/v3/issues/labels/#update-a-label",
  5733. "enabledForApps": true,
  5734. "method": "PATCH",
  5735. "name": "Update a label",
  5736. "params": [
  5737. {
  5738. "name": "owner",
  5739. "type": "string",
  5740. "required": true,
  5741. "description": "",
  5742. "location": "url"
  5743. },
  5744. {
  5745. "name": "repo",
  5746. "type": "string",
  5747. "required": true,
  5748. "description": "",
  5749. "location": "url"
  5750. },
  5751. {
  5752. "name": "current_name",
  5753. "type": "string",
  5754. "required": true,
  5755. "description": "",
  5756. "location": "url"
  5757. },
  5758. {
  5759. "name": "name",
  5760. "type": "string",
  5761. "description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://a248.e.akamai.net/assets.github.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).",
  5762. "required": false,
  5763. "location": "body"
  5764. },
  5765. {
  5766. "name": "color",
  5767. "type": "string",
  5768. "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
  5769. "required": false,
  5770. "location": "body"
  5771. },
  5772. {
  5773. "name": "description",
  5774. "type": "string",
  5775. "description": "A short description of the label.",
  5776. "required": false,
  5777. "location": "body"
  5778. }
  5779. ],
  5780. "path": "/repos/:owner/:repo/labels/:current_name"
  5781. },
  5782. "updateMilestone": {
  5783. "description": "",
  5784. "documentationUrl": "https://developer.github.com/v3/issues/milestones/#update-a-milestone",
  5785. "enabledForApps": true,
  5786. "method": "PATCH",
  5787. "name": "Update a milestone",
  5788. "params": [
  5789. {
  5790. "name": "owner",
  5791. "type": "string",
  5792. "required": true,
  5793. "description": "",
  5794. "location": "url"
  5795. },
  5796. {
  5797. "name": "repo",
  5798. "type": "string",
  5799. "required": true,
  5800. "description": "",
  5801. "location": "url"
  5802. },
  5803. {
  5804. "name": "number",
  5805. "type": "integer",
  5806. "required": true,
  5807. "description": "",
  5808. "location": "url"
  5809. },
  5810. {
  5811. "name": "title",
  5812. "type": "string",
  5813. "description": "The title of the milestone.",
  5814. "required": false,
  5815. "location": "body"
  5816. },
  5817. {
  5818. "name": "state",
  5819. "type": "string",
  5820. "description": "The state of the milestone. Either `open` or `closed`.",
  5821. "default": "open",
  5822. "required": false,
  5823. "enum": [
  5824. "open",
  5825. "closed"
  5826. ],
  5827. "location": "body"
  5828. },
  5829. {
  5830. "name": "description",
  5831. "type": "string",
  5832. "description": "A description of the milestone.",
  5833. "required": false,
  5834. "location": "body"
  5835. },
  5836. {
  5837. "name": "due_on",
  5838. "type": "string",
  5839. "description": "The milestone due date. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  5840. "required": false,
  5841. "location": "body"
  5842. }
  5843. ],
  5844. "path": "/repos/:owner/:repo/milestones/:number"
  5845. }
  5846. },
  5847. "migrations": {
  5848. "cancelImport": {
  5849. "description": "Stop an import for a repository.",
  5850. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#cancel-an-import",
  5851. "enabledForApps": true,
  5852. "method": "DELETE",
  5853. "name": "Cancel an import",
  5854. "params": [
  5855. {
  5856. "name": "owner",
  5857. "type": "string",
  5858. "required": true,
  5859. "description": "",
  5860. "location": "url"
  5861. },
  5862. {
  5863. "name": "repo",
  5864. "type": "string",
  5865. "required": true,
  5866. "description": "",
  5867. "location": "url"
  5868. }
  5869. ],
  5870. "path": "/repos/:owner/:repo/import"
  5871. },
  5872. "deleteMigrationArchive": {
  5873. "description": "Deletes a previous migration archive. Migration archives are automatically deleted after seven days.",
  5874. "documentationUrl": "https://developer.github.com/v3/migrations/orgs/#delete-a-migration-archive",
  5875. "enabledForApps": false,
  5876. "method": "DELETE",
  5877. "name": "Delete a migration archive",
  5878. "params": [
  5879. {
  5880. "name": "org",
  5881. "type": "string",
  5882. "required": true,
  5883. "description": "",
  5884. "location": "url"
  5885. },
  5886. {
  5887. "name": "migration_id",
  5888. "type": "string",
  5889. "required": true,
  5890. "description": "",
  5891. "location": "url"
  5892. }
  5893. ],
  5894. "path": "/orgs/:org/migrations/:migration_id/archive"
  5895. },
  5896. "getImportCommitAuthors": {
  5897. "description": "Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.\n\nThis API method and the \"Map a commit author\" method allow you to provide correct Git author information.",
  5898. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#get-commit-authors",
  5899. "enabledForApps": true,
  5900. "method": "GET",
  5901. "name": "Get commit authors",
  5902. "params": [
  5903. {
  5904. "name": "owner",
  5905. "type": "string",
  5906. "required": true,
  5907. "description": "",
  5908. "location": "url"
  5909. },
  5910. {
  5911. "name": "repo",
  5912. "type": "string",
  5913. "required": true,
  5914. "description": "",
  5915. "location": "url"
  5916. },
  5917. {
  5918. "name": "since",
  5919. "type": "string",
  5920. "description": "Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step.",
  5921. "required": false,
  5922. "location": "query"
  5923. }
  5924. ],
  5925. "path": "/repos/:owner/:repo/import/authors"
  5926. },
  5927. "getImportProgress": {
  5928. "description": "View the progress of an import.\n\n**Import status**\n\nThis section includes details about the possible values of the `status` field of the Import Progress response.\n\nAn import that does not have errors will progress through these steps:\n\n* `detecting` \\- the \"detection\" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.\n* `importing` \\- the \"raw\" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).\n* `mapping` \\- the \"rewrite\" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.\n* `pushing` \\- the \"push\" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is \"Writing objects\".\n* `complete` \\- the import is complete, and the repository is ready on GitHub.\n\nIf there are problems, you will see one of these in the `status` field:\n\n* `auth_failed` \\- the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update Existing Import](#update-existing-import) section.\n* `error` \\- the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub support](https://github.com/contact) for more information.\n* `detection_needs_auth` \\- the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update Existing Import](#update-existing-import) section.\n* `detection_found_nothing` \\- the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](#cancel-an-import) and [retry](#start-an-import) with the correct URL.\n* `detection_found_multiple` \\- the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update Existing Import](#update-existing-import) section.\n\n**The project_choices field**\n\nWhen multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.\n\n**Git LFS related fields**\n\nThis section includes details about Git LFS related fields that may be present in the Import Progress response.\n\n* `use_lfs` \\- describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.\n* `has_large_files` \\- the boolean value describing whether files larger than 100MB were found during the `importing` step.\n* `large_files_size` \\- the total size in gigabytes of files larger than 100MB found in the originating repository.\n* `large_files_count` \\- the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a \"Get Large Files\" request.",
  5929. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#get-import-progress",
  5930. "enabledForApps": true,
  5931. "method": "GET",
  5932. "name": "Get import progress",
  5933. "params": [
  5934. {
  5935. "name": "owner",
  5936. "type": "string",
  5937. "required": true,
  5938. "description": "",
  5939. "location": "url"
  5940. },
  5941. {
  5942. "name": "repo",
  5943. "type": "string",
  5944. "required": true,
  5945. "description": "",
  5946. "location": "url"
  5947. }
  5948. ],
  5949. "path": "/repos/:owner/:repo/import"
  5950. },
  5951. "getLargeImportFiles": {
  5952. "description": "List files larger than 100MB found during the import",
  5953. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#get-large-files",
  5954. "enabledForApps": true,
  5955. "method": "GET",
  5956. "name": "Get large files",
  5957. "params": [
  5958. {
  5959. "name": "owner",
  5960. "type": "string",
  5961. "required": true,
  5962. "description": "",
  5963. "location": "url"
  5964. },
  5965. {
  5966. "name": "repo",
  5967. "type": "string",
  5968. "required": true,
  5969. "description": "",
  5970. "location": "url"
  5971. }
  5972. ],
  5973. "path": "/repos/:owner/:repo/import/large_files"
  5974. },
  5975. "getMigrationArchiveLink": {
  5976. "description": "Fetches the URL to a migration archive.\n\n",
  5977. "documentationUrl": "https://developer.github.com/v3/migrations/orgs/#download-a-migration-archive",
  5978. "enabledForApps": false,
  5979. "method": "GET",
  5980. "name": "Download a migration archive",
  5981. "params": [
  5982. {
  5983. "name": "org",
  5984. "type": "string",
  5985. "required": true,
  5986. "description": "",
  5987. "location": "url"
  5988. },
  5989. {
  5990. "name": "migration_id",
  5991. "type": "string",
  5992. "required": true,
  5993. "description": "",
  5994. "location": "url"
  5995. }
  5996. ],
  5997. "path": "/orgs/:org/migrations/:migration_id/archive"
  5998. },
  5999. "getMigrationStatus": {
  6000. "description": "Fetches the status of a migration.\n\nThe `state` of a migration can be one of the following values:\n\n* `pending`, which means the migration hasn't started yet.\n* `exporting`, which means the migration is in progress.\n* `exported`, which means the migration finished successfully.\n* `failed`, which means the migration failed.",
  6001. "documentationUrl": "https://developer.github.com/v3/migrations/orgs/#get-the-status-of-a-migration",
  6002. "enabledForApps": false,
  6003. "method": "GET",
  6004. "name": "Get the status of a migration",
  6005. "params": [
  6006. {
  6007. "name": "org",
  6008. "type": "string",
  6009. "required": true,
  6010. "description": "",
  6011. "location": "url"
  6012. },
  6013. {
  6014. "name": "migration_id",
  6015. "type": "string",
  6016. "required": true,
  6017. "description": "",
  6018. "location": "url"
  6019. }
  6020. ],
  6021. "path": "/orgs/:org/migrations/:migration_id"
  6022. },
  6023. "getMigrations": {
  6024. "description": "Lists the most recent migrations.",
  6025. "documentationUrl": "https://developer.github.com/v3/migrations/orgs/#get-a-list-of-migrations",
  6026. "enabledForApps": false,
  6027. "method": "GET",
  6028. "name": "Get a list of migrations",
  6029. "params": [
  6030. {
  6031. "name": "org",
  6032. "type": "string",
  6033. "required": true,
  6034. "description": "",
  6035. "location": "url"
  6036. },
  6037. {
  6038. "name": "per_page",
  6039. "type": "integer",
  6040. "required": false,
  6041. "description": "Results per page (max 100)",
  6042. "default": 30,
  6043. "location": "query"
  6044. },
  6045. {
  6046. "name": "page",
  6047. "type": "integer",
  6048. "required": false,
  6049. "description": "Page number of the results to fetch.",
  6050. "default": 1,
  6051. "location": "query"
  6052. }
  6053. ],
  6054. "path": "/orgs/:org/migrations"
  6055. },
  6056. "mapImportCommitAuthor": {
  6057. "description": "Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository.",
  6058. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author",
  6059. "enabledForApps": true,
  6060. "method": "PATCH",
  6061. "name": "Map a commit author",
  6062. "params": [
  6063. {
  6064. "name": "owner",
  6065. "type": "string",
  6066. "required": true,
  6067. "description": "",
  6068. "location": "url"
  6069. },
  6070. {
  6071. "name": "repo",
  6072. "type": "string",
  6073. "required": true,
  6074. "description": "",
  6075. "location": "url"
  6076. },
  6077. {
  6078. "name": "author_id",
  6079. "type": "string",
  6080. "required": true,
  6081. "description": "",
  6082. "location": "url"
  6083. },
  6084. {
  6085. "name": "email",
  6086. "type": "string",
  6087. "description": "The new Git author email.",
  6088. "required": false,
  6089. "location": "body"
  6090. },
  6091. {
  6092. "name": "name",
  6093. "type": "string",
  6094. "description": "The new Git author name.",
  6095. "required": false,
  6096. "location": "body"
  6097. }
  6098. ],
  6099. "path": "/repos/:owner/:repo/import/authors/:author_id"
  6100. },
  6101. "setImportLfsPreference": {
  6102. "description": "You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/).",
  6103. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#set-git-lfs-preference",
  6104. "enabledForApps": true,
  6105. "method": "PATCH",
  6106. "name": "Set Git LFS preference",
  6107. "params": [
  6108. {
  6109. "name": "owner",
  6110. "type": "string",
  6111. "required": true,
  6112. "description": "",
  6113. "location": "url"
  6114. },
  6115. {
  6116. "name": "repo",
  6117. "type": "string",
  6118. "required": true,
  6119. "description": "",
  6120. "location": "url"
  6121. },
  6122. {
  6123. "name": "use_lfs",
  6124. "type": "string",
  6125. "description": "Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import).",
  6126. "required": true,
  6127. "enum": [
  6128. "opt_in",
  6129. "opt_out"
  6130. ],
  6131. "location": "body"
  6132. }
  6133. ],
  6134. "path": "/repos/:owner/:repo/import/lfs"
  6135. },
  6136. "startImport": {
  6137. "description": "Start a source import to a GitHub repository using GitHub Importer.",
  6138. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#start-an-import",
  6139. "enabledForApps": true,
  6140. "method": "PUT",
  6141. "name": "Start an import",
  6142. "params": [
  6143. {
  6144. "name": "owner",
  6145. "type": "string",
  6146. "required": true,
  6147. "description": "",
  6148. "location": "url"
  6149. },
  6150. {
  6151. "name": "repo",
  6152. "type": "string",
  6153. "required": true,
  6154. "description": "",
  6155. "location": "url"
  6156. },
  6157. {
  6158. "name": "vcs_url",
  6159. "type": "string",
  6160. "description": "The URL of the originating repository.",
  6161. "required": true,
  6162. "location": "body"
  6163. },
  6164. {
  6165. "name": "vcs",
  6166. "type": "string",
  6167. "description": "The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.",
  6168. "required": false,
  6169. "enum": [
  6170. "subversion",
  6171. "git",
  6172. "mercurial",
  6173. "tfvc"
  6174. ],
  6175. "location": "body"
  6176. },
  6177. {
  6178. "name": "vcs_username",
  6179. "type": "string",
  6180. "description": "If authentication is required, the username to provide to `vcs_url`.",
  6181. "required": false,
  6182. "location": "body"
  6183. },
  6184. {
  6185. "name": "vcs_password",
  6186. "type": "string",
  6187. "description": "If authentication is required, the password to provide to `vcs_url`.",
  6188. "required": false,
  6189. "location": "body"
  6190. },
  6191. {
  6192. "name": "tfvc_project",
  6193. "type": "string",
  6194. "description": "For a tfvc import, the name of the project that is being imported.",
  6195. "required": false,
  6196. "location": "body"
  6197. }
  6198. ],
  6199. "path": "/repos/:owner/:repo/import"
  6200. },
  6201. "startMigration": {
  6202. "description": "Initiates the generation of a migration archive.",
  6203. "documentationUrl": "https://developer.github.com/v3/migrations/orgs/#start-a-migration",
  6204. "enabledForApps": false,
  6205. "method": "POST",
  6206. "name": "Start a migration",
  6207. "params": [
  6208. {
  6209. "name": "org",
  6210. "type": "string",
  6211. "required": true,
  6212. "description": "",
  6213. "location": "url"
  6214. },
  6215. {
  6216. "name": "repositories",
  6217. "type": "string[]",
  6218. "description": "A list of arrays indicating which repositories should be migrated.",
  6219. "required": true,
  6220. "location": "body"
  6221. },
  6222. {
  6223. "name": "lock_repositories",
  6224. "type": "boolean",
  6225. "description": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data.",
  6226. "default": false,
  6227. "required": false,
  6228. "location": "body"
  6229. },
  6230. {
  6231. "name": "exclude_attachments",
  6232. "type": "boolean",
  6233. "description": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).",
  6234. "default": false,
  6235. "required": false,
  6236. "location": "body"
  6237. }
  6238. ],
  6239. "path": "/orgs/:org/migrations"
  6240. },
  6241. "unlockRepoLockedForMigration": {
  6242. "description": "Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://developer.github.com/v3/repos/#delete-a-repository) when the migration is complete and you no longer need the source data.",
  6243. "documentationUrl": "https://developer.github.com/v3/migrations/orgs/#unlock-a-repository",
  6244. "enabledForApps": false,
  6245. "method": "DELETE",
  6246. "name": "Unlock a repository",
  6247. "params": [
  6248. {
  6249. "name": "org",
  6250. "type": "string",
  6251. "required": true,
  6252. "description": "",
  6253. "location": "url"
  6254. },
  6255. {
  6256. "name": "migration_id",
  6257. "type": "string",
  6258. "required": true,
  6259. "description": "",
  6260. "location": "url"
  6261. },
  6262. {
  6263. "name": "repo_name",
  6264. "type": "string",
  6265. "required": true,
  6266. "description": "",
  6267. "location": "url"
  6268. }
  6269. ],
  6270. "path": "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
  6271. },
  6272. "updateImport": {
  6273. "description": "An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API request. If no parameters are provided, the import will be restarted.\n\nSome servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress will have the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array. You can select the project to import by providing one of the objects in the `project_choices` array in the update request.\n\nThe following example demonstrates the workflow for updating an import with \"project1\" as the project choice. Given a `project_choices` array like such:\n\nTo restart an import, no parameters are provided in the update request.",
  6274. "documentationUrl": "https://developer.github.com/v3/migrations/source_imports/#update-existing-import",
  6275. "enabledForApps": true,
  6276. "method": "PATCH",
  6277. "name": "Update existing import",
  6278. "params": [
  6279. {
  6280. "name": "owner",
  6281. "type": "string",
  6282. "required": true,
  6283. "description": "",
  6284. "location": "url"
  6285. },
  6286. {
  6287. "name": "repo",
  6288. "type": "string",
  6289. "required": true,
  6290. "description": "",
  6291. "location": "url"
  6292. },
  6293. {
  6294. "name": "vcs_username",
  6295. "type": "string",
  6296. "description": "The username to provide to the originating repository.",
  6297. "required": false,
  6298. "location": "body"
  6299. },
  6300. {
  6301. "name": "vcs_password",
  6302. "type": "string",
  6303. "description": "The password to provide to the originating repository.",
  6304. "required": false,
  6305. "location": "body"
  6306. }
  6307. ],
  6308. "path": "/repos/:owner/:repo/import"
  6309. }
  6310. },
  6311. "misc": {
  6312. "getCodeOfConduct": {
  6313. "description": "",
  6314. "documentationUrl": "https://developer.github.com/v3/codes_of_conduct/#get-an-individual-code-of-conduct",
  6315. "enabledForApps": true,
  6316. "method": "GET",
  6317. "name": "Get an individual code of conduct",
  6318. "params": [
  6319. {
  6320. "name": "key",
  6321. "type": "string",
  6322. "required": true,
  6323. "description": "",
  6324. "location": "url"
  6325. }
  6326. ],
  6327. "path": "/codes_of_conduct/:key"
  6328. },
  6329. "getCodesOfConduct": {
  6330. "description": "",
  6331. "documentationUrl": "https://developer.github.com/v3/codes_of_conduct/#list-all-codes-of-conduct",
  6332. "enabledForApps": true,
  6333. "method": "GET",
  6334. "name": "List all codes of conduct",
  6335. "params": [],
  6336. "path": "/codes_of_conduct"
  6337. },
  6338. "getGitignoreTemplate": {
  6339. "description": "The API also allows fetching the source of a single template.\n\nUse the raw [media type](https://developer.github.com/v3/media/) to get the raw contents.\n\n",
  6340. "documentationUrl": "https://developer.github.com/v3/gitignore/#get-a-single-template",
  6341. "enabledForApps": true,
  6342. "method": "GET",
  6343. "name": "Get a single template",
  6344. "params": [
  6345. {
  6346. "name": "name",
  6347. "type": "string",
  6348. "required": true,
  6349. "description": "",
  6350. "location": "url"
  6351. }
  6352. ],
  6353. "path": "/gitignore/templates/:name"
  6354. },
  6355. "getGitignoreTemplates": {
  6356. "description": "List all templates available to pass as an option when [creating a repository](https://developer.github.com/v3/repos/#create).",
  6357. "documentationUrl": "https://developer.github.com/v3/gitignore/#listing-available-templates",
  6358. "enabledForApps": true,
  6359. "method": "GET",
  6360. "name": "Listing available templates",
  6361. "params": [],
  6362. "path": "/gitignore/templates"
  6363. },
  6364. "getLicense": {
  6365. "description": "",
  6366. "documentationUrl": "https://developer.github.com/v3/licenses/#get-an-individual-license",
  6367. "enabledForApps": true,
  6368. "method": "GET",
  6369. "name": "Get an individual license",
  6370. "params": [
  6371. {
  6372. "name": "license",
  6373. "type": "string",
  6374. "required": true,
  6375. "description": "",
  6376. "location": "url"
  6377. }
  6378. ],
  6379. "path": "/licenses/:license"
  6380. },
  6381. "getLicenses": {
  6382. "description": "",
  6383. "documentationUrl": "https://developer.github.com/v3/licenses/#list-all-licenses",
  6384. "enabledForApps": true,
  6385. "method": "GET",
  6386. "name": "List all licenses",
  6387. "params": [],
  6388. "path": "/licenses"
  6389. },
  6390. "getRateLimit": {
  6391. "description": "Note: Accessing this endpoint does not count against your rate limit.\n\n\n\n**Understanding Your Rate Limit Status**\n\nThe Search API has a [custom rate limit](https://developer.github.com/v3/search/#rate-limit), separate from the rate limit governing the rest of the API. For that reason, the response (shown above) categorizes your rate limit by resource. Within the `\"resources\"` object, the `\"search\"` object provides your rate limit status for the [Search API](https://developer.github.com/v3/search). The `\"core\"` object provides your rate limit status for all the _rest_ of the API.\n\nThe `\"rate\"` object (shown at the bottom of the response above) is deprecated.\n\nIf you're writing new API client code (or updating your existing code), you should use the `\"core\"` object instead of the `\"rate\"` object. The `\"core\"` object contains the same information that is present in the `\"rate\"` object.",
  6392. "documentationUrl": "https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status",
  6393. "enabledForApps": true,
  6394. "method": "GET",
  6395. "name": "Get your current rate limit status",
  6396. "params": [],
  6397. "path": "/rate_limit"
  6398. },
  6399. "getRepoCodeOfConduct": {
  6400. "description": "This method returns the contents of the repository's code of conduct file, if one is detected.",
  6401. "documentationUrl": "https://developer.github.com/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct",
  6402. "enabledForApps": true,
  6403. "method": "GET",
  6404. "name": "Get the contents of a repository's code of conduct",
  6405. "params": [
  6406. {
  6407. "name": "owner",
  6408. "type": "string",
  6409. "required": true,
  6410. "description": "",
  6411. "location": "url"
  6412. },
  6413. {
  6414. "name": "repo",
  6415. "type": "string",
  6416. "required": true,
  6417. "description": "",
  6418. "location": "url"
  6419. }
  6420. ],
  6421. "path": "/repos/:owner/:repo/community/code_of_conduct"
  6422. },
  6423. "getRepoLicense": {
  6424. "description": "This method returns the contents of the repository's license file, if one is detected.\n\nSimilar to [the repository contents API](https://developer.github.com/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML.",
  6425. "documentationUrl": "https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license",
  6426. "enabledForApps": true,
  6427. "method": "GET",
  6428. "name": "Get the contents of a repository's license",
  6429. "params": [
  6430. {
  6431. "name": "owner",
  6432. "type": "string",
  6433. "required": true,
  6434. "description": "",
  6435. "location": "url"
  6436. },
  6437. {
  6438. "name": "repo",
  6439. "type": "string",
  6440. "required": true,
  6441. "description": "",
  6442. "location": "url"
  6443. }
  6444. ],
  6445. "path": "/repos/:owner/:repo/license"
  6446. },
  6447. "renderMarkdown": {
  6448. "description": "",
  6449. "documentationUrl": "https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document",
  6450. "enabledForApps": true,
  6451. "method": "POST",
  6452. "name": "Render an arbitrary Markdown document",
  6453. "params": [
  6454. {
  6455. "name": "text",
  6456. "type": "string",
  6457. "description": "The Markdown text to render in HTML. Markdown content must be 400 KB or less.",
  6458. "required": true,
  6459. "location": "body"
  6460. },
  6461. {
  6462. "name": "mode",
  6463. "type": "string",
  6464. "description": "The rendering mode. Can be either: \n\\* `markdown` to render a document in plain Markdown, just like README.md files are rendered. \n\\* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests.",
  6465. "default": "markdown",
  6466. "required": false,
  6467. "enum": [
  6468. "markdown",
  6469. "gfm"
  6470. ],
  6471. "location": "body"
  6472. },
  6473. {
  6474. "name": "context",
  6475. "type": "string",
  6476. "description": "The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode.",
  6477. "required": false,
  6478. "location": "body"
  6479. }
  6480. ],
  6481. "path": "/markdown"
  6482. },
  6483. "renderMarkdownRaw": {
  6484. "description": "You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.\n\n",
  6485. "documentationUrl": "https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode",
  6486. "enabledForApps": true,
  6487. "method": "POST",
  6488. "name": "Render a Markdown document in raw mode",
  6489. "params": [],
  6490. "path": "/markdown/raw"
  6491. }
  6492. },
  6493. "orgs": {
  6494. "addOrgMembership": {
  6495. "description": "Only authenticated organization owners can add a member to the organization or update the member's role.\n\n* If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](#get-organization-membership) will be `pending` until they accept the invitation.\n \n* Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.\n\n**Rate limits**\n\nTo prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period.",
  6496. "documentationUrl": "https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership",
  6497. "enabledForApps": true,
  6498. "method": "PUT",
  6499. "name": "Add or update organization membership",
  6500. "params": [
  6501. {
  6502. "name": "org",
  6503. "type": "string",
  6504. "required": true,
  6505. "description": "",
  6506. "location": "url"
  6507. },
  6508. {
  6509. "name": "username",
  6510. "type": "string",
  6511. "required": true,
  6512. "description": "",
  6513. "location": "url"
  6514. },
  6515. {
  6516. "name": "role",
  6517. "type": "string",
  6518. "description": "The role to give the user in the organization. Can be one of: \n\\* `admin` \\- The user will become an owner of the organization. \n\\* `member` \\- The user will become a non-owner member of the organization.",
  6519. "default": "member",
  6520. "required": false,
  6521. "enum": [
  6522. "admin",
  6523. "member"
  6524. ],
  6525. "location": "body"
  6526. }
  6527. ],
  6528. "path": "/orgs/:org/memberships/:username"
  6529. },
  6530. "addTeamMembership": {
  6531. "description": "If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.\n\nIf the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team.\n\nIf you attempt to add an organization to a team, you will get this:",
  6532. "documentationUrl": "https://developer.github.com/v3/teams/members/#add-or-update-team-membership",
  6533. "enabledForApps": true,
  6534. "method": "PUT",
  6535. "name": "Add or update team membership",
  6536. "params": [
  6537. {
  6538. "name": "team_id",
  6539. "type": "string",
  6540. "required": true,
  6541. "description": "",
  6542. "location": "url"
  6543. },
  6544. {
  6545. "name": "username",
  6546. "type": "string",
  6547. "required": true,
  6548. "description": "",
  6549. "location": "url"
  6550. },
  6551. {
  6552. "name": "role",
  6553. "type": "string",
  6554. "description": "The role that this user should have in the team. Can be one of: \n\\* `member` \\- a normal member of the team. \n\\* `maintainer` \\- a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.",
  6555. "default": "member",
  6556. "required": false,
  6557. "enum": [
  6558. "member",
  6559. "maintainer"
  6560. ],
  6561. "location": "body"
  6562. }
  6563. ],
  6564. "path": "/teams/:team_id/memberships/:username"
  6565. },
  6566. "addTeamRepo": {
  6567. "description": "To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization.\n\nIf you pass the `hellcat-preview` media type, you can modify repository permissions of child teams.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"\n\n",
  6568. "documentationUrl": "https://developer.github.com/v3/teams/#add-or-update-team-repository",
  6569. "enabledForApps": false,
  6570. "method": "PUT",
  6571. "name": "Add or update team repository",
  6572. "params": [
  6573. {
  6574. "name": "team_id",
  6575. "type": "string",
  6576. "required": true,
  6577. "description": "",
  6578. "location": "url"
  6579. },
  6580. {
  6581. "name": "owner",
  6582. "type": "string",
  6583. "required": true,
  6584. "description": "",
  6585. "location": "url"
  6586. },
  6587. {
  6588. "name": "repo",
  6589. "type": "string",
  6590. "required": true,
  6591. "description": "",
  6592. "location": "url"
  6593. },
  6594. {
  6595. "name": "permission",
  6596. "type": "string",
  6597. "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` \\- team members can pull, but not push to or administer this repository. \n\\* `push` \\- team members can pull and push, but not administer this repository. \n\\* `admin` \\- team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.",
  6598. "required": false,
  6599. "enum": [
  6600. "pull",
  6601. "push",
  6602. "admin"
  6603. ],
  6604. "location": "body"
  6605. }
  6606. ],
  6607. "path": "/teams/:team_id/repos/:owner/:repo"
  6608. },
  6609. "blockUser": {
  6610. "description": "",
  6611. "documentationUrl": "https://developer.github.com/v3/orgs/blocking/#block-a-user",
  6612. "enabledForApps": false,
  6613. "method": "PUT",
  6614. "name": "Block a user",
  6615. "params": [
  6616. {
  6617. "name": "org",
  6618. "type": "string",
  6619. "required": true,
  6620. "description": "",
  6621. "location": "url"
  6622. },
  6623. {
  6624. "name": "username",
  6625. "type": "string",
  6626. "required": true,
  6627. "description": "",
  6628. "location": "url"
  6629. }
  6630. ],
  6631. "path": "/orgs/:org/blocks/:username"
  6632. },
  6633. "checkBlockedUser": {
  6634. "description": "If the user is blocked:\n\nIf the user is not blocked:",
  6635. "documentationUrl": "https://developer.github.com/v3/orgs/blocking/#check-whether-a-user-is-blocked-from-an-organization",
  6636. "enabledForApps": false,
  6637. "method": "GET",
  6638. "name": "Check whether a user is blocked from an organization",
  6639. "params": [
  6640. {
  6641. "name": "org",
  6642. "type": "string",
  6643. "required": true,
  6644. "description": "",
  6645. "location": "url"
  6646. },
  6647. {
  6648. "name": "username",
  6649. "type": "string",
  6650. "required": true,
  6651. "description": "",
  6652. "location": "url"
  6653. }
  6654. ],
  6655. "path": "/orgs/:org/blocks/:username"
  6656. },
  6657. "checkMembership": {
  6658. "description": "Check if a user is, publicly or privately, a member of the organization.",
  6659. "documentationUrl": "https://developer.github.com/v3/orgs/members/#check-membership",
  6660. "enabledForApps": true,
  6661. "method": "GET",
  6662. "name": "Check membership",
  6663. "params": [
  6664. {
  6665. "name": "org",
  6666. "type": "string",
  6667. "required": true,
  6668. "description": "",
  6669. "location": "url"
  6670. },
  6671. {
  6672. "name": "username",
  6673. "type": "string",
  6674. "required": true,
  6675. "description": "",
  6676. "location": "url"
  6677. }
  6678. ],
  6679. "path": "/orgs/:org/members/:username"
  6680. },
  6681. "checkPublicMembership": {
  6682. "description": "",
  6683. "documentationUrl": "https://developer.github.com/v3/orgs/members/#check-public-membership",
  6684. "enabledForApps": true,
  6685. "method": "GET",
  6686. "name": "Check public membership",
  6687. "params": [
  6688. {
  6689. "name": "org",
  6690. "type": "string",
  6691. "required": true,
  6692. "description": "",
  6693. "location": "url"
  6694. },
  6695. {
  6696. "name": "username",
  6697. "type": "string",
  6698. "required": true,
  6699. "description": "",
  6700. "location": "url"
  6701. }
  6702. ],
  6703. "path": "/orgs/:org/public_members/:username"
  6704. },
  6705. "checkTeamRepo": {
  6706. "description": "**Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header:",
  6707. "documentationUrl": "https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository",
  6708. "enabledForApps": true,
  6709. "method": "GET",
  6710. "name": "Check if a team manages a repository",
  6711. "params": [
  6712. {
  6713. "name": "team_id",
  6714. "type": "string",
  6715. "required": true,
  6716. "description": "",
  6717. "location": "url"
  6718. },
  6719. {
  6720. "name": "owner",
  6721. "type": "string",
  6722. "required": true,
  6723. "description": "",
  6724. "location": "url"
  6725. },
  6726. {
  6727. "name": "repo",
  6728. "type": "string",
  6729. "required": true,
  6730. "description": "",
  6731. "location": "url"
  6732. }
  6733. ],
  6734. "path": "/teams/:team_id/repos/:owner/:repo"
  6735. },
  6736. "concealMembership": {
  6737. "description": "",
  6738. "documentationUrl": "https://developer.github.com/v3/orgs/members/#conceal-a-users-membership",
  6739. "enabledForApps": false,
  6740. "method": "DELETE",
  6741. "name": "Conceal a user's membership",
  6742. "params": [
  6743. {
  6744. "name": "org",
  6745. "type": "string",
  6746. "required": true,
  6747. "description": "",
  6748. "location": "url"
  6749. },
  6750. {
  6751. "name": "username",
  6752. "type": "string",
  6753. "required": true,
  6754. "description": "",
  6755. "location": "url"
  6756. }
  6757. ],
  6758. "path": "/orgs/:org/public_members/:username"
  6759. },
  6760. "convertMemberToOutsideCollaborator": {
  6761. "description": "When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see \"[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\".",
  6762. "documentationUrl": "https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator",
  6763. "enabledForApps": true,
  6764. "method": "PUT",
  6765. "name": "Convert member to outside collaborator",
  6766. "params": [
  6767. {
  6768. "name": "org",
  6769. "type": "string",
  6770. "required": true,
  6771. "description": "",
  6772. "location": "url"
  6773. },
  6774. {
  6775. "name": "username",
  6776. "type": "string",
  6777. "required": true,
  6778. "description": "",
  6779. "location": "url"
  6780. }
  6781. ],
  6782. "path": "/orgs/:org/outside_collaborators/:username"
  6783. },
  6784. "createHook": {
  6785. "description": "Here's how you can create a hook that posts payloads in JSON format:",
  6786. "documentationUrl": "https://developer.github.com/v3/orgs/hooks/#create-a-hook",
  6787. "enabledForApps": false,
  6788. "method": "POST",
  6789. "name": "Create a hook",
  6790. "params": [
  6791. {
  6792. "name": "org",
  6793. "type": "string",
  6794. "required": true,
  6795. "description": "",
  6796. "location": "url"
  6797. },
  6798. {
  6799. "name": "name",
  6800. "type": "string",
  6801. "description": "Must be passed as \"web\".",
  6802. "required": true,
  6803. "location": "body"
  6804. },
  6805. {
  6806. "name": "config",
  6807. "type": "object",
  6808. "description": "Key/value pairs to provide settings for this webhook. [These are defined below](#create-hook-config-params).",
  6809. "required": true,
  6810. "location": "body"
  6811. },
  6812. {
  6813. "name": "config.url",
  6814. "type": "string",
  6815. "description": "The URL to which the payloads will be delivered.",
  6816. "required": true,
  6817. "location": "body"
  6818. },
  6819. {
  6820. "name": "config.content_type",
  6821. "type": "string",
  6822. "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
  6823. "required": false,
  6824. "location": "body"
  6825. },
  6826. {
  6827. "name": "config.secret",
  6828. "type": "string",
  6829. "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.",
  6830. "required": false,
  6831. "location": "body"
  6832. },
  6833. {
  6834. "name": "config.insecure_ssl",
  6835. "type": "string",
  6836. "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
  6837. "required": false,
  6838. "location": "body"
  6839. },
  6840. {
  6841. "name": "events",
  6842. "type": "string[]",
  6843. "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for.",
  6844. "default": "[\"push\"]",
  6845. "required": false,
  6846. "location": "body"
  6847. },
  6848. {
  6849. "name": "active",
  6850. "type": "boolean",
  6851. "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
  6852. "default": true,
  6853. "required": false,
  6854. "location": "body"
  6855. }
  6856. ],
  6857. "path": "/orgs/:org/hooks"
  6858. },
  6859. "createInvitation": {
  6860. "description": "Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner.",
  6861. "documentationUrl": "https://developer.github.com/v3/orgs/members/#create-organization-invitation",
  6862. "enabledForApps": false,
  6863. "method": "POST",
  6864. "name": "Create organization invitation",
  6865. "params": [
  6866. {
  6867. "name": "org",
  6868. "type": "string",
  6869. "required": true,
  6870. "description": "",
  6871. "location": "url"
  6872. },
  6873. {
  6874. "name": "invitee_id",
  6875. "type": "integer",
  6876. "description": "**Required unless you provide `email`**. GitHub user ID for the person you are inviting.",
  6877. "required": false,
  6878. "location": "body"
  6879. },
  6880. {
  6881. "name": "email",
  6882. "type": "string",
  6883. "description": "**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.",
  6884. "required": false,
  6885. "location": "body"
  6886. },
  6887. {
  6888. "name": "role",
  6889. "type": "string",
  6890. "description": "Specify role for new member. Can be one of: \n\\* `admin` \\- Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n\\* `direct_member` \\- Non-owner organization members with ability to see other members and join teams by invitation. \n\\* `billing_manager` \\- Non-owner organization members with ability to manage the billing settings of your organization.",
  6891. "default": "direct_member",
  6892. "required": false,
  6893. "enum": [
  6894. "admin",
  6895. "direct_member",
  6896. "billing_manager"
  6897. ],
  6898. "location": "body"
  6899. },
  6900. {
  6901. "name": "team_ids",
  6902. "type": "integer[]",
  6903. "description": "Specify IDs for the teams you want to invite new members to.",
  6904. "required": false,
  6905. "location": "body"
  6906. }
  6907. ],
  6908. "path": "/orgs/:org/invitations"
  6909. },
  6910. "createTeam": {
  6911. "description": "To create a team, the authenticated user must be a member of `:org`.",
  6912. "documentationUrl": "https://developer.github.com/v3/teams/#create-team",
  6913. "enabledForApps": true,
  6914. "method": "POST",
  6915. "name": "Create team",
  6916. "params": [
  6917. {
  6918. "name": "org",
  6919. "type": "string",
  6920. "required": true,
  6921. "description": "",
  6922. "location": "url"
  6923. },
  6924. {
  6925. "name": "name",
  6926. "type": "string",
  6927. "description": "The name of the team.",
  6928. "required": true,
  6929. "location": "body"
  6930. },
  6931. {
  6932. "name": "description",
  6933. "type": "string",
  6934. "description": "The description of the team.",
  6935. "required": false,
  6936. "location": "body"
  6937. },
  6938. {
  6939. "name": "maintainers",
  6940. "type": "string[]",
  6941. "description": "The logins of organization members to add as maintainers of the team.",
  6942. "required": false,
  6943. "location": "body"
  6944. },
  6945. {
  6946. "name": "repo_names",
  6947. "type": "string[]",
  6948. "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
  6949. "required": false,
  6950. "location": "body"
  6951. },
  6952. {
  6953. "name": "privacy",
  6954. "type": "string",
  6955. "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` \\- only visible to organization owners and members of this team. \n\\* `closed` \\- visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` \\- visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
  6956. "default": "secret",
  6957. "required": false,
  6958. "enum": [
  6959. "secret",
  6960. "closed"
  6961. ],
  6962. "location": "body"
  6963. },
  6964. {
  6965. "name": "permission",
  6966. "type": "string",
  6967. "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` \\- team members can pull, but not push to or administer newly-added repositories. \n\\* `push` \\- team members can pull and push, but not administer newly-added repositories. \n\\* `admin` \\- team members can pull, push and administer newly-added repositories.",
  6968. "default": "pull",
  6969. "required": false,
  6970. "enum": [
  6971. "pull",
  6972. "push",
  6973. "admin"
  6974. ],
  6975. "location": "body"
  6976. },
  6977. {
  6978. "name": "parent_team_id",
  6979. "type": "integer",
  6980. "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
  6981. "required": false,
  6982. "location": "body"
  6983. }
  6984. ],
  6985. "path": "/orgs/:org/teams"
  6986. },
  6987. "deleteHook": {
  6988. "description": "",
  6989. "documentationUrl": "https://developer.github.com/v3/orgs/hooks/#delete-a-hook",
  6990. "enabledForApps": false,
  6991. "method": "DELETE",
  6992. "name": "Delete a hook",
  6993. "params": [
  6994. {
  6995. "name": "org",
  6996. "type": "string",
  6997. "required": true,
  6998. "description": "",
  6999. "location": "url"
  7000. },
  7001. {
  7002. "name": "hook_id",
  7003. "type": "string",
  7004. "required": true,
  7005. "description": "",
  7006. "location": "url"
  7007. }
  7008. ],
  7009. "path": "/orgs/:org/hooks/:hook_id"
  7010. },
  7011. "deleteTeam": {
  7012. "description": "To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team.\n\nIf you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well.",
  7013. "documentationUrl": "https://developer.github.com/v3/teams/#delete-team",
  7014. "enabledForApps": true,
  7015. "method": "DELETE",
  7016. "name": "Delete team",
  7017. "params": [
  7018. {
  7019. "name": "team_id",
  7020. "type": "string",
  7021. "required": true,
  7022. "description": "",
  7023. "location": "url"
  7024. }
  7025. ],
  7026. "path": "/teams/:team_id"
  7027. },
  7028. "deleteTeamRepo": {
  7029. "description": "If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.",
  7030. "documentationUrl": "https://developer.github.com/v3/teams/#remove-team-repository",
  7031. "enabledForApps": false,
  7032. "method": "DELETE",
  7033. "name": "Remove team repository",
  7034. "params": [
  7035. {
  7036. "name": "team_id",
  7037. "type": "string",
  7038. "required": true,
  7039. "description": "",
  7040. "location": "url"
  7041. },
  7042. {
  7043. "name": "owner",
  7044. "type": "string",
  7045. "required": true,
  7046. "description": "",
  7047. "location": "url"
  7048. },
  7049. {
  7050. "name": "repo",
  7051. "type": "string",
  7052. "required": true,
  7053. "description": "",
  7054. "location": "url"
  7055. }
  7056. ],
  7057. "path": "/teams/:team_id/repos/:owner/:repo"
  7058. },
  7059. "editHook": {
  7060. "description": "",
  7061. "documentationUrl": "https://developer.github.com/v3/orgs/hooks/#edit-a-hook",
  7062. "enabledForApps": false,
  7063. "method": "PATCH",
  7064. "name": "Edit a hook",
  7065. "params": [
  7066. {
  7067. "name": "org",
  7068. "type": "string",
  7069. "required": true,
  7070. "description": "",
  7071. "location": "url"
  7072. },
  7073. {
  7074. "name": "hook_id",
  7075. "type": "string",
  7076. "required": true,
  7077. "description": "",
  7078. "location": "url"
  7079. },
  7080. {
  7081. "name": "config",
  7082. "type": "object",
  7083. "description": "Key/value pairs to provide settings for this webhook. [These are defined below](#update-hook-config-params).",
  7084. "required": false,
  7085. "location": "body"
  7086. },
  7087. {
  7088. "name": "config.url",
  7089. "type": "string",
  7090. "description": "The URL to which the payloads will be delivered.",
  7091. "required": true,
  7092. "location": "body"
  7093. },
  7094. {
  7095. "name": "config.content_type",
  7096. "type": "string",
  7097. "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
  7098. "required": false,
  7099. "location": "body"
  7100. },
  7101. {
  7102. "name": "config.secret",
  7103. "type": "string",
  7104. "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.",
  7105. "required": false,
  7106. "location": "body"
  7107. },
  7108. {
  7109. "name": "config.insecure_ssl",
  7110. "type": "string",
  7111. "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
  7112. "required": false,
  7113. "location": "body"
  7114. },
  7115. {
  7116. "name": "events",
  7117. "type": "string[]",
  7118. "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for.",
  7119. "default": "[\"push\"]",
  7120. "required": false,
  7121. "location": "body"
  7122. },
  7123. {
  7124. "name": "active",
  7125. "type": "boolean",
  7126. "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
  7127. "default": true,
  7128. "required": false,
  7129. "location": "body"
  7130. }
  7131. ],
  7132. "path": "/orgs/:org/hooks/:hook_id"
  7133. },
  7134. "editTeam": {
  7135. "description": "To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.\n\n**Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.",
  7136. "documentationUrl": "https://developer.github.com/v3/teams/#edit-team",
  7137. "enabledForApps": true,
  7138. "method": "PATCH",
  7139. "name": "Edit team",
  7140. "params": [
  7141. {
  7142. "name": "team_id",
  7143. "type": "string",
  7144. "required": true,
  7145. "description": "",
  7146. "location": "url"
  7147. },
  7148. {
  7149. "name": "name",
  7150. "type": "string",
  7151. "description": "The name of the team.",
  7152. "required": true,
  7153. "location": "body"
  7154. },
  7155. {
  7156. "name": "description",
  7157. "type": "string",
  7158. "description": "The description of the team.",
  7159. "required": false,
  7160. "location": "body"
  7161. },
  7162. {
  7163. "name": "privacy",
  7164. "type": "string",
  7165. "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` \\- only visible to organization owners and members of this team. \n\\* `closed` \\- visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` \\- visible to all members of this organization.",
  7166. "required": false,
  7167. "location": "body"
  7168. },
  7169. {
  7170. "name": "permission",
  7171. "type": "string",
  7172. "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` \\- team members can pull, but not push to or administer newly-added repositories. \n\\* `push` \\- team members can pull and push, but not administer newly-added repositories. \n\\* `admin` \\- team members can pull, push and administer newly-added repositories.",
  7173. "default": "pull",
  7174. "required": false,
  7175. "enum": [
  7176. "pull",
  7177. "push",
  7178. "admin"
  7179. ],
  7180. "location": "body"
  7181. },
  7182. {
  7183. "name": "parent_team_id",
  7184. "type": "integer",
  7185. "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
  7186. "required": false,
  7187. "location": "body"
  7188. }
  7189. ],
  7190. "path": "/teams/:team_id"
  7191. },
  7192. "get": {
  7193. "description": "To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).",
  7194. "documentationUrl": "https://developer.github.com/v3/orgs/#get-an-organization",
  7195. "enabledForApps": true,
  7196. "method": "GET",
  7197. "name": "Get an organization",
  7198. "params": [
  7199. {
  7200. "name": "org",
  7201. "type": "string",
  7202. "required": true,
  7203. "description": "",
  7204. "location": "url"
  7205. }
  7206. ],
  7207. "path": "/orgs/:org"
  7208. },
  7209. "getAll": {
  7210. "description": "Lists all organizations, in the order that they were created on GitHub.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of organizations.",
  7211. "documentationUrl": "https://developer.github.com/v3/orgs/#list-all-organizations",
  7212. "enabledForApps": true,
  7213. "method": "GET",
  7214. "name": "List all organizations",
  7215. "params": [
  7216. {
  7217. "name": "since",
  7218. "type": "string",
  7219. "description": "The integer ID of the last Organization that you've seen.",
  7220. "required": false,
  7221. "location": "query"
  7222. },
  7223. {
  7224. "name": "per_page",
  7225. "type": "integer",
  7226. "required": false,
  7227. "description": "Results per page (max 100)",
  7228. "default": 30,
  7229. "location": "query"
  7230. },
  7231. {
  7232. "name": "page",
  7233. "type": "integer",
  7234. "required": false,
  7235. "description": "Page number of the results to fetch.",
  7236. "default": 1,
  7237. "location": "query"
  7238. }
  7239. ],
  7240. "path": "/organizations"
  7241. },
  7242. "getBlockedUsers": {
  7243. "description": "List the users blocked by an organization.",
  7244. "documentationUrl": "https://developer.github.com/v3/orgs/blocking/#list-blocked-users",
  7245. "enabledForApps": false,
  7246. "method": "GET",
  7247. "name": "List blocked users",
  7248. "params": [
  7249. {
  7250. "name": "org",
  7251. "type": "string",
  7252. "required": true,
  7253. "description": "",
  7254. "location": "url"
  7255. }
  7256. ],
  7257. "path": "/orgs/:org/blocks"
  7258. },
  7259. "getChildTeams": {
  7260. "description": "At this time, the `hellcat-preview` media type is required to use this endpoint.\n\n",
  7261. "documentationUrl": "https://developer.github.com/v3/teams/#list-child-teams",
  7262. "enabledForApps": true,
  7263. "method": "GET",
  7264. "name": "List child teams",
  7265. "params": [
  7266. {
  7267. "name": "team_id",
  7268. "type": "string",
  7269. "required": true,
  7270. "description": "",
  7271. "location": "url"
  7272. },
  7273. {
  7274. "name": "per_page",
  7275. "type": "integer",
  7276. "required": false,
  7277. "description": "Results per page (max 100)",
  7278. "default": 30,
  7279. "location": "query"
  7280. },
  7281. {
  7282. "name": "page",
  7283. "type": "integer",
  7284. "required": false,
  7285. "description": "Page number of the results to fetch.",
  7286. "default": 1,
  7287. "location": "query"
  7288. }
  7289. ],
  7290. "path": "/teams/:team_id/teams"
  7291. },
  7292. "getForUser": {
  7293. "description": "List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.\n\nThis method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](#list-your-organizations) API instead.",
  7294. "documentationUrl": "https://developer.github.com/v3/orgs/#list-user-organizations",
  7295. "enabledForApps": true,
  7296. "method": "GET",
  7297. "name": "List user organizations",
  7298. "params": [
  7299. {
  7300. "name": "username",
  7301. "type": "string",
  7302. "required": true,
  7303. "description": "",
  7304. "location": "url"
  7305. },
  7306. {
  7307. "name": "per_page",
  7308. "type": "integer",
  7309. "required": false,
  7310. "description": "Results per page (max 100)",
  7311. "default": 30,
  7312. "location": "query"
  7313. },
  7314. {
  7315. "name": "page",
  7316. "type": "integer",
  7317. "required": false,
  7318. "description": "Page number of the results to fetch.",
  7319. "default": 1,
  7320. "location": "query"
  7321. }
  7322. ],
  7323. "path": "/users/:username/orgs"
  7324. },
  7325. "getHook": {
  7326. "description": "",
  7327. "documentationUrl": "https://developer.github.com/v3/orgs/hooks/#get-single-hook",
  7328. "enabledForApps": false,
  7329. "method": "GET",
  7330. "name": "Get single hook",
  7331. "params": [
  7332. {
  7333. "name": "org",
  7334. "type": "string",
  7335. "required": true,
  7336. "description": "",
  7337. "location": "url"
  7338. },
  7339. {
  7340. "name": "hook_id",
  7341. "type": "string",
  7342. "required": true,
  7343. "description": "",
  7344. "location": "url"
  7345. }
  7346. ],
  7347. "path": "/orgs/:org/hooks/:hook_id"
  7348. },
  7349. "getHooks": {
  7350. "description": "",
  7351. "documentationUrl": "https://developer.github.com/v3/orgs/hooks/#list-hooks",
  7352. "enabledForApps": false,
  7353. "method": "GET",
  7354. "name": "List hooks",
  7355. "params": [
  7356. {
  7357. "name": "org",
  7358. "type": "string",
  7359. "required": true,
  7360. "description": "",
  7361. "location": "url"
  7362. },
  7363. {
  7364. "name": "per_page",
  7365. "type": "integer",
  7366. "required": false,
  7367. "description": "Results per page (max 100)",
  7368. "default": 30,
  7369. "location": "query"
  7370. },
  7371. {
  7372. "name": "page",
  7373. "type": "integer",
  7374. "required": false,
  7375. "description": "Page number of the results to fetch.",
  7376. "default": 1,
  7377. "location": "query"
  7378. }
  7379. ],
  7380. "path": "/orgs/:org/hooks"
  7381. },
  7382. "getInvitationTeams": {
  7383. "description": "List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner.",
  7384. "documentationUrl": "https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams",
  7385. "enabledForApps": false,
  7386. "method": "GET",
  7387. "name": "List organization invitation teams",
  7388. "params": [
  7389. {
  7390. "name": "org",
  7391. "type": "string",
  7392. "required": true,
  7393. "description": "",
  7394. "location": "url"
  7395. },
  7396. {
  7397. "name": "invitation_id",
  7398. "type": "string",
  7399. "required": true,
  7400. "description": "",
  7401. "location": "url"
  7402. },
  7403. {
  7404. "name": "per_page",
  7405. "type": "integer",
  7406. "required": false,
  7407. "description": "Results per page (max 100)",
  7408. "default": 30,
  7409. "location": "query"
  7410. },
  7411. {
  7412. "name": "page",
  7413. "type": "integer",
  7414. "required": false,
  7415. "description": "Page number of the results to fetch.",
  7416. "default": 1,
  7417. "location": "query"
  7418. }
  7419. ],
  7420. "path": "/orgs/:org/invitations/:invitation_id/teams"
  7421. },
  7422. "getMembers": {
  7423. "description": "List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.\n\n",
  7424. "documentationUrl": "https://developer.github.com/v3/orgs/members/#members-list",
  7425. "enabledForApps": true,
  7426. "method": "GET",
  7427. "name": "Members list",
  7428. "params": [
  7429. {
  7430. "name": "org",
  7431. "type": "string",
  7432. "required": true,
  7433. "description": "",
  7434. "location": "url"
  7435. },
  7436. {
  7437. "name": "filter",
  7438. "type": "string",
  7439. "description": "Filter members returned in the list. Can be one of: \n\\* `2fa_disabled` \\- Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. \n\\* `all` \\- All members the authenticated user can see.",
  7440. "default": "all",
  7441. "required": false,
  7442. "enum": [
  7443. "2fa_disabled",
  7444. "all"
  7445. ],
  7446. "location": "query"
  7447. },
  7448. {
  7449. "name": "role",
  7450. "type": "string",
  7451. "description": "Filter members returned by their role. Can be one of: \n\\* `all` \\- All members of the organization, regardless of role. \n\\* `admin` \\- Organization owners. \n\\* `member` \\- Non-owner organization members.",
  7452. "default": "all",
  7453. "required": false,
  7454. "enum": [
  7455. "all",
  7456. "admin",
  7457. "member"
  7458. ],
  7459. "location": "query"
  7460. },
  7461. {
  7462. "name": "per_page",
  7463. "type": "integer",
  7464. "required": false,
  7465. "description": "Results per page (max 100)",
  7466. "default": 30,
  7467. "location": "query"
  7468. },
  7469. {
  7470. "name": "page",
  7471. "type": "integer",
  7472. "required": false,
  7473. "description": "Page number of the results to fetch.",
  7474. "default": 1,
  7475. "location": "query"
  7476. }
  7477. ],
  7478. "path": "/orgs/:org/members"
  7479. },
  7480. "getOrgMembership": {
  7481. "description": "In order to get a user's membership with an organization, the authenticated user must be an organization member.",
  7482. "documentationUrl": "https://developer.github.com/v3/orgs/members/#get-organization-membership",
  7483. "enabledForApps": true,
  7484. "method": "GET",
  7485. "name": "Get organization membership",
  7486. "params": [
  7487. {
  7488. "name": "org",
  7489. "type": "string",
  7490. "required": true,
  7491. "description": "",
  7492. "location": "url"
  7493. },
  7494. {
  7495. "name": "username",
  7496. "type": "string",
  7497. "required": true,
  7498. "description": "",
  7499. "location": "url"
  7500. }
  7501. ],
  7502. "path": "/orgs/:org/memberships/:username"
  7503. },
  7504. "getOutsideCollaborators": {
  7505. "description": "List all users who are outside collaborators of an organization.\n\n",
  7506. "documentationUrl": "https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators",
  7507. "enabledForApps": true,
  7508. "method": "GET",
  7509. "name": "List outside collaborators",
  7510. "params": [
  7511. {
  7512. "name": "org",
  7513. "type": "string",
  7514. "required": true,
  7515. "description": "",
  7516. "location": "url"
  7517. },
  7518. {
  7519. "name": "filter",
  7520. "type": "string",
  7521. "description": "Filter the list of outside collaborators. Can be one of: \n\\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. \n\\* `all`: All outside collaborators.",
  7522. "default": "all",
  7523. "required": false,
  7524. "enum": [
  7525. "2fa_disabled",
  7526. "all"
  7527. ],
  7528. "location": "query"
  7529. },
  7530. {
  7531. "name": "per_page",
  7532. "type": "integer",
  7533. "required": false,
  7534. "description": "Results per page (max 100)",
  7535. "default": 30,
  7536. "location": "query"
  7537. },
  7538. {
  7539. "name": "page",
  7540. "type": "integer",
  7541. "required": false,
  7542. "description": "Page number of the results to fetch.",
  7543. "default": 1,
  7544. "location": "query"
  7545. }
  7546. ],
  7547. "path": "/orgs/:org/outside_collaborators"
  7548. },
  7549. "getPendingOrgInvites": {
  7550. "description": "The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.",
  7551. "documentationUrl": "https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations",
  7552. "enabledForApps": true,
  7553. "method": "GET",
  7554. "name": "List pending organization invitations",
  7555. "params": [
  7556. {
  7557. "name": "org",
  7558. "type": "string",
  7559. "required": true,
  7560. "description": "",
  7561. "location": "url"
  7562. },
  7563. {
  7564. "name": "per_page",
  7565. "type": "integer",
  7566. "required": false,
  7567. "description": "Results per page (max 100)",
  7568. "default": 30,
  7569. "location": "query"
  7570. },
  7571. {
  7572. "name": "page",
  7573. "type": "integer",
  7574. "required": false,
  7575. "description": "Page number of the results to fetch.",
  7576. "default": 1,
  7577. "location": "query"
  7578. }
  7579. ],
  7580. "path": "/orgs/:org/invitations"
  7581. },
  7582. "getPendingTeamInvites": {
  7583. "description": "The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.",
  7584. "documentationUrl": "https://developer.github.com/v3/teams/members/#list-pending-team-invitations",
  7585. "enabledForApps": true,
  7586. "method": "GET",
  7587. "name": "List pending team invitations",
  7588. "params": [
  7589. {
  7590. "name": "team_id",
  7591. "type": "string",
  7592. "required": true,
  7593. "description": "",
  7594. "location": "url"
  7595. },
  7596. {
  7597. "name": "per_page",
  7598. "type": "integer",
  7599. "required": false,
  7600. "description": "Results per page (max 100)",
  7601. "default": 30,
  7602. "location": "query"
  7603. },
  7604. {
  7605. "name": "page",
  7606. "type": "integer",
  7607. "required": false,
  7608. "description": "Page number of the results to fetch.",
  7609. "default": 1,
  7610. "location": "query"
  7611. }
  7612. ],
  7613. "path": "/teams/:team_id/invitations"
  7614. },
  7615. "getPublicMembers": {
  7616. "description": "Members of an organization can choose to have their membership publicized or not.",
  7617. "documentationUrl": "https://developer.github.com/v3/orgs/members/#public-members-list",
  7618. "enabledForApps": true,
  7619. "method": "GET",
  7620. "name": "Public members list",
  7621. "params": [
  7622. {
  7623. "name": "org",
  7624. "type": "string",
  7625. "required": true,
  7626. "description": "",
  7627. "location": "url"
  7628. },
  7629. {
  7630. "name": "per_page",
  7631. "type": "integer",
  7632. "required": false,
  7633. "description": "Results per page (max 100)",
  7634. "default": 30,
  7635. "location": "query"
  7636. },
  7637. {
  7638. "name": "page",
  7639. "type": "integer",
  7640. "required": false,
  7641. "description": "Page number of the results to fetch.",
  7642. "default": 1,
  7643. "location": "query"
  7644. }
  7645. ],
  7646. "path": "/orgs/:org/public_members"
  7647. },
  7648. "getTeam": {
  7649. "description": "",
  7650. "documentationUrl": "https://developer.github.com/v3/teams/#get-team",
  7651. "enabledForApps": true,
  7652. "method": "GET",
  7653. "name": "Get team",
  7654. "params": [
  7655. {
  7656. "name": "team_id",
  7657. "type": "string",
  7658. "required": true,
  7659. "description": "",
  7660. "location": "url"
  7661. }
  7662. ],
  7663. "path": "/teams/:team_id"
  7664. },
  7665. "getTeamMembers": {
  7666. "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.",
  7667. "documentationUrl": "https://developer.github.com/v3/teams/members/#list-team-members",
  7668. "enabledForApps": true,
  7669. "method": "GET",
  7670. "name": "List team members",
  7671. "params": [
  7672. {
  7673. "name": "team_id",
  7674. "type": "string",
  7675. "required": true,
  7676. "description": "",
  7677. "location": "url"
  7678. },
  7679. {
  7680. "name": "role",
  7681. "type": "string",
  7682. "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` \\- normal members of the team. \n\\* `maintainer` \\- team maintainers. \n\\* `all` \\- all members of the team.",
  7683. "default": "all",
  7684. "required": false,
  7685. "enum": [
  7686. "member",
  7687. "maintainer",
  7688. "all"
  7689. ],
  7690. "location": "query"
  7691. },
  7692. {
  7693. "name": "per_page",
  7694. "type": "integer",
  7695. "required": false,
  7696. "description": "Results per page (max 100)",
  7697. "default": 30,
  7698. "location": "query"
  7699. },
  7700. {
  7701. "name": "page",
  7702. "type": "integer",
  7703. "required": false,
  7704. "description": "Page number of the results to fetch.",
  7705. "default": 1,
  7706. "location": "query"
  7707. }
  7708. ],
  7709. "path": "/teams/:team_id/members"
  7710. },
  7711. "getTeamMembership": {
  7712. "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team).",
  7713. "documentationUrl": "https://developer.github.com/v3/teams/members/#get-team-membership",
  7714. "enabledForApps": true,
  7715. "method": "GET",
  7716. "name": "Get team membership",
  7717. "params": [
  7718. {
  7719. "name": "team_id",
  7720. "type": "string",
  7721. "required": true,
  7722. "description": "",
  7723. "location": "url"
  7724. },
  7725. {
  7726. "name": "username",
  7727. "type": "string",
  7728. "required": true,
  7729. "description": "",
  7730. "location": "url"
  7731. }
  7732. ],
  7733. "path": "/teams/:team_id/memberships/:username"
  7734. },
  7735. "getTeamRepos": {
  7736. "description": "**Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team.",
  7737. "documentationUrl": "https://developer.github.com/v3/teams/#list-team-repos",
  7738. "enabledForApps": true,
  7739. "method": "GET",
  7740. "name": "List team repos",
  7741. "params": [
  7742. {
  7743. "name": "team_id",
  7744. "type": "string",
  7745. "required": true,
  7746. "description": "",
  7747. "location": "url"
  7748. },
  7749. {
  7750. "name": "per_page",
  7751. "type": "integer",
  7752. "required": false,
  7753. "description": "Results per page (max 100)",
  7754. "default": 30,
  7755. "location": "query"
  7756. },
  7757. {
  7758. "name": "page",
  7759. "type": "integer",
  7760. "required": false,
  7761. "description": "Page number of the results to fetch.",
  7762. "default": 1,
  7763. "location": "query"
  7764. }
  7765. ],
  7766. "path": "/teams/:team_id/repos"
  7767. },
  7768. "getTeams": {
  7769. "description": "",
  7770. "documentationUrl": "https://developer.github.com/v3/teams/#list-teams",
  7771. "enabledForApps": true,
  7772. "method": "GET",
  7773. "name": "List teams",
  7774. "params": [
  7775. {
  7776. "name": "org",
  7777. "type": "string",
  7778. "required": true,
  7779. "description": "",
  7780. "location": "url"
  7781. },
  7782. {
  7783. "name": "per_page",
  7784. "type": "integer",
  7785. "required": false,
  7786. "description": "Results per page (max 100)",
  7787. "default": 30,
  7788. "location": "query"
  7789. },
  7790. {
  7791. "name": "page",
  7792. "type": "integer",
  7793. "required": false,
  7794. "description": "Page number of the results to fetch.",
  7795. "default": 1,
  7796. "location": "query"
  7797. }
  7798. ],
  7799. "path": "/orgs/:org/teams"
  7800. },
  7801. "pingHook": {
  7802. "description": "This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook.",
  7803. "documentationUrl": "https://developer.github.com/v3/orgs/hooks/#ping-a-hook",
  7804. "enabledForApps": false,
  7805. "method": "POST",
  7806. "name": "Ping a hook",
  7807. "params": [
  7808. {
  7809. "name": "org",
  7810. "type": "string",
  7811. "required": true,
  7812. "description": "",
  7813. "location": "url"
  7814. },
  7815. {
  7816. "name": "hook_id",
  7817. "type": "string",
  7818. "required": true,
  7819. "description": "",
  7820. "location": "url"
  7821. }
  7822. ],
  7823. "path": "/orgs/:org/hooks/:hook_id/pings"
  7824. },
  7825. "publicizeMembership": {
  7826. "description": "The user can publicize their own membership. (A user cannot publicize the membership for another user.)\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"",
  7827. "documentationUrl": "https://developer.github.com/v3/orgs/members/#publicize-a-users-membership",
  7828. "enabledForApps": false,
  7829. "method": "PUT",
  7830. "name": "Publicize a user's membership",
  7831. "params": [
  7832. {
  7833. "name": "org",
  7834. "type": "string",
  7835. "required": true,
  7836. "description": "",
  7837. "location": "url"
  7838. },
  7839. {
  7840. "name": "username",
  7841. "type": "string",
  7842. "required": true,
  7843. "description": "",
  7844. "location": "url"
  7845. }
  7846. ],
  7847. "path": "/orgs/:org/public_members/:username"
  7848. },
  7849. "removeMember": {
  7850. "description": "Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.",
  7851. "documentationUrl": "https://developer.github.com/v3/orgs/members/#remove-a-member",
  7852. "enabledForApps": true,
  7853. "method": "DELETE",
  7854. "name": "Remove a member",
  7855. "params": [
  7856. {
  7857. "name": "org",
  7858. "type": "string",
  7859. "required": true,
  7860. "description": "",
  7861. "location": "url"
  7862. },
  7863. {
  7864. "name": "username",
  7865. "type": "string",
  7866. "required": true,
  7867. "description": "",
  7868. "location": "url"
  7869. }
  7870. ],
  7871. "path": "/orgs/:org/members/:username"
  7872. },
  7873. "removeOrgMembership": {
  7874. "description": "In order to remove a user's membership with an organization, the authenticated user must be an organization owner.\n\nIf the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.",
  7875. "documentationUrl": "https://developer.github.com/v3/orgs/members/#remove-organization-membership",
  7876. "enabledForApps": true,
  7877. "method": "DELETE",
  7878. "name": "Remove organization membership",
  7879. "params": [
  7880. {
  7881. "name": "org",
  7882. "type": "string",
  7883. "required": true,
  7884. "description": "",
  7885. "location": "url"
  7886. },
  7887. {
  7888. "name": "username",
  7889. "type": "string",
  7890. "required": true,
  7891. "description": "",
  7892. "location": "url"
  7893. }
  7894. ],
  7895. "path": "/orgs/:org/memberships/:username"
  7896. },
  7897. "removeOutsideCollaborator": {
  7898. "description": "Removing a user from this list will remove them from all the organization's repositories.",
  7899. "documentationUrl": "https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator",
  7900. "enabledForApps": true,
  7901. "method": "DELETE",
  7902. "name": "Remove outside collaborator",
  7903. "params": [
  7904. {
  7905. "name": "org",
  7906. "type": "string",
  7907. "required": true,
  7908. "description": "",
  7909. "location": "url"
  7910. },
  7911. {
  7912. "name": "username",
  7913. "type": "string",
  7914. "required": true,
  7915. "description": "",
  7916. "location": "url"
  7917. }
  7918. ],
  7919. "path": "/orgs/:org/outside_collaborators/:username"
  7920. },
  7921. "removeTeamMembership": {
  7922. "description": "To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team.",
  7923. "documentationUrl": "https://developer.github.com/v3/teams/members/#remove-team-membership",
  7924. "enabledForApps": true,
  7925. "method": "DELETE",
  7926. "name": "Remove team membership",
  7927. "params": [
  7928. {
  7929. "name": "team_id",
  7930. "type": "string",
  7931. "required": true,
  7932. "description": "",
  7933. "location": "url"
  7934. },
  7935. {
  7936. "name": "username",
  7937. "type": "string",
  7938. "required": true,
  7939. "description": "",
  7940. "location": "url"
  7941. }
  7942. ],
  7943. "path": "/teams/:team_id/memberships/:username"
  7944. },
  7945. "unblockUser": {
  7946. "description": "",
  7947. "documentationUrl": "https://developer.github.com/v3/orgs/blocking/#unblock-a-user",
  7948. "enabledForApps": false,
  7949. "method": "DELETE",
  7950. "name": "Unblock a user",
  7951. "params": [
  7952. {
  7953. "name": "org",
  7954. "type": "string",
  7955. "required": true,
  7956. "description": "",
  7957. "location": "url"
  7958. },
  7959. {
  7960. "name": "username",
  7961. "type": "string",
  7962. "required": true,
  7963. "description": "",
  7964. "location": "url"
  7965. }
  7966. ],
  7967. "path": "/orgs/:org/blocks/:username"
  7968. },
  7969. "update": {
  7970. "description": "",
  7971. "documentationUrl": "https://developer.github.com/v3/orgs/#edit-an-organization",
  7972. "enabledForApps": false,
  7973. "method": "PATCH",
  7974. "name": "Edit an organization",
  7975. "params": [
  7976. {
  7977. "name": "org",
  7978. "type": "string",
  7979. "required": true,
  7980. "description": "",
  7981. "location": "url"
  7982. },
  7983. {
  7984. "name": "billing_email",
  7985. "type": "string",
  7986. "description": "Billing email address. This address is not publicized.",
  7987. "required": false,
  7988. "location": "body"
  7989. },
  7990. {
  7991. "name": "company",
  7992. "type": "string",
  7993. "description": "The company name.",
  7994. "required": false,
  7995. "location": "body"
  7996. },
  7997. {
  7998. "name": "email",
  7999. "type": "string",
  8000. "description": "The publicly visible email address.",
  8001. "required": false,
  8002. "location": "body"
  8003. },
  8004. {
  8005. "name": "location",
  8006. "type": "string",
  8007. "description": "The location.",
  8008. "required": false,
  8009. "location": "body"
  8010. },
  8011. {
  8012. "name": "name",
  8013. "type": "string",
  8014. "description": "The shorthand name of the company.",
  8015. "required": false,
  8016. "location": "body"
  8017. },
  8018. {
  8019. "name": "description",
  8020. "type": "string",
  8021. "description": "The description of the company.",
  8022. "required": false,
  8023. "location": "body"
  8024. },
  8025. {
  8026. "name": "has_organization_projects",
  8027. "type": "boolean",
  8028. "description": "Toggles whether organization projects are enabled for the organization.",
  8029. "required": false,
  8030. "location": "body"
  8031. },
  8032. {
  8033. "name": "has_repository_projects",
  8034. "type": "boolean",
  8035. "description": "Toggles whether repository projects are enabled for repositories that belong to the organization.",
  8036. "required": false,
  8037. "location": "body"
  8038. },
  8039. {
  8040. "name": "default_repository_permission",
  8041. "type": "string",
  8042. "description": "Default permission level members have for organization repositories: \n\\* `read` \\- can pull, but not push to or administer this repository. \n\\* `write` \\- can pull and push, but not administer this repository. \n\\* `admin` \\- can pull, push, and administer this repository. \n\\* `none` \\- no permissions granted by default.",
  8043. "default": "read",
  8044. "required": false,
  8045. "enum": [
  8046. "read",
  8047. "write",
  8048. "admin",
  8049. "none"
  8050. ],
  8051. "location": "body"
  8052. },
  8053. {
  8054. "name": "members_can_create_repositories",
  8055. "type": "boolean",
  8056. "description": "Toggles ability of non-admin organization members to create repositories \n\\* `true` \\- all organization members can create repositories. \n\\* `false` \\- only admin members can create repositories.",
  8057. "default": true,
  8058. "required": false,
  8059. "location": "body"
  8060. }
  8061. ],
  8062. "path": "/orgs/:org"
  8063. }
  8064. },
  8065. "projects": {
  8066. "addCollaborator": {
  8067. "description": "Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.",
  8068. "documentationUrl": "https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator",
  8069. "enabledForApps": false,
  8070. "method": "PUT",
  8071. "name": "Add user as a collaborator",
  8072. "params": [
  8073. {
  8074. "name": "project_id",
  8075. "type": "string",
  8076. "required": true,
  8077. "description": "",
  8078. "location": "url"
  8079. },
  8080. {
  8081. "name": "username",
  8082. "type": "string",
  8083. "required": true,
  8084. "description": "",
  8085. "location": "url"
  8086. },
  8087. {
  8088. "name": "permission",
  8089. "type": "string",
  8090. "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\" Can be one of: \n\\* `read` \\- can read, but not write to or administer this project. \n\\* `write` \\- can read and write, but not administer this project. \n\\* `admin` \\- can read, write and administer this project.",
  8091. "default": "write",
  8092. "required": false,
  8093. "enum": [
  8094. "read",
  8095. "write",
  8096. "admin"
  8097. ],
  8098. "location": "body"
  8099. }
  8100. ],
  8101. "path": "/projects/:project_id/collaborators/:username"
  8102. },
  8103. "createOrgProject": {
  8104. "description": "**Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token.",
  8105. "documentationUrl": "https://developer.github.com/v3/projects/#create-an-organization-project",
  8106. "enabledForApps": true,
  8107. "method": "POST",
  8108. "name": "Create an organization project",
  8109. "params": [
  8110. {
  8111. "name": "org",
  8112. "type": "string",
  8113. "required": true,
  8114. "description": "",
  8115. "location": "url"
  8116. },
  8117. {
  8118. "name": "name",
  8119. "type": "string",
  8120. "description": "The name of the project.",
  8121. "required": true,
  8122. "location": "body"
  8123. },
  8124. {
  8125. "name": "body",
  8126. "type": "string",
  8127. "description": "The body of the project.",
  8128. "required": false,
  8129. "location": "body"
  8130. },
  8131. {
  8132. "name": "per_page",
  8133. "type": "integer",
  8134. "required": false,
  8135. "description": "Results per page (max 100)",
  8136. "default": 30,
  8137. "location": "query"
  8138. },
  8139. {
  8140. "name": "page",
  8141. "type": "integer",
  8142. "required": false,
  8143. "description": "Page number of the results to fetch.",
  8144. "default": 1,
  8145. "location": "query"
  8146. }
  8147. ],
  8148. "path": "/orgs/:org/projects"
  8149. },
  8150. "createProjectCard": {
  8151. "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)\" endpoint.",
  8152. "documentationUrl": "https://developer.github.com/v3/projects/cards/#create-a-project-card",
  8153. "enabledForApps": true,
  8154. "method": "POST",
  8155. "name": "Create a project card",
  8156. "params": [
  8157. {
  8158. "name": "column_id",
  8159. "type": "string",
  8160. "required": true,
  8161. "description": "",
  8162. "location": "url"
  8163. },
  8164. {
  8165. "name": "note",
  8166. "type": "string",
  8167. "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.",
  8168. "required": false,
  8169. "location": "body"
  8170. },
  8171. {
  8172. "name": "content_id",
  8173. "type": "integer",
  8174. "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.",
  8175. "required": false,
  8176. "location": "body"
  8177. },
  8178. {
  8179. "name": "content_type",
  8180. "type": "string",
  8181. "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.",
  8182. "required": false,
  8183. "location": "body"
  8184. }
  8185. ],
  8186. "path": "/projects/columns/:column_id/cards"
  8187. },
  8188. "createProjectColumn": {
  8189. "description": "",
  8190. "documentationUrl": "https://developer.github.com/v3/projects/columns/#create-a-project-column",
  8191. "enabledForApps": true,
  8192. "method": "POST",
  8193. "name": "Create a project column",
  8194. "params": [
  8195. {
  8196. "name": "project_id",
  8197. "type": "string",
  8198. "required": true,
  8199. "description": "",
  8200. "location": "url"
  8201. },
  8202. {
  8203. "name": "name",
  8204. "type": "string",
  8205. "description": "The name of the column.",
  8206. "required": true,
  8207. "location": "body"
  8208. }
  8209. ],
  8210. "path": "/projects/:project_id/columns"
  8211. },
  8212. "createRepoProject": {
  8213. "description": "**Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token.",
  8214. "documentationUrl": "https://developer.github.com/v3/projects/#create-a-repository-project",
  8215. "enabledForApps": true,
  8216. "method": "POST",
  8217. "name": "Create a repository project",
  8218. "params": [
  8219. {
  8220. "name": "owner",
  8221. "type": "string",
  8222. "required": true,
  8223. "description": "",
  8224. "location": "url"
  8225. },
  8226. {
  8227. "name": "repo",
  8228. "type": "string",
  8229. "required": true,
  8230. "description": "",
  8231. "location": "url"
  8232. },
  8233. {
  8234. "name": "name",
  8235. "type": "string",
  8236. "description": "The name of the project.",
  8237. "required": true,
  8238. "location": "body"
  8239. },
  8240. {
  8241. "name": "body",
  8242. "type": "string",
  8243. "description": "The body of the project.",
  8244. "required": false,
  8245. "location": "body"
  8246. },
  8247. {
  8248. "name": "per_page",
  8249. "type": "integer",
  8250. "required": false,
  8251. "description": "Results per page (max 100)",
  8252. "default": 30,
  8253. "location": "query"
  8254. },
  8255. {
  8256. "name": "page",
  8257. "type": "integer",
  8258. "required": false,
  8259. "description": "Page number of the results to fetch.",
  8260. "default": 1,
  8261. "location": "query"
  8262. }
  8263. ],
  8264. "path": "/repos/:owner/:repo/projects"
  8265. },
  8266. "deleteProject": {
  8267. "description": "",
  8268. "documentationUrl": "https://developer.github.com/v3/projects/#delete-a-project",
  8269. "enabledForApps": true,
  8270. "method": "DELETE",
  8271. "name": "Delete a project",
  8272. "params": [
  8273. {
  8274. "name": "project_id",
  8275. "type": "string",
  8276. "required": true,
  8277. "description": "",
  8278. "location": "url"
  8279. }
  8280. ],
  8281. "path": "/projects/:project_id"
  8282. },
  8283. "deleteProjectCard": {
  8284. "description": "",
  8285. "documentationUrl": "https://developer.github.com/v3/projects/cards/#delete-a-project-card",
  8286. "enabledForApps": true,
  8287. "method": "DELETE",
  8288. "name": "Delete a project card",
  8289. "params": [
  8290. {
  8291. "name": "card_id",
  8292. "type": "string",
  8293. "required": true,
  8294. "description": "",
  8295. "location": "url"
  8296. }
  8297. ],
  8298. "path": "/projects/columns/cards/:card_id"
  8299. },
  8300. "deleteProjectColumn": {
  8301. "description": "",
  8302. "documentationUrl": "https://developer.github.com/v3/projects/columns/#delete-a-project-column",
  8303. "enabledForApps": true,
  8304. "method": "DELETE",
  8305. "name": "Delete a project column",
  8306. "params": [
  8307. {
  8308. "name": "column_id",
  8309. "type": "string",
  8310. "required": true,
  8311. "description": "",
  8312. "location": "url"
  8313. }
  8314. ],
  8315. "path": "/projects/columns/:column_id"
  8316. },
  8317. "getCollaborators": {
  8318. "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.",
  8319. "documentationUrl": "https://developer.github.com/v3/projects/collaborators/#list-collaborators",
  8320. "enabledForApps": false,
  8321. "method": "GET",
  8322. "name": "List collaborators",
  8323. "params": [
  8324. {
  8325. "name": "project_id",
  8326. "type": "string",
  8327. "required": true,
  8328. "description": "",
  8329. "location": "url"
  8330. },
  8331. {
  8332. "name": "affiliation",
  8333. "type": "string",
  8334. "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.",
  8335. "default": "all",
  8336. "required": false,
  8337. "enum": [
  8338. "outside",
  8339. "direct",
  8340. "all"
  8341. ],
  8342. "location": "query"
  8343. },
  8344. {
  8345. "name": "per_page",
  8346. "type": "integer",
  8347. "required": false,
  8348. "description": "Results per page (max 100)",
  8349. "default": 30,
  8350. "location": "query"
  8351. },
  8352. {
  8353. "name": "page",
  8354. "type": "integer",
  8355. "required": false,
  8356. "description": "Page number of the results to fetch.",
  8357. "default": 1,
  8358. "location": "query"
  8359. }
  8360. ],
  8361. "path": "/projects/:project_id/collaborators"
  8362. },
  8363. "getOrgProjects": {
  8364. "description": "**Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token.",
  8365. "documentationUrl": "https://developer.github.com/v3/projects/#list-organization-projects",
  8366. "enabledForApps": true,
  8367. "method": "GET",
  8368. "name": "List organization projects",
  8369. "params": [
  8370. {
  8371. "name": "org",
  8372. "type": "string",
  8373. "required": true,
  8374. "description": "",
  8375. "location": "url"
  8376. },
  8377. {
  8378. "name": "state",
  8379. "type": "string",
  8380. "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
  8381. "default": "open",
  8382. "required": false,
  8383. "enum": [
  8384. "open",
  8385. "closed",
  8386. "all"
  8387. ],
  8388. "location": "query"
  8389. },
  8390. {
  8391. "name": "per_page",
  8392. "type": "integer",
  8393. "required": false,
  8394. "description": "Results per page (max 100)",
  8395. "default": 30,
  8396. "location": "query"
  8397. },
  8398. {
  8399. "name": "page",
  8400. "type": "integer",
  8401. "required": false,
  8402. "description": "Page number of the results to fetch.",
  8403. "default": 1,
  8404. "location": "query"
  8405. }
  8406. ],
  8407. "path": "/orgs/:org/projects"
  8408. },
  8409. "getProject": {
  8410. "description": "**Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token.",
  8411. "documentationUrl": "https://developer.github.com/v3/projects/#get-a-project",
  8412. "enabledForApps": true,
  8413. "method": "GET",
  8414. "name": "Get a project",
  8415. "params": [
  8416. {
  8417. "name": "project_id",
  8418. "type": "string",
  8419. "required": true,
  8420. "description": "",
  8421. "location": "url"
  8422. },
  8423. {
  8424. "name": "per_page",
  8425. "type": "integer",
  8426. "required": false,
  8427. "description": "Results per page (max 100)",
  8428. "default": 30,
  8429. "location": "query"
  8430. },
  8431. {
  8432. "name": "page",
  8433. "type": "integer",
  8434. "required": false,
  8435. "description": "Page number of the results to fetch.",
  8436. "default": 1,
  8437. "location": "query"
  8438. }
  8439. ],
  8440. "path": "/projects/:project_id"
  8441. },
  8442. "getProjectCard": {
  8443. "description": "",
  8444. "documentationUrl": "https://developer.github.com/v3/projects/cards/#get-a-project-card",
  8445. "enabledForApps": true,
  8446. "method": "GET",
  8447. "name": "Get a project card",
  8448. "params": [
  8449. {
  8450. "name": "card_id",
  8451. "type": "string",
  8452. "required": true,
  8453. "description": "",
  8454. "location": "url"
  8455. }
  8456. ],
  8457. "path": "/projects/columns/cards/:card_id"
  8458. },
  8459. "getProjectCards": {
  8460. "description": "",
  8461. "documentationUrl": "https://developer.github.com/v3/projects/cards/#list-project-cards",
  8462. "enabledForApps": true,
  8463. "method": "GET",
  8464. "name": "List project cards",
  8465. "params": [
  8466. {
  8467. "name": "column_id",
  8468. "type": "string",
  8469. "required": true,
  8470. "description": "",
  8471. "location": "url"
  8472. },
  8473. {
  8474. "name": "per_page",
  8475. "type": "integer",
  8476. "required": false,
  8477. "description": "Results per page (max 100)",
  8478. "default": 30,
  8479. "location": "query"
  8480. },
  8481. {
  8482. "name": "page",
  8483. "type": "integer",
  8484. "required": false,
  8485. "description": "Page number of the results to fetch.",
  8486. "default": 1,
  8487. "location": "query"
  8488. }
  8489. ],
  8490. "path": "/projects/columns/:column_id/cards"
  8491. },
  8492. "getProjectColumn": {
  8493. "description": "",
  8494. "documentationUrl": "https://developer.github.com/v3/projects/columns/#get-a-project-column",
  8495. "enabledForApps": true,
  8496. "method": "GET",
  8497. "name": "Get a project column",
  8498. "params": [
  8499. {
  8500. "name": "column_id",
  8501. "type": "string",
  8502. "required": true,
  8503. "description": "",
  8504. "location": "url"
  8505. }
  8506. ],
  8507. "path": "/projects/columns/:column_id"
  8508. },
  8509. "getProjectColumns": {
  8510. "description": "",
  8511. "documentationUrl": "https://developer.github.com/v3/projects/columns/#list-project-columns",
  8512. "enabledForApps": true,
  8513. "method": "GET",
  8514. "name": "List project columns",
  8515. "params": [
  8516. {
  8517. "name": "project_id",
  8518. "type": "string",
  8519. "required": true,
  8520. "description": "",
  8521. "location": "url"
  8522. },
  8523. {
  8524. "name": "per_page",
  8525. "type": "integer",
  8526. "required": false,
  8527. "description": "Results per page (max 100)",
  8528. "default": 30,
  8529. "location": "query"
  8530. },
  8531. {
  8532. "name": "page",
  8533. "type": "integer",
  8534. "required": false,
  8535. "description": "Page number of the results to fetch.",
  8536. "default": 1,
  8537. "location": "query"
  8538. }
  8539. ],
  8540. "path": "/projects/:project_id/columns"
  8541. },
  8542. "getRepoProjects": {
  8543. "description": "**Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token.",
  8544. "documentationUrl": "https://developer.github.com/v3/projects/#list-repository-projects",
  8545. "enabledForApps": true,
  8546. "method": "GET",
  8547. "name": "List repository projects",
  8548. "params": [
  8549. {
  8550. "name": "owner",
  8551. "type": "string",
  8552. "required": true,
  8553. "description": "",
  8554. "location": "url"
  8555. },
  8556. {
  8557. "name": "repo",
  8558. "type": "string",
  8559. "required": true,
  8560. "description": "",
  8561. "location": "url"
  8562. },
  8563. {
  8564. "name": "state",
  8565. "type": "string",
  8566. "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
  8567. "default": "open",
  8568. "required": false,
  8569. "enum": [
  8570. "open",
  8571. "closed",
  8572. "all"
  8573. ],
  8574. "location": "query"
  8575. },
  8576. {
  8577. "name": "per_page",
  8578. "type": "integer",
  8579. "required": false,
  8580. "description": "Results per page (max 100)",
  8581. "default": 30,
  8582. "location": "query"
  8583. },
  8584. {
  8585. "name": "page",
  8586. "type": "integer",
  8587. "required": false,
  8588. "description": "Page number of the results to fetch.",
  8589. "default": 1,
  8590. "location": "query"
  8591. }
  8592. ],
  8593. "path": "/repos/:owner/:repo/projects"
  8594. },
  8595. "getUserPermissionLevel": {
  8596. "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.",
  8597. "documentationUrl": "https://developer.github.com/v3/projects/collaborators/#review-a-users-permission-level",
  8598. "enabledForApps": false,
  8599. "method": "GET",
  8600. "name": "Review a user's permission level",
  8601. "params": [
  8602. {
  8603. "name": "project_id",
  8604. "type": "string",
  8605. "required": true,
  8606. "description": "",
  8607. "location": "url"
  8608. },
  8609. {
  8610. "name": "username",
  8611. "type": "string",
  8612. "required": true,
  8613. "description": "",
  8614. "location": "url"
  8615. }
  8616. ],
  8617. "path": "/projects/:project_id/collaborators/:username/permission"
  8618. },
  8619. "moveProjectCard": {
  8620. "description": "",
  8621. "documentationUrl": "https://developer.github.com/v3/projects/cards/#move-a-project-card",
  8622. "enabledForApps": true,
  8623. "method": "POST",
  8624. "name": "Move a project card",
  8625. "params": [
  8626. {
  8627. "name": "card_id",
  8628. "type": "string",
  8629. "required": true,
  8630. "description": "",
  8631. "location": "url"
  8632. },
  8633. {
  8634. "name": "position",
  8635. "type": "string",
  8636. "description": "Can be one of `top`, `bottom`, or `after:<card_id>`, where `<card_id>` is the `id` value of a card in the same column, or in the new column specified by `column_id`.",
  8637. "required": true,
  8638. "enum": [
  8639. "top",
  8640. "bottom",
  8641. "after:<card_id>"
  8642. ],
  8643. "location": "body"
  8644. },
  8645. {
  8646. "name": "column_id",
  8647. "type": "integer",
  8648. "description": "The `id` value of a column in the same project.",
  8649. "required": false,
  8650. "location": "body"
  8651. }
  8652. ],
  8653. "path": "/projects/columns/cards/:card_id/moves"
  8654. },
  8655. "moveProjectColumn": {
  8656. "description": "",
  8657. "documentationUrl": "https://developer.github.com/v3/projects/columns/#move-a-project-column",
  8658. "enabledForApps": true,
  8659. "method": "POST",
  8660. "name": "Move a project column",
  8661. "params": [
  8662. {
  8663. "name": "column_id",
  8664. "type": "string",
  8665. "required": true,
  8666. "description": "",
  8667. "location": "url"
  8668. },
  8669. {
  8670. "name": "position",
  8671. "type": "string",
  8672. "description": "Can be one of `first`, `last`, or `after:<column_id>`, where `<column_id>` is the `id` value of a column in the same project.",
  8673. "required": true,
  8674. "enum": [
  8675. "first",
  8676. "last",
  8677. "after:<column_id>"
  8678. ],
  8679. "location": "body"
  8680. }
  8681. ],
  8682. "path": "/projects/columns/:column_id/moves"
  8683. },
  8684. "removeCollaborator": {
  8685. "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.",
  8686. "documentationUrl": "https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator",
  8687. "enabledForApps": false,
  8688. "method": "DELETE",
  8689. "name": "Remove user as a collaborator",
  8690. "params": [
  8691. {
  8692. "name": "project_id",
  8693. "type": "string",
  8694. "required": true,
  8695. "description": "",
  8696. "location": "url"
  8697. },
  8698. {
  8699. "name": "username",
  8700. "type": "string",
  8701. "required": true,
  8702. "description": "",
  8703. "location": "url"
  8704. }
  8705. ],
  8706. "path": "/projects/:project_id/collaborators/:username"
  8707. },
  8708. "updateProject": {
  8709. "description": "**Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token.",
  8710. "documentationUrl": "https://developer.github.com/v3/projects/#update-a-project",
  8711. "enabledForApps": true,
  8712. "method": "PATCH",
  8713. "name": "Update a project",
  8714. "params": [
  8715. {
  8716. "name": "project_id",
  8717. "type": "string",
  8718. "required": true,
  8719. "description": "",
  8720. "location": "url"
  8721. },
  8722. {
  8723. "name": "name",
  8724. "type": "string",
  8725. "description": "The name of the project.",
  8726. "required": false,
  8727. "location": "body"
  8728. },
  8729. {
  8730. "name": "body",
  8731. "type": "string",
  8732. "description": "The body of the project.",
  8733. "required": false,
  8734. "location": "body"
  8735. },
  8736. {
  8737. "name": "state",
  8738. "type": "string",
  8739. "description": "State of the project. Either `open` or `closed`.",
  8740. "required": false,
  8741. "enum": [
  8742. "open",
  8743. "closed"
  8744. ],
  8745. "location": "body"
  8746. },
  8747. {
  8748. "name": "organization_permission",
  8749. "type": "string",
  8750. "description": "The permission level that all members of the project's organization will have on this project. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. Updating a project's organization permission requires `admin` access to the project. Setting the organization permission is only available for organization projects.",
  8751. "required": false,
  8752. "location": "body"
  8753. },
  8754. {
  8755. "name": "public",
  8756. "type": "boolean",
  8757. "description": "Sets visibility of the project within the organization. Updating a project's visibility requires `admin` access to the project. Setting visibility is only available for organization projects. Can be one of: \n\\* `true` \\- Anyone that can view the organization can see the project. \n\\* `false` \\- The project must be an organization project to set project visibility.",
  8758. "required": false,
  8759. "location": "body"
  8760. },
  8761. {
  8762. "name": "per_page",
  8763. "type": "integer",
  8764. "required": false,
  8765. "description": "Results per page (max 100)",
  8766. "default": 30,
  8767. "location": "query"
  8768. },
  8769. {
  8770. "name": "page",
  8771. "type": "integer",
  8772. "required": false,
  8773. "description": "Page number of the results to fetch.",
  8774. "default": 1,
  8775. "location": "query"
  8776. }
  8777. ],
  8778. "path": "/projects/:project_id"
  8779. },
  8780. "updateProjectCard": {
  8781. "description": "",
  8782. "documentationUrl": "https://developer.github.com/v3/projects/cards/#update-a-project-card",
  8783. "enabledForApps": true,
  8784. "method": "PATCH",
  8785. "name": "Update a project card",
  8786. "params": [
  8787. {
  8788. "name": "card_id",
  8789. "type": "string",
  8790. "required": true,
  8791. "description": "",
  8792. "location": "url"
  8793. },
  8794. {
  8795. "name": "note",
  8796. "type": "string",
  8797. "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.",
  8798. "required": false,
  8799. "location": "body"
  8800. }
  8801. ],
  8802. "path": "/projects/columns/cards/:card_id"
  8803. },
  8804. "updateProjectColumn": {
  8805. "description": "",
  8806. "documentationUrl": "https://developer.github.com/v3/projects/columns/#update-a-project-column",
  8807. "enabledForApps": true,
  8808. "method": "PATCH",
  8809. "name": "Update a project column",
  8810. "params": [
  8811. {
  8812. "name": "column_id",
  8813. "type": "string",
  8814. "required": true,
  8815. "description": "",
  8816. "location": "url"
  8817. },
  8818. {
  8819. "name": "name",
  8820. "type": "string",
  8821. "description": "The new name of the column.",
  8822. "required": true,
  8823. "location": "body"
  8824. }
  8825. ],
  8826. "path": "/projects/columns/:column_id"
  8827. }
  8828. },
  8829. "pullRequests": {
  8830. "checkMerged": {
  8831. "description": "",
  8832. "documentationUrl": "https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged",
  8833. "enabledForApps": true,
  8834. "method": "GET",
  8835. "name": "Get if a pull request has been merged",
  8836. "params": [
  8837. {
  8838. "name": "owner",
  8839. "type": "string",
  8840. "required": true,
  8841. "description": "",
  8842. "location": "url"
  8843. },
  8844. {
  8845. "name": "repo",
  8846. "type": "string",
  8847. "required": true,
  8848. "description": "",
  8849. "location": "url"
  8850. },
  8851. {
  8852. "name": "number",
  8853. "type": "integer",
  8854. "required": true,
  8855. "description": "",
  8856. "location": "url"
  8857. }
  8858. ],
  8859. "path": "/repos/:owner/:repo/pulls/:number/merge"
  8860. },
  8861. "create": {
  8862. "description": "**Note:** To open a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request.",
  8863. "documentationUrl": "https://developer.github.com/v3/pulls/#create-a-pull-request",
  8864. "enabledForApps": true,
  8865. "method": "POST",
  8866. "name": "Create a pull request",
  8867. "params": [
  8868. {
  8869. "name": "owner",
  8870. "type": "string",
  8871. "required": true,
  8872. "description": "",
  8873. "location": "url"
  8874. },
  8875. {
  8876. "name": "repo",
  8877. "type": "string",
  8878. "required": true,
  8879. "description": "",
  8880. "location": "url"
  8881. },
  8882. {
  8883. "name": "title",
  8884. "type": "string",
  8885. "description": "The title of the pull request.",
  8886. "required": true,
  8887. "location": "body"
  8888. },
  8889. {
  8890. "name": "head",
  8891. "type": "string",
  8892. "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
  8893. "required": true,
  8894. "location": "body"
  8895. },
  8896. {
  8897. "name": "base",
  8898. "type": "string",
  8899. "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
  8900. "required": true,
  8901. "location": "body"
  8902. },
  8903. {
  8904. "name": "body",
  8905. "type": "string",
  8906. "description": "The contents of the pull request.",
  8907. "required": false,
  8908. "location": "body"
  8909. },
  8910. {
  8911. "name": "maintainer_can_modify",
  8912. "type": "boolean",
  8913. "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
  8914. "required": false,
  8915. "location": "body"
  8916. }
  8917. ],
  8918. "path": "/repos/:owner/:repo/pulls"
  8919. },
  8920. "createComment": {
  8921. "description": "**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
  8922. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#create-a-comment",
  8923. "enabledForApps": true,
  8924. "method": "POST",
  8925. "name": "Create a comment",
  8926. "params": [
  8927. {
  8928. "name": "owner",
  8929. "type": "string",
  8930. "required": true,
  8931. "description": "",
  8932. "location": "url"
  8933. },
  8934. {
  8935. "name": "repo",
  8936. "type": "string",
  8937. "required": true,
  8938. "description": "",
  8939. "location": "url"
  8940. },
  8941. {
  8942. "name": "number",
  8943. "type": "integer",
  8944. "required": true,
  8945. "description": "",
  8946. "location": "url"
  8947. },
  8948. {
  8949. "name": "body",
  8950. "type": "string",
  8951. "description": "The text of the comment.",
  8952. "required": true,
  8953. "location": "body"
  8954. },
  8955. {
  8956. "name": "commit_id",
  8957. "type": "string",
  8958. "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
  8959. "required": true,
  8960. "location": "body"
  8961. },
  8962. {
  8963. "name": "path",
  8964. "type": "string",
  8965. "description": "The relative path to the file that necessitates a comment.",
  8966. "required": true,
  8967. "location": "body"
  8968. },
  8969. {
  8970. "name": "position",
  8971. "type": "integer",
  8972. "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
  8973. "required": true,
  8974. "location": "body"
  8975. }
  8976. ],
  8977. "path": "/repos/:owner/:repo/pulls/:number/comments"
  8978. },
  8979. "createCommentReply": {
  8980. "description": "**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
  8981. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#create-a-comment",
  8982. "enabledForApps": true,
  8983. "method": "POST",
  8984. "name": "Create a comment (alternative)",
  8985. "params": [
  8986. {
  8987. "name": "owner",
  8988. "type": "string",
  8989. "required": true,
  8990. "description": "",
  8991. "location": "url"
  8992. },
  8993. {
  8994. "name": "repo",
  8995. "type": "string",
  8996. "required": true,
  8997. "description": "",
  8998. "location": "url"
  8999. },
  9000. {
  9001. "name": "number",
  9002. "type": "integer",
  9003. "required": true,
  9004. "description": "",
  9005. "location": "url"
  9006. },
  9007. {
  9008. "name": "body",
  9009. "type": "string",
  9010. "description": "The text of the comment.",
  9011. "required": true,
  9012. "location": "body"
  9013. },
  9014. {
  9015. "name": "in_reply_to",
  9016. "type": "integer",
  9017. "description": "The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported.",
  9018. "required": true,
  9019. "location": "body"
  9020. }
  9021. ],
  9022. "path": "/repos/:owner/:repo/pulls/:number/comments"
  9023. },
  9024. "createFromIssue": {
  9025. "description": "**Note:** To open a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request.",
  9026. "documentationUrl": "https://developer.github.com/v3/pulls/#create-a-pull-request",
  9027. "enabledForApps": true,
  9028. "method": "POST",
  9029. "name": "Create a pull request",
  9030. "params": [
  9031. {
  9032. "name": "owner",
  9033. "type": "string",
  9034. "required": true,
  9035. "description": "",
  9036. "location": "url"
  9037. },
  9038. {
  9039. "name": "repo",
  9040. "type": "string",
  9041. "required": true,
  9042. "description": "",
  9043. "location": "url"
  9044. },
  9045. {
  9046. "name": "title",
  9047. "type": "string",
  9048. "description": "The title of the pull request.",
  9049. "required": true,
  9050. "location": "body"
  9051. },
  9052. {
  9053. "name": "head",
  9054. "type": "string",
  9055. "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
  9056. "required": true,
  9057. "location": "body"
  9058. },
  9059. {
  9060. "name": "base",
  9061. "type": "string",
  9062. "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
  9063. "required": true,
  9064. "location": "body"
  9065. },
  9066. {
  9067. "name": "body",
  9068. "type": "string",
  9069. "description": "The contents of the pull request.",
  9070. "required": false,
  9071. "location": "body"
  9072. },
  9073. {
  9074. "name": "maintainer_can_modify",
  9075. "type": "boolean",
  9076. "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
  9077. "required": false,
  9078. "location": "body"
  9079. }
  9080. ],
  9081. "path": "/repos/:owner/:repo/pulls"
  9082. },
  9083. "createReview": {
  9084. "description": "**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
  9085. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review",
  9086. "enabledForApps": true,
  9087. "method": "POST",
  9088. "name": "Create a pull request review",
  9089. "params": [
  9090. {
  9091. "name": "owner",
  9092. "type": "string",
  9093. "required": true,
  9094. "description": "",
  9095. "location": "url"
  9096. },
  9097. {
  9098. "name": "repo",
  9099. "type": "string",
  9100. "required": true,
  9101. "description": "",
  9102. "location": "url"
  9103. },
  9104. {
  9105. "name": "number",
  9106. "type": "integer",
  9107. "required": true,
  9108. "description": "",
  9109. "location": "url"
  9110. },
  9111. {
  9112. "name": "commit_id",
  9113. "type": "string",
  9114. "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
  9115. "required": false,
  9116. "location": "body"
  9117. },
  9118. {
  9119. "name": "body",
  9120. "type": "string",
  9121. "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
  9122. "required": false,
  9123. "location": "body"
  9124. },
  9125. {
  9126. "name": "event",
  9127. "type": "string",
  9128. "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.",
  9129. "required": false,
  9130. "enum": [
  9131. "APPROVE",
  9132. "REQUEST_CHANGES",
  9133. "COMMENT"
  9134. ],
  9135. "location": "body"
  9136. },
  9137. {
  9138. "name": "comments",
  9139. "type": "object[]",
  9140. "description": "Use the following table to specify the location, destination, and contents of the draft review comment.",
  9141. "required": false,
  9142. "location": "body"
  9143. },
  9144. {
  9145. "name": "comments[].path",
  9146. "type": "string",
  9147. "description": "**Required.** The relative path to the file that necessitates a review comment.",
  9148. "required": false,
  9149. "location": "body"
  9150. },
  9151. {
  9152. "name": "comments[].position",
  9153. "type": "integer",
  9154. "description": "**Required.** The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
  9155. "required": false,
  9156. "location": "body"
  9157. },
  9158. {
  9159. "name": "comments[].body",
  9160. "type": "string",
  9161. "description": "**Required.** Text of the review comment.",
  9162. "required": false,
  9163. "location": "body"
  9164. }
  9165. ],
  9166. "path": "/repos/:owner/:repo/pulls/:number/reviews"
  9167. },
  9168. "createReviewRequest": {
  9169. "description": "",
  9170. "documentationUrl": "https://developer.github.com/v3/pulls/review_requests/#create-a-review-request",
  9171. "enabledForApps": true,
  9172. "method": "POST",
  9173. "name": "Create a review request",
  9174. "params": [
  9175. {
  9176. "name": "owner",
  9177. "type": "string",
  9178. "required": true,
  9179. "description": "",
  9180. "location": "url"
  9181. },
  9182. {
  9183. "name": "repo",
  9184. "type": "string",
  9185. "required": true,
  9186. "description": "",
  9187. "location": "url"
  9188. },
  9189. {
  9190. "name": "number",
  9191. "type": "integer",
  9192. "required": true,
  9193. "description": "",
  9194. "location": "url"
  9195. },
  9196. {
  9197. "name": "reviewers",
  9198. "type": "string[]",
  9199. "description": "An array of user `login`s that will be requested.",
  9200. "required": false,
  9201. "location": "body"
  9202. },
  9203. {
  9204. "name": "team_reviewers",
  9205. "type": "string[]",
  9206. "description": "An array of team `slug`s that will be requested.",
  9207. "required": false,
  9208. "location": "body"
  9209. }
  9210. ],
  9211. "path": "/repos/:owner/:repo/pulls/:number/requested_reviewers"
  9212. },
  9213. "deleteComment": {
  9214. "description": "",
  9215. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#delete-a-comment",
  9216. "enabledForApps": true,
  9217. "method": "DELETE",
  9218. "name": "Delete a comment",
  9219. "params": [
  9220. {
  9221. "name": "owner",
  9222. "type": "string",
  9223. "required": true,
  9224. "description": "",
  9225. "location": "url"
  9226. },
  9227. {
  9228. "name": "repo",
  9229. "type": "string",
  9230. "required": true,
  9231. "description": "",
  9232. "location": "url"
  9233. },
  9234. {
  9235. "name": "comment_id",
  9236. "type": "string",
  9237. "required": true,
  9238. "description": "",
  9239. "location": "url"
  9240. }
  9241. ],
  9242. "path": "/repos/:owner/:repo/pulls/comments/:comment_id"
  9243. },
  9244. "deletePendingReview": {
  9245. "description": "",
  9246. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review",
  9247. "enabledForApps": true,
  9248. "method": "DELETE",
  9249. "name": "Delete a pending review",
  9250. "params": [
  9251. {
  9252. "name": "owner",
  9253. "type": "string",
  9254. "required": true,
  9255. "description": "",
  9256. "location": "url"
  9257. },
  9258. {
  9259. "name": "repo",
  9260. "type": "string",
  9261. "required": true,
  9262. "description": "",
  9263. "location": "url"
  9264. },
  9265. {
  9266. "name": "number",
  9267. "type": "integer",
  9268. "required": true,
  9269. "description": "",
  9270. "location": "url"
  9271. },
  9272. {
  9273. "name": "review_id",
  9274. "type": "string",
  9275. "required": true,
  9276. "description": "",
  9277. "location": "url"
  9278. }
  9279. ],
  9280. "path": "/repos/:owner/:repo/pulls/:number/reviews/:review_id"
  9281. },
  9282. "deleteReviewRequest": {
  9283. "description": "",
  9284. "documentationUrl": "https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request",
  9285. "enabledForApps": true,
  9286. "method": "DELETE",
  9287. "name": "Delete a review request",
  9288. "params": [
  9289. {
  9290. "name": "owner",
  9291. "type": "string",
  9292. "required": true,
  9293. "description": "",
  9294. "location": "url"
  9295. },
  9296. {
  9297. "name": "repo",
  9298. "type": "string",
  9299. "required": true,
  9300. "description": "",
  9301. "location": "url"
  9302. },
  9303. {
  9304. "name": "number",
  9305. "type": "integer",
  9306. "required": true,
  9307. "description": "",
  9308. "location": "url"
  9309. },
  9310. {
  9311. "name": "reviewers",
  9312. "type": "string[]",
  9313. "description": "An array of user `login`s that will be removed.",
  9314. "required": false,
  9315. "location": "body"
  9316. },
  9317. {
  9318. "name": "team_reviewers",
  9319. "type": "string[]",
  9320. "description": "An array of team `slug`s that will be removed.",
  9321. "required": false,
  9322. "location": "body"
  9323. }
  9324. ],
  9325. "path": "/repos/:owner/:repo/pulls/:number/requested_reviewers"
  9326. },
  9327. "dismissReview": {
  9328. "description": "**Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.",
  9329. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review",
  9330. "enabledForApps": true,
  9331. "method": "PUT",
  9332. "name": "Dismiss a pull request review",
  9333. "params": [
  9334. {
  9335. "name": "owner",
  9336. "type": "string",
  9337. "required": true,
  9338. "description": "",
  9339. "location": "url"
  9340. },
  9341. {
  9342. "name": "repo",
  9343. "type": "string",
  9344. "required": true,
  9345. "description": "",
  9346. "location": "url"
  9347. },
  9348. {
  9349. "name": "number",
  9350. "type": "integer",
  9351. "required": true,
  9352. "description": "",
  9353. "location": "url"
  9354. },
  9355. {
  9356. "name": "review_id",
  9357. "type": "string",
  9358. "required": true,
  9359. "description": "",
  9360. "location": "url"
  9361. },
  9362. {
  9363. "name": "message",
  9364. "type": "string",
  9365. "description": "**Required.** The message for the pull request review dismissal",
  9366. "required": false,
  9367. "location": "body"
  9368. }
  9369. ],
  9370. "path": "/repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals"
  9371. },
  9372. "editComment": {
  9373. "description": "",
  9374. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#edit-a-comment",
  9375. "enabledForApps": true,
  9376. "method": "PATCH",
  9377. "name": "Edit a comment",
  9378. "params": [
  9379. {
  9380. "name": "owner",
  9381. "type": "string",
  9382. "required": true,
  9383. "description": "",
  9384. "location": "url"
  9385. },
  9386. {
  9387. "name": "repo",
  9388. "type": "string",
  9389. "required": true,
  9390. "description": "",
  9391. "location": "url"
  9392. },
  9393. {
  9394. "name": "comment_id",
  9395. "type": "string",
  9396. "required": true,
  9397. "description": "",
  9398. "location": "url"
  9399. },
  9400. {
  9401. "name": "body",
  9402. "type": "string",
  9403. "description": "The text of the comment.",
  9404. "required": true,
  9405. "location": "body"
  9406. }
  9407. ],
  9408. "path": "/repos/:owner/:repo/pulls/comments/:comment_id"
  9409. },
  9410. "get": {
  9411. "description": "Lists details of a pull request by providing its number.\n\nWhen you get, [create](https://developer.github.com/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see \"[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)\".\n\nThe value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.\n\nThe value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:\n\n* If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.\n* If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.\n* If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.\n\nPass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.",
  9412. "documentationUrl": "https://developer.github.com/v3/pulls/#get-a-single-pull-request",
  9413. "enabledForApps": true,
  9414. "method": "GET",
  9415. "name": "Get a single pull request",
  9416. "params": [
  9417. {
  9418. "name": "owner",
  9419. "type": "string",
  9420. "required": true,
  9421. "description": "",
  9422. "location": "url"
  9423. },
  9424. {
  9425. "name": "repo",
  9426. "type": "string",
  9427. "required": true,
  9428. "description": "",
  9429. "location": "url"
  9430. },
  9431. {
  9432. "name": "number",
  9433. "type": "integer",
  9434. "required": true,
  9435. "description": "",
  9436. "location": "url"
  9437. }
  9438. ],
  9439. "path": "/repos/:owner/:repo/pulls/:number"
  9440. },
  9441. "getAll": {
  9442. "description": "",
  9443. "documentationUrl": "https://developer.github.com/v3/pulls/#list-pull-requests",
  9444. "enabledForApps": true,
  9445. "method": "GET",
  9446. "name": "List pull requests",
  9447. "params": [
  9448. {
  9449. "name": "owner",
  9450. "type": "string",
  9451. "required": true,
  9452. "description": "",
  9453. "location": "url"
  9454. },
  9455. {
  9456. "name": "repo",
  9457. "type": "string",
  9458. "required": true,
  9459. "description": "",
  9460. "location": "url"
  9461. },
  9462. {
  9463. "name": "state",
  9464. "type": "string",
  9465. "description": "Either `open`, `closed`, or `all` to filter by state.",
  9466. "default": "open",
  9467. "required": false,
  9468. "enum": [
  9469. "open",
  9470. "closed",
  9471. "all"
  9472. ],
  9473. "location": "query"
  9474. },
  9475. {
  9476. "name": "head",
  9477. "type": "string",
  9478. "description": "Filter pulls by head user and branch name in the format of `user:ref-name`. Example: `github:new-script-format`.",
  9479. "required": false,
  9480. "location": "query"
  9481. },
  9482. {
  9483. "name": "base",
  9484. "type": "string",
  9485. "description": "Filter pulls by base branch name. Example: `gh-pages`.",
  9486. "required": false,
  9487. "location": "query"
  9488. },
  9489. {
  9490. "name": "sort",
  9491. "type": "string",
  9492. "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).",
  9493. "default": "created",
  9494. "required": false,
  9495. "enum": [
  9496. "created",
  9497. "updated",
  9498. "popularity",
  9499. "long-running"
  9500. ],
  9501. "location": "query"
  9502. },
  9503. {
  9504. "name": "direction",
  9505. "type": "string",
  9506. "description": "The direction of the sort. Can be either `asc` or `desc`.",
  9507. "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
  9508. "required": false,
  9509. "enum": [
  9510. "asc",
  9511. "desc"
  9512. ],
  9513. "location": "query"
  9514. },
  9515. {
  9516. "name": "per_page",
  9517. "type": "integer",
  9518. "required": false,
  9519. "description": "Results per page (max 100)",
  9520. "default": 30,
  9521. "location": "query"
  9522. },
  9523. {
  9524. "name": "page",
  9525. "type": "integer",
  9526. "required": false,
  9527. "description": "Page number of the results to fetch.",
  9528. "default": 1,
  9529. "location": "query"
  9530. }
  9531. ],
  9532. "path": "/repos/:owner/:repo/pulls"
  9533. },
  9534. "getComment": {
  9535. "description": "",
  9536. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#get-a-single-comment",
  9537. "enabledForApps": true,
  9538. "method": "GET",
  9539. "name": "Get a single comment",
  9540. "params": [
  9541. {
  9542. "name": "owner",
  9543. "type": "string",
  9544. "required": true,
  9545. "description": "",
  9546. "location": "url"
  9547. },
  9548. {
  9549. "name": "repo",
  9550. "type": "string",
  9551. "required": true,
  9552. "description": "",
  9553. "location": "url"
  9554. },
  9555. {
  9556. "name": "comment_id",
  9557. "type": "string",
  9558. "required": true,
  9559. "description": "",
  9560. "location": "url"
  9561. }
  9562. ],
  9563. "path": "/repos/:owner/:repo/pulls/comments/:comment_id"
  9564. },
  9565. "getComments": {
  9566. "description": "By default, review comments are ordered by ascending ID.",
  9567. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request",
  9568. "enabledForApps": true,
  9569. "method": "GET",
  9570. "name": "List comments on a pull request",
  9571. "params": [
  9572. {
  9573. "name": "owner",
  9574. "type": "string",
  9575. "required": true,
  9576. "description": "",
  9577. "location": "url"
  9578. },
  9579. {
  9580. "name": "repo",
  9581. "type": "string",
  9582. "required": true,
  9583. "description": "",
  9584. "location": "url"
  9585. },
  9586. {
  9587. "name": "number",
  9588. "type": "integer",
  9589. "required": true,
  9590. "description": "",
  9591. "location": "url"
  9592. },
  9593. {
  9594. "name": "sort",
  9595. "type": "string",
  9596. "description": "Can be either `created` or `updated` comments.",
  9597. "default": "created",
  9598. "required": false,
  9599. "enum": [
  9600. "created",
  9601. "updated"
  9602. ],
  9603. "location": "query"
  9604. },
  9605. {
  9606. "name": "direction",
  9607. "type": "string",
  9608. "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
  9609. "required": false,
  9610. "enum": [
  9611. "asc",
  9612. "desc"
  9613. ],
  9614. "location": "query"
  9615. },
  9616. {
  9617. "name": "since",
  9618. "type": "string",
  9619. "description": "This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time.",
  9620. "required": false,
  9621. "location": "query"
  9622. },
  9623. {
  9624. "name": "per_page",
  9625. "type": "integer",
  9626. "required": false,
  9627. "description": "Results per page (max 100)",
  9628. "default": 30,
  9629. "location": "query"
  9630. },
  9631. {
  9632. "name": "page",
  9633. "type": "integer",
  9634. "required": false,
  9635. "description": "Page number of the results to fetch.",
  9636. "default": 1,
  9637. "location": "query"
  9638. }
  9639. ],
  9640. "path": "/repos/:owner/:repo/pulls/:number/comments"
  9641. },
  9642. "getCommentsForRepo": {
  9643. "description": "By default, review comments are ordered by ascending ID.",
  9644. "documentationUrl": "https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository",
  9645. "enabledForApps": true,
  9646. "method": "GET",
  9647. "name": "List comments in a repository",
  9648. "params": [
  9649. {
  9650. "name": "owner",
  9651. "type": "string",
  9652. "required": true,
  9653. "description": "",
  9654. "location": "url"
  9655. },
  9656. {
  9657. "name": "repo",
  9658. "type": "string",
  9659. "required": true,
  9660. "description": "",
  9661. "location": "url"
  9662. },
  9663. {
  9664. "name": "sort",
  9665. "type": "string",
  9666. "description": "Can be either `created` or `updated` comments.",
  9667. "default": "created",
  9668. "required": false,
  9669. "enum": [
  9670. "created",
  9671. "updated"
  9672. ],
  9673. "location": "query"
  9674. },
  9675. {
  9676. "name": "direction",
  9677. "type": "string",
  9678. "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
  9679. "required": false,
  9680. "enum": [
  9681. "asc",
  9682. "desc"
  9683. ],
  9684. "location": "query"
  9685. },
  9686. {
  9687. "name": "since",
  9688. "type": "string",
  9689. "description": "This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time.",
  9690. "required": false,
  9691. "location": "query"
  9692. },
  9693. {
  9694. "name": "per_page",
  9695. "type": "integer",
  9696. "required": false,
  9697. "description": "Results per page (max 100)",
  9698. "default": 30,
  9699. "location": "query"
  9700. },
  9701. {
  9702. "name": "page",
  9703. "type": "integer",
  9704. "required": false,
  9705. "description": "Page number of the results to fetch.",
  9706. "default": 1,
  9707. "location": "query"
  9708. }
  9709. ],
  9710. "path": "/repos/:owner/:repo/pulls/comments"
  9711. },
  9712. "getCommits": {
  9713. "description": "**Note:** The response includes a maximum of 250 commits. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository).",
  9714. "documentationUrl": "https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request",
  9715. "enabledForApps": true,
  9716. "method": "GET",
  9717. "name": "List commits on a pull request",
  9718. "params": [
  9719. {
  9720. "name": "owner",
  9721. "type": "string",
  9722. "required": true,
  9723. "description": "",
  9724. "location": "url"
  9725. },
  9726. {
  9727. "name": "repo",
  9728. "type": "string",
  9729. "required": true,
  9730. "description": "",
  9731. "location": "url"
  9732. },
  9733. {
  9734. "name": "number",
  9735. "type": "integer",
  9736. "required": true,
  9737. "description": "",
  9738. "location": "url"
  9739. },
  9740. {
  9741. "name": "per_page",
  9742. "type": "integer",
  9743. "required": false,
  9744. "description": "Results per page (max 100)",
  9745. "default": 30,
  9746. "location": "query"
  9747. },
  9748. {
  9749. "name": "page",
  9750. "type": "integer",
  9751. "required": false,
  9752. "description": "Page number of the results to fetch.",
  9753. "default": 1,
  9754. "location": "query"
  9755. }
  9756. ],
  9757. "path": "/repos/:owner/:repo/pulls/:number/commits"
  9758. },
  9759. "getFiles": {
  9760. "description": "**Note:** The response includes a maximum of 300 files.",
  9761. "documentationUrl": "https://developer.github.com/v3/pulls/#list-pull-requests-files",
  9762. "enabledForApps": true,
  9763. "method": "GET",
  9764. "name": "List pull requests files",
  9765. "params": [
  9766. {
  9767. "name": "owner",
  9768. "type": "string",
  9769. "required": true,
  9770. "description": "",
  9771. "location": "url"
  9772. },
  9773. {
  9774. "name": "repo",
  9775. "type": "string",
  9776. "required": true,
  9777. "description": "",
  9778. "location": "url"
  9779. },
  9780. {
  9781. "name": "number",
  9782. "type": "integer",
  9783. "required": true,
  9784. "description": "",
  9785. "location": "url"
  9786. },
  9787. {
  9788. "name": "per_page",
  9789. "type": "integer",
  9790. "required": false,
  9791. "description": "Results per page (max 100)",
  9792. "default": 30,
  9793. "location": "query"
  9794. },
  9795. {
  9796. "name": "page",
  9797. "type": "integer",
  9798. "required": false,
  9799. "description": "Page number of the results to fetch.",
  9800. "default": 1,
  9801. "location": "query"
  9802. }
  9803. ],
  9804. "path": "/repos/:owner/:repo/pulls/:number/files"
  9805. },
  9806. "getReview": {
  9807. "description": "",
  9808. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#get-a-single-review",
  9809. "enabledForApps": true,
  9810. "method": "GET",
  9811. "name": "Get a single review",
  9812. "params": [
  9813. {
  9814. "name": "owner",
  9815. "type": "string",
  9816. "required": true,
  9817. "description": "",
  9818. "location": "url"
  9819. },
  9820. {
  9821. "name": "repo",
  9822. "type": "string",
  9823. "required": true,
  9824. "description": "",
  9825. "location": "url"
  9826. },
  9827. {
  9828. "name": "number",
  9829. "type": "integer",
  9830. "required": true,
  9831. "description": "",
  9832. "location": "url"
  9833. },
  9834. {
  9835. "name": "review_id",
  9836. "type": "string",
  9837. "required": true,
  9838. "description": "",
  9839. "location": "url"
  9840. }
  9841. ],
  9842. "path": "/repos/:owner/:repo/pulls/:number/reviews/:review_id"
  9843. },
  9844. "getReviewComments": {
  9845. "description": "",
  9846. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review",
  9847. "enabledForApps": true,
  9848. "method": "GET",
  9849. "name": "Get comments for a single review",
  9850. "params": [
  9851. {
  9852. "name": "owner",
  9853. "type": "string",
  9854. "required": true,
  9855. "description": "",
  9856. "location": "url"
  9857. },
  9858. {
  9859. "name": "repo",
  9860. "type": "string",
  9861. "required": true,
  9862. "description": "",
  9863. "location": "url"
  9864. },
  9865. {
  9866. "name": "number",
  9867. "type": "integer",
  9868. "required": true,
  9869. "description": "",
  9870. "location": "url"
  9871. },
  9872. {
  9873. "name": "review_id",
  9874. "type": "string",
  9875. "required": true,
  9876. "description": "",
  9877. "location": "url"
  9878. },
  9879. {
  9880. "name": "per_page",
  9881. "type": "integer",
  9882. "required": false,
  9883. "description": "Results per page (max 100)",
  9884. "default": 30,
  9885. "location": "query"
  9886. },
  9887. {
  9888. "name": "page",
  9889. "type": "integer",
  9890. "required": false,
  9891. "description": "Page number of the results to fetch.",
  9892. "default": 1,
  9893. "location": "query"
  9894. }
  9895. ],
  9896. "path": "/repos/:owner/:repo/pulls/:number/reviews/:review_id/comments"
  9897. },
  9898. "getReviewRequests": {
  9899. "description": "",
  9900. "documentationUrl": "https://developer.github.com/v3/pulls/review_requests/#list-review-requests",
  9901. "enabledForApps": true,
  9902. "method": "GET",
  9903. "name": "List review requests",
  9904. "params": [
  9905. {
  9906. "name": "owner",
  9907. "type": "string",
  9908. "required": true,
  9909. "description": "",
  9910. "location": "url"
  9911. },
  9912. {
  9913. "name": "repo",
  9914. "type": "string",
  9915. "required": true,
  9916. "description": "",
  9917. "location": "url"
  9918. },
  9919. {
  9920. "name": "number",
  9921. "type": "integer",
  9922. "required": true,
  9923. "description": "",
  9924. "location": "url"
  9925. },
  9926. {
  9927. "name": "per_page",
  9928. "type": "integer",
  9929. "required": false,
  9930. "description": "Results per page (max 100)",
  9931. "default": 30,
  9932. "location": "query"
  9933. },
  9934. {
  9935. "name": "page",
  9936. "type": "integer",
  9937. "required": false,
  9938. "description": "Page number of the results to fetch.",
  9939. "default": 1,
  9940. "location": "query"
  9941. }
  9942. ],
  9943. "path": "/repos/:owner/:repo/pulls/:number/requested_reviewers"
  9944. },
  9945. "getReviews": {
  9946. "description": "The list of reviews returns in chronological order.",
  9947. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request",
  9948. "enabledForApps": true,
  9949. "method": "GET",
  9950. "name": "List reviews on a pull request",
  9951. "params": [
  9952. {
  9953. "name": "owner",
  9954. "type": "string",
  9955. "required": true,
  9956. "description": "",
  9957. "location": "url"
  9958. },
  9959. {
  9960. "name": "repo",
  9961. "type": "string",
  9962. "required": true,
  9963. "description": "",
  9964. "location": "url"
  9965. },
  9966. {
  9967. "name": "number",
  9968. "type": "integer",
  9969. "required": true,
  9970. "description": "",
  9971. "location": "url"
  9972. },
  9973. {
  9974. "name": "per_page",
  9975. "type": "integer",
  9976. "required": false,
  9977. "description": "Results per page (max 100)",
  9978. "default": 30,
  9979. "location": "query"
  9980. },
  9981. {
  9982. "name": "page",
  9983. "type": "integer",
  9984. "required": false,
  9985. "description": "Page number of the results to fetch.",
  9986. "default": 1,
  9987. "location": "query"
  9988. }
  9989. ],
  9990. "path": "/repos/:owner/:repo/pulls/:number/reviews"
  9991. },
  9992. "merge": {
  9993. "description": "",
  9994. "documentationUrl": "https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button",
  9995. "enabledForApps": true,
  9996. "method": "PUT",
  9997. "name": "Merge a pull request (Merge Button)",
  9998. "params": [
  9999. {
  10000. "name": "owner",
  10001. "type": "string",
  10002. "required": true,
  10003. "description": "",
  10004. "location": "url"
  10005. },
  10006. {
  10007. "name": "repo",
  10008. "type": "string",
  10009. "required": true,
  10010. "description": "",
  10011. "location": "url"
  10012. },
  10013. {
  10014. "name": "number",
  10015. "type": "integer",
  10016. "required": true,
  10017. "description": "",
  10018. "location": "url"
  10019. },
  10020. {
  10021. "name": "commit_title",
  10022. "type": "string",
  10023. "description": "Title for the automatic commit message.",
  10024. "required": false,
  10025. "location": "body"
  10026. },
  10027. {
  10028. "name": "commit_message",
  10029. "type": "string",
  10030. "description": "Extra detail to append to automatic commit message.",
  10031. "required": false,
  10032. "location": "body"
  10033. },
  10034. {
  10035. "name": "sha",
  10036. "type": "string",
  10037. "description": "SHA that pull request head must match to allow merge.",
  10038. "required": false,
  10039. "location": "body"
  10040. },
  10041. {
  10042. "name": "merge_method",
  10043. "type": "string",
  10044. "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
  10045. "required": false,
  10046. "enum": [
  10047. "merge",
  10048. "squash",
  10049. "rebase"
  10050. ],
  10051. "location": "body"
  10052. }
  10053. ],
  10054. "path": "/repos/:owner/:repo/pulls/:number/merge"
  10055. },
  10056. "submitReview": {
  10057. "description": "",
  10058. "documentationUrl": "https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review",
  10059. "enabledForApps": true,
  10060. "method": "POST",
  10061. "name": "Submit a pull request review",
  10062. "params": [
  10063. {
  10064. "name": "owner",
  10065. "type": "string",
  10066. "required": true,
  10067. "description": "",
  10068. "location": "url"
  10069. },
  10070. {
  10071. "name": "repo",
  10072. "type": "string",
  10073. "required": true,
  10074. "description": "",
  10075. "location": "url"
  10076. },
  10077. {
  10078. "name": "number",
  10079. "type": "integer",
  10080. "required": true,
  10081. "description": "",
  10082. "location": "url"
  10083. },
  10084. {
  10085. "name": "review_id",
  10086. "type": "string",
  10087. "required": true,
  10088. "description": "",
  10089. "location": "url"
  10090. },
  10091. {
  10092. "name": "body",
  10093. "type": "string",
  10094. "description": "The body text of the pull request review",
  10095. "required": false,
  10096. "location": "body"
  10097. },
  10098. {
  10099. "name": "event",
  10100. "type": "string",
  10101. "description": "**Required.** The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
  10102. "required": false,
  10103. "enum": [
  10104. "APPROVE",
  10105. "REQUEST_CHANGES",
  10106. "COMMENT"
  10107. ],
  10108. "location": "body"
  10109. }
  10110. ],
  10111. "path": "/repos/:owner/:repo/pulls/:number/reviews/:review_id/events"
  10112. },
  10113. "update": {
  10114. "description": "**Note:** To open a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request.",
  10115. "documentationUrl": "https://developer.github.com/v3/pulls/#update-a-pull-request",
  10116. "enabledForApps": true,
  10117. "method": "PATCH",
  10118. "name": "Update a pull request",
  10119. "params": [
  10120. {
  10121. "name": "owner",
  10122. "type": "string",
  10123. "required": true,
  10124. "description": "",
  10125. "location": "url"
  10126. },
  10127. {
  10128. "name": "repo",
  10129. "type": "string",
  10130. "required": true,
  10131. "description": "",
  10132. "location": "url"
  10133. },
  10134. {
  10135. "name": "number",
  10136. "type": "integer",
  10137. "required": true,
  10138. "description": "",
  10139. "location": "url"
  10140. },
  10141. {
  10142. "name": "title",
  10143. "type": "string",
  10144. "description": "The title of the pull request.",
  10145. "required": false,
  10146. "location": "body"
  10147. },
  10148. {
  10149. "name": "body",
  10150. "type": "string",
  10151. "description": "The contents of the pull request.",
  10152. "required": false,
  10153. "location": "body"
  10154. },
  10155. {
  10156. "name": "state",
  10157. "type": "string",
  10158. "description": "State of this Pull Request. Either `open` or `closed`.",
  10159. "required": false,
  10160. "enum": [
  10161. "open",
  10162. "closed"
  10163. ],
  10164. "location": "body"
  10165. },
  10166. {
  10167. "name": "base",
  10168. "type": "string",
  10169. "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
  10170. "required": false,
  10171. "location": "body"
  10172. },
  10173. {
  10174. "name": "maintainer_can_modify",
  10175. "type": "boolean",
  10176. "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
  10177. "required": false,
  10178. "location": "body"
  10179. }
  10180. ],
  10181. "path": "/repos/:owner/:repo/pulls/:number"
  10182. }
  10183. },
  10184. "reactions": {
  10185. "createForCommitComment": {
  10186. "description": "Create a reaction to a [commit comment](https://developer.github.com/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment.",
  10187. "documentationUrl": "https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment",
  10188. "enabledForApps": false,
  10189. "method": "POST",
  10190. "name": "Create reaction for a commit comment",
  10191. "params": [
  10192. {
  10193. "name": "owner",
  10194. "type": "string",
  10195. "required": true,
  10196. "description": "",
  10197. "location": "url"
  10198. },
  10199. {
  10200. "name": "repo",
  10201. "type": "string",
  10202. "required": true,
  10203. "description": "",
  10204. "location": "url"
  10205. },
  10206. {
  10207. "name": "comment_id",
  10208. "type": "string",
  10209. "required": true,
  10210. "description": "",
  10211. "location": "url"
  10212. },
  10213. {
  10214. "name": "content",
  10215. "type": "string",
  10216. "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment.",
  10217. "required": true,
  10218. "enum": [
  10219. "+1",
  10220. "-1",
  10221. "laugh",
  10222. "confused",
  10223. "heart",
  10224. "hooray"
  10225. ],
  10226. "location": "body"
  10227. }
  10228. ],
  10229. "path": "/repos/:owner/:repo/comments/:comment_id/reactions"
  10230. },
  10231. "createForIssue": {
  10232. "description": "Create a reaction to an [issue](https://developer.github.com/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue.",
  10233. "documentationUrl": "https://developer.github.com/v3/reactions/#create-reaction-for-an-issue",
  10234. "enabledForApps": false,
  10235. "method": "POST",
  10236. "name": "Create reaction for an issue",
  10237. "params": [
  10238. {
  10239. "name": "owner",
  10240. "type": "string",
  10241. "required": true,
  10242. "description": "",
  10243. "location": "url"
  10244. },
  10245. {
  10246. "name": "repo",
  10247. "type": "string",
  10248. "required": true,
  10249. "description": "",
  10250. "location": "url"
  10251. },
  10252. {
  10253. "name": "number",
  10254. "type": "integer",
  10255. "required": true,
  10256. "description": "",
  10257. "location": "url"
  10258. },
  10259. {
  10260. "name": "content",
  10261. "type": "string",
  10262. "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue.",
  10263. "required": true,
  10264. "enum": [
  10265. "+1",
  10266. "-1",
  10267. "laugh",
  10268. "confused",
  10269. "heart",
  10270. "hooray"
  10271. ],
  10272. "location": "body"
  10273. }
  10274. ],
  10275. "path": "/repos/:owner/:repo/issues/:number/reactions"
  10276. },
  10277. "createForIssueComment": {
  10278. "description": "Create a reaction to an [issue comment](https://developer.github.com/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment.",
  10279. "documentationUrl": "https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment",
  10280. "enabledForApps": false,
  10281. "method": "POST",
  10282. "name": "Create reaction for an issue comment",
  10283. "params": [
  10284. {
  10285. "name": "owner",
  10286. "type": "string",
  10287. "required": true,
  10288. "description": "",
  10289. "location": "url"
  10290. },
  10291. {
  10292. "name": "repo",
  10293. "type": "string",
  10294. "required": true,
  10295. "description": "",
  10296. "location": "url"
  10297. },
  10298. {
  10299. "name": "comment_id",
  10300. "type": "string",
  10301. "required": true,
  10302. "description": "",
  10303. "location": "url"
  10304. },
  10305. {
  10306. "name": "content",
  10307. "type": "string",
  10308. "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment.",
  10309. "required": true,
  10310. "enum": [
  10311. "+1",
  10312. "-1",
  10313. "laugh",
  10314. "confused",
  10315. "heart",
  10316. "hooray"
  10317. ],
  10318. "location": "body"
  10319. }
  10320. ],
  10321. "path": "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  10322. },
  10323. "createForPullRequestReviewComment": {
  10324. "description": "Create a reaction to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment.",
  10325. "documentationUrl": "https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment",
  10326. "enabledForApps": false,
  10327. "method": "POST",
  10328. "name": "Create reaction for a pull request review comment",
  10329. "params": [
  10330. {
  10331. "name": "owner",
  10332. "type": "string",
  10333. "required": true,
  10334. "description": "",
  10335. "location": "url"
  10336. },
  10337. {
  10338. "name": "repo",
  10339. "type": "string",
  10340. "required": true,
  10341. "description": "",
  10342. "location": "url"
  10343. },
  10344. {
  10345. "name": "comment_id",
  10346. "type": "string",
  10347. "required": true,
  10348. "description": "",
  10349. "location": "url"
  10350. },
  10351. {
  10352. "name": "content",
  10353. "type": "string",
  10354. "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment.",
  10355. "required": true,
  10356. "enum": [
  10357. "+1",
  10358. "-1",
  10359. "laugh",
  10360. "confused",
  10361. "heart",
  10362. "hooray"
  10363. ],
  10364. "location": "body"
  10365. }
  10366. ],
  10367. "path": "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  10368. },
  10369. "createForTeamDiscussion": {
  10370. "description": "Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.",
  10371. "documentationUrl": "https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion",
  10372. "enabledForApps": false,
  10373. "method": "POST",
  10374. "name": "Create reaction for a team discussion",
  10375. "params": [
  10376. {
  10377. "name": "team_id",
  10378. "type": "string",
  10379. "required": true,
  10380. "description": "",
  10381. "location": "url"
  10382. },
  10383. {
  10384. "name": "discussion_number",
  10385. "type": "integer",
  10386. "required": true,
  10387. "description": "",
  10388. "location": "url"
  10389. },
  10390. {
  10391. "name": "content",
  10392. "type": "string",
  10393. "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.",
  10394. "required": true,
  10395. "enum": [
  10396. "+1",
  10397. "-1",
  10398. "laugh",
  10399. "confused",
  10400. "heart",
  10401. "hooray"
  10402. ],
  10403. "location": "body"
  10404. }
  10405. ],
  10406. "path": "/teams/:team_id/discussions/:discussion_number/reactions"
  10407. },
  10408. "createForTeamDiscussionComment": {
  10409. "description": "Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.",
  10410. "documentationUrl": "https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment",
  10411. "enabledForApps": false,
  10412. "method": "POST",
  10413. "name": "Create reaction for a team discussion comment",
  10414. "params": [
  10415. {
  10416. "name": "team_id",
  10417. "type": "string",
  10418. "required": true,
  10419. "description": "",
  10420. "location": "url"
  10421. },
  10422. {
  10423. "name": "discussion_number",
  10424. "type": "integer",
  10425. "required": true,
  10426. "description": "",
  10427. "location": "url"
  10428. },
  10429. {
  10430. "name": "comment_number",
  10431. "type": "integer",
  10432. "required": true,
  10433. "description": "",
  10434. "location": "url"
  10435. },
  10436. {
  10437. "name": "content",
  10438. "type": "string",
  10439. "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.",
  10440. "required": true,
  10441. "enum": [
  10442. "+1",
  10443. "-1",
  10444. "laugh",
  10445. "confused",
  10446. "heart",
  10447. "hooray"
  10448. ],
  10449. "location": "body"
  10450. }
  10451. ],
  10452. "path": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  10453. },
  10454. "delete": {
  10455. "description": "OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/).",
  10456. "documentationUrl": "https://developer.github.com/v3/reactions/#delete-a-reaction",
  10457. "enabledForApps": false,
  10458. "method": "DELETE",
  10459. "name": "Delete a reaction",
  10460. "params": [
  10461. {
  10462. "name": "reaction_id",
  10463. "type": "string",
  10464. "required": true,
  10465. "description": "",
  10466. "location": "url"
  10467. }
  10468. ],
  10469. "path": "/reactions/:reaction_id"
  10470. },
  10471. "getForCommitComment": {
  10472. "description": "List the reactions to a [commit comment](https://developer.github.com/v3/repos/comments/).",
  10473. "documentationUrl": "https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment",
  10474. "enabledForApps": true,
  10475. "method": "GET",
  10476. "name": "List reactions for a commit comment",
  10477. "params": [
  10478. {
  10479. "name": "owner",
  10480. "type": "string",
  10481. "required": true,
  10482. "description": "",
  10483. "location": "url"
  10484. },
  10485. {
  10486. "name": "repo",
  10487. "type": "string",
  10488. "required": true,
  10489. "description": "",
  10490. "location": "url"
  10491. },
  10492. {
  10493. "name": "comment_id",
  10494. "type": "string",
  10495. "required": true,
  10496. "description": "",
  10497. "location": "url"
  10498. },
  10499. {
  10500. "name": "content",
  10501. "type": "string",
  10502. "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment.",
  10503. "required": false,
  10504. "enum": [
  10505. "+1",
  10506. "-1",
  10507. "laugh",
  10508. "confused",
  10509. "heart",
  10510. "hooray"
  10511. ],
  10512. "location": "query"
  10513. },
  10514. {
  10515. "name": "per_page",
  10516. "type": "integer",
  10517. "required": false,
  10518. "description": "Results per page (max 100)",
  10519. "default": 30,
  10520. "location": "query"
  10521. },
  10522. {
  10523. "name": "page",
  10524. "type": "integer",
  10525. "required": false,
  10526. "description": "Page number of the results to fetch.",
  10527. "default": 1,
  10528. "location": "query"
  10529. }
  10530. ],
  10531. "path": "/repos/:owner/:repo/comments/:comment_id/reactions"
  10532. },
  10533. "getForIssue": {
  10534. "description": "List the reactions to an [issue](https://developer.github.com/v3/issues/).",
  10535. "documentationUrl": "https://developer.github.com/v3/reactions/#list-reactions-for-an-issue",
  10536. "enabledForApps": true,
  10537. "method": "GET",
  10538. "name": "List reactions for an issue",
  10539. "params": [
  10540. {
  10541. "name": "owner",
  10542. "type": "string",
  10543. "required": true,
  10544. "description": "",
  10545. "location": "url"
  10546. },
  10547. {
  10548. "name": "repo",
  10549. "type": "string",
  10550. "required": true,
  10551. "description": "",
  10552. "location": "url"
  10553. },
  10554. {
  10555. "name": "number",
  10556. "type": "integer",
  10557. "required": true,
  10558. "description": "",
  10559. "location": "url"
  10560. },
  10561. {
  10562. "name": "content",
  10563. "type": "string",
  10564. "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue.",
  10565. "required": false,
  10566. "enum": [
  10567. "+1",
  10568. "-1",
  10569. "laugh",
  10570. "confused",
  10571. "heart",
  10572. "hooray"
  10573. ],
  10574. "location": "query"
  10575. },
  10576. {
  10577. "name": "per_page",
  10578. "type": "integer",
  10579. "required": false,
  10580. "description": "Results per page (max 100)",
  10581. "default": 30,
  10582. "location": "query"
  10583. },
  10584. {
  10585. "name": "page",
  10586. "type": "integer",
  10587. "required": false,
  10588. "description": "Page number of the results to fetch.",
  10589. "default": 1,
  10590. "location": "query"
  10591. }
  10592. ],
  10593. "path": "/repos/:owner/:repo/issues/:number/reactions"
  10594. },
  10595. "getForIssueComment": {
  10596. "description": "List the reactions to an [issue comment](https://developer.github.com/v3/issues/comments/).",
  10597. "documentationUrl": "https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment",
  10598. "enabledForApps": true,
  10599. "method": "GET",
  10600. "name": "List reactions for an issue comment",
  10601. "params": [
  10602. {
  10603. "name": "owner",
  10604. "type": "string",
  10605. "required": true,
  10606. "description": "",
  10607. "location": "url"
  10608. },
  10609. {
  10610. "name": "repo",
  10611. "type": "string",
  10612. "required": true,
  10613. "description": "",
  10614. "location": "url"
  10615. },
  10616. {
  10617. "name": "comment_id",
  10618. "type": "string",
  10619. "required": true,
  10620. "description": "",
  10621. "location": "url"
  10622. },
  10623. {
  10624. "name": "content",
  10625. "type": "string",
  10626. "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment.",
  10627. "required": false,
  10628. "enum": [
  10629. "+1",
  10630. "-1",
  10631. "laugh",
  10632. "confused",
  10633. "heart",
  10634. "hooray"
  10635. ],
  10636. "location": "query"
  10637. },
  10638. {
  10639. "name": "per_page",
  10640. "type": "integer",
  10641. "required": false,
  10642. "description": "Results per page (max 100)",
  10643. "default": 30,
  10644. "location": "query"
  10645. },
  10646. {
  10647. "name": "page",
  10648. "type": "integer",
  10649. "required": false,
  10650. "description": "Page number of the results to fetch.",
  10651. "default": 1,
  10652. "location": "query"
  10653. }
  10654. ],
  10655. "path": "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  10656. },
  10657. "getForPullRequestReviewComment": {
  10658. "description": "List the reactions to a [pull request review comment](https://developer.github.com/v3/pulls/comments/).",
  10659. "documentationUrl": "https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment",
  10660. "enabledForApps": true,
  10661. "method": "GET",
  10662. "name": "List reactions for a pull request review comment",
  10663. "params": [
  10664. {
  10665. "name": "owner",
  10666. "type": "string",
  10667. "required": true,
  10668. "description": "",
  10669. "location": "url"
  10670. },
  10671. {
  10672. "name": "repo",
  10673. "type": "string",
  10674. "required": true,
  10675. "description": "",
  10676. "location": "url"
  10677. },
  10678. {
  10679. "name": "comment_id",
  10680. "type": "string",
  10681. "required": true,
  10682. "description": "",
  10683. "location": "url"
  10684. },
  10685. {
  10686. "name": "content",
  10687. "type": "string",
  10688. "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment.",
  10689. "required": false,
  10690. "enum": [
  10691. "+1",
  10692. "-1",
  10693. "laugh",
  10694. "confused",
  10695. "heart",
  10696. "hooray"
  10697. ],
  10698. "location": "query"
  10699. },
  10700. {
  10701. "name": "per_page",
  10702. "type": "integer",
  10703. "required": false,
  10704. "description": "Results per page (max 100)",
  10705. "default": 30,
  10706. "location": "query"
  10707. },
  10708. {
  10709. "name": "page",
  10710. "type": "integer",
  10711. "required": false,
  10712. "description": "Page number of the results to fetch.",
  10713. "default": 1,
  10714. "location": "query"
  10715. }
  10716. ],
  10717. "path": "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  10718. },
  10719. "getForTeamDiscussion": {
  10720. "description": "List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  10721. "documentationUrl": "https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion",
  10722. "enabledForApps": true,
  10723. "method": "GET",
  10724. "name": "List reactions for a team discussion",
  10725. "params": [
  10726. {
  10727. "name": "team_id",
  10728. "type": "string",
  10729. "required": true,
  10730. "description": "",
  10731. "location": "url"
  10732. },
  10733. {
  10734. "name": "discussion_number",
  10735. "type": "integer",
  10736. "required": true,
  10737. "description": "",
  10738. "location": "url"
  10739. },
  10740. {
  10741. "name": "content",
  10742. "type": "string",
  10743. "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion.",
  10744. "required": false,
  10745. "enum": [
  10746. "+1",
  10747. "-1",
  10748. "laugh",
  10749. "confused",
  10750. "heart",
  10751. "hooray"
  10752. ],
  10753. "location": "query"
  10754. },
  10755. {
  10756. "name": "per_page",
  10757. "type": "integer",
  10758. "required": false,
  10759. "description": "Results per page (max 100)",
  10760. "default": 30,
  10761. "location": "query"
  10762. },
  10763. {
  10764. "name": "page",
  10765. "type": "integer",
  10766. "required": false,
  10767. "description": "Page number of the results to fetch.",
  10768. "default": 1,
  10769. "location": "query"
  10770. }
  10771. ],
  10772. "path": "/teams/:team_id/discussions/:discussion_number/reactions"
  10773. },
  10774. "getForTeamDiscussionComment": {
  10775. "description": "List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  10776. "documentationUrl": "https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment",
  10777. "enabledForApps": true,
  10778. "method": "GET",
  10779. "name": "List reactions for a team discussion comment",
  10780. "params": [
  10781. {
  10782. "name": "team_id",
  10783. "type": "string",
  10784. "required": true,
  10785. "description": "",
  10786. "location": "url"
  10787. },
  10788. {
  10789. "name": "discussion_number",
  10790. "type": "integer",
  10791. "required": true,
  10792. "description": "",
  10793. "location": "url"
  10794. },
  10795. {
  10796. "name": "comment_number",
  10797. "type": "integer",
  10798. "required": true,
  10799. "description": "",
  10800. "location": "url"
  10801. },
  10802. {
  10803. "name": "content",
  10804. "type": "string",
  10805. "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment.",
  10806. "required": false,
  10807. "enum": [
  10808. "+1",
  10809. "-1",
  10810. "laugh",
  10811. "confused",
  10812. "heart",
  10813. "hooray"
  10814. ],
  10815. "location": "query"
  10816. },
  10817. {
  10818. "name": "per_page",
  10819. "type": "integer",
  10820. "required": false,
  10821. "description": "Results per page (max 100)",
  10822. "default": 30,
  10823. "location": "query"
  10824. },
  10825. {
  10826. "name": "page",
  10827. "type": "integer",
  10828. "required": false,
  10829. "description": "Page number of the results to fetch.",
  10830. "default": 1,
  10831. "location": "query"
  10832. }
  10833. ],
  10834. "path": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  10835. }
  10836. },
  10837. "repos": {
  10838. "addCollaborator": {
  10839. "description": "Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"\n\nThe invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://developer.github.com/v3/repos/invitations/).\n\n**Rate limits**\n\nTo prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.",
  10840. "documentationUrl": "https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator",
  10841. "enabledForApps": true,
  10842. "method": "PUT",
  10843. "name": "Add user as a collaborator",
  10844. "params": [
  10845. {
  10846. "name": "owner",
  10847. "type": "string",
  10848. "required": true,
  10849. "description": "",
  10850. "location": "url"
  10851. },
  10852. {
  10853. "name": "repo",
  10854. "type": "string",
  10855. "required": true,
  10856. "description": "",
  10857. "location": "url"
  10858. },
  10859. {
  10860. "name": "username",
  10861. "type": "string",
  10862. "required": true,
  10863. "description": "",
  10864. "location": "url"
  10865. },
  10866. {
  10867. "name": "permission",
  10868. "type": "string",
  10869. "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` \\- can pull, but not push to or administer this repository. \n\\* `push` \\- can pull and push, but not administer this repository. \n\\* `admin` \\- can pull, push and administer this repository.",
  10870. "default": "push",
  10871. "required": false,
  10872. "enum": [
  10873. "pull",
  10874. "push",
  10875. "admin"
  10876. ],
  10877. "location": "body"
  10878. }
  10879. ],
  10880. "path": "/repos/:owner/:repo/collaborators/:username"
  10881. },
  10882. "addDeployKey": {
  10883. "description": "Here's how you can create a read-only deploy key:\n\n",
  10884. "documentationUrl": "https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key",
  10885. "enabledForApps": true,
  10886. "method": "POST",
  10887. "name": "Add a new deploy key",
  10888. "params": [
  10889. {
  10890. "name": "owner",
  10891. "type": "string",
  10892. "required": true,
  10893. "description": "",
  10894. "location": "url"
  10895. },
  10896. {
  10897. "name": "repo",
  10898. "type": "string",
  10899. "required": true,
  10900. "description": "",
  10901. "location": "url"
  10902. },
  10903. {
  10904. "name": "title",
  10905. "type": "string",
  10906. "description": "A name for the key.",
  10907. "required": false,
  10908. "location": "body"
  10909. },
  10910. {
  10911. "name": "key",
  10912. "type": "string",
  10913. "description": "The contents of the key.",
  10914. "required": true,
  10915. "location": "body"
  10916. },
  10917. {
  10918. "name": "read_only",
  10919. "type": "boolean",
  10920. "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.",
  10921. "required": false,
  10922. "location": "body"
  10923. }
  10924. ],
  10925. "path": "/repos/:owner/:repo/keys"
  10926. },
  10927. "addProtectedBranchAdminEnforcement": {
  10928. "description": "Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
  10929. "documentationUrl": "https://developer.github.com/v3/repos/branches/#add-admin-enforcement-of-protected-branch",
  10930. "enabledForApps": true,
  10931. "method": "POST",
  10932. "name": "Add admin enforcement of protected branch",
  10933. "params": [
  10934. {
  10935. "name": "owner",
  10936. "type": "string",
  10937. "required": true,
  10938. "description": "",
  10939. "location": "url"
  10940. },
  10941. {
  10942. "name": "repo",
  10943. "type": "string",
  10944. "required": true,
  10945. "description": "",
  10946. "location": "url"
  10947. },
  10948. {
  10949. "name": "branch",
  10950. "type": "string",
  10951. "required": true,
  10952. "description": "",
  10953. "location": "url"
  10954. }
  10955. ],
  10956. "path": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  10957. },
  10958. "addProtectedBranchRequiredSignatures": {
  10959. "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.",
  10960. "documentationUrl": "https://developer.github.com/v3/repos/branches/#add-required-signatures-of-protected-branch",
  10961. "enabledForApps": true,
  10962. "method": "POST",
  10963. "name": "Add required signatures of protected branch",
  10964. "params": [
  10965. {
  10966. "name": "owner",
  10967. "type": "string",
  10968. "required": true,
  10969. "description": "",
  10970. "location": "url"
  10971. },
  10972. {
  10973. "name": "repo",
  10974. "type": "string",
  10975. "required": true,
  10976. "description": "",
  10977. "location": "url"
  10978. },
  10979. {
  10980. "name": "branch",
  10981. "type": "string",
  10982. "required": true,
  10983. "description": "",
  10984. "location": "url"
  10985. }
  10986. ],
  10987. "path": "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  10988. },
  10989. "addProtectedBranchRequiredStatusChecksContexts": {
  10990. "description": "",
  10991. "documentationUrl": "https://developer.github.com/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch",
  10992. "enabledForApps": true,
  10993. "method": "POST",
  10994. "name": "Add required status checks contexts of protected branch",
  10995. "params": [
  10996. {
  10997. "name": "owner",
  10998. "type": "string",
  10999. "required": true,
  11000. "description": "",
  11001. "location": "url"
  11002. },
  11003. {
  11004. "name": "repo",
  11005. "type": "string",
  11006. "required": true,
  11007. "description": "",
  11008. "location": "url"
  11009. },
  11010. {
  11011. "name": "branch",
  11012. "type": "string",
  11013. "required": true,
  11014. "description": "",
  11015. "location": "url"
  11016. }
  11017. ],
  11018. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  11019. },
  11020. "addProtectedBranchTeamRestrictions": {
  11021. "description": "Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
  11022. "documentationUrl": "https://developer.github.com/v3/repos/branches/#add-team-restrictions-of-protected-branch",
  11023. "enabledForApps": true,
  11024. "method": "POST",
  11025. "name": "Add team restrictions of protected branch",
  11026. "params": [
  11027. {
  11028. "name": "owner",
  11029. "type": "string",
  11030. "required": true,
  11031. "description": "",
  11032. "location": "url"
  11033. },
  11034. {
  11035. "name": "repo",
  11036. "type": "string",
  11037. "required": true,
  11038. "description": "",
  11039. "location": "url"
  11040. },
  11041. {
  11042. "name": "branch",
  11043. "type": "string",
  11044. "required": true,
  11045. "description": "",
  11046. "location": "url"
  11047. }
  11048. ],
  11049. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  11050. },
  11051. "addProtectedBranchUserRestrictions": {
  11052. "description": "Grants the specified people push access for this branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
  11053. "documentationUrl": "https://developer.github.com/v3/repos/branches/#add-user-restrictions-of-protected-branch",
  11054. "enabledForApps": true,
  11055. "method": "POST",
  11056. "name": "Add user restrictions of protected branch",
  11057. "params": [
  11058. {
  11059. "name": "owner",
  11060. "type": "string",
  11061. "required": true,
  11062. "description": "",
  11063. "location": "url"
  11064. },
  11065. {
  11066. "name": "repo",
  11067. "type": "string",
  11068. "required": true,
  11069. "description": "",
  11070. "location": "url"
  11071. },
  11072. {
  11073. "name": "branch",
  11074. "type": "string",
  11075. "required": true,
  11076. "description": "",
  11077. "location": "url"
  11078. }
  11079. ],
  11080. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  11081. },
  11082. "checkCollaborator": {
  11083. "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
  11084. "documentationUrl": "https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator",
  11085. "enabledForApps": true,
  11086. "method": "GET",
  11087. "name": "Check if a user is a collaborator",
  11088. "params": [
  11089. {
  11090. "name": "owner",
  11091. "type": "string",
  11092. "required": true,
  11093. "description": "",
  11094. "location": "url"
  11095. },
  11096. {
  11097. "name": "repo",
  11098. "type": "string",
  11099. "required": true,
  11100. "description": "",
  11101. "location": "url"
  11102. },
  11103. {
  11104. "name": "username",
  11105. "type": "string",
  11106. "required": true,
  11107. "description": "",
  11108. "location": "url"
  11109. }
  11110. ],
  11111. "path": "/repos/:owner/:repo/collaborators/:username"
  11112. },
  11113. "compareCommits": {
  11114. "description": "Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `<USERNAME>:branch`. For example:\n\n```\nGET /repos/:owner/:repo/compare/hubot:branchname...octocat:branchname\n```\n\nThe response from the API is equivalent to running the `git log base..head` command; however, commits are returned in reverse chronological order.\n\nPass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n\n**Working with large comparisons**\n\nThe response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.\n\nFor comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range.",
  11115. "documentationUrl": "https://developer.github.com/v3/repos/commits/#compare-two-commits",
  11116. "enabledForApps": true,
  11117. "method": "GET",
  11118. "name": "Compare two commits",
  11119. "params": [
  11120. {
  11121. "name": "owner",
  11122. "type": "string",
  11123. "required": true,
  11124. "description": "",
  11125. "location": "url"
  11126. },
  11127. {
  11128. "name": "repo",
  11129. "type": "string",
  11130. "required": true,
  11131. "description": "",
  11132. "location": "url"
  11133. },
  11134. {
  11135. "name": "base",
  11136. "type": "string",
  11137. "required": true,
  11138. "description": "",
  11139. "location": "url"
  11140. },
  11141. {
  11142. "name": "head",
  11143. "type": "string",
  11144. "required": true,
  11145. "description": "",
  11146. "location": "url"
  11147. }
  11148. ],
  11149. "path": "/repos/:owner/:repo/compare/:base...:head"
  11150. },
  11151. "create": {
  11152. "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
  11153. "documentationUrl": "https://developer.github.com/v3/repos/#create",
  11154. "enabledForApps": true,
  11155. "method": "POST",
  11156. "name": "Create a new repository for the authenticated user",
  11157. "params": [
  11158. {
  11159. "name": "name",
  11160. "type": "string",
  11161. "description": "The name of the repository.",
  11162. "required": true,
  11163. "location": "body"
  11164. },
  11165. {
  11166. "name": "description",
  11167. "type": "string",
  11168. "description": "A short description of the repository.",
  11169. "required": false,
  11170. "location": "body"
  11171. },
  11172. {
  11173. "name": "homepage",
  11174. "type": "string",
  11175. "description": "A URL with more information about the repository.",
  11176. "required": false,
  11177. "location": "body"
  11178. },
  11179. {
  11180. "name": "private",
  11181. "type": "boolean",
  11182. "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
  11183. "default": false,
  11184. "required": false,
  11185. "location": "body"
  11186. },
  11187. {
  11188. "name": "has_issues",
  11189. "type": "boolean",
  11190. "description": "Either `true` to enable issues for this repository or `false` to disable them.",
  11191. "default": true,
  11192. "required": false,
  11193. "location": "body"
  11194. },
  11195. {
  11196. "name": "has_projects",
  11197. "type": "boolean",
  11198. "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
  11199. "default": true,
  11200. "required": false,
  11201. "location": "body"
  11202. },
  11203. {
  11204. "name": "has_wiki",
  11205. "type": "boolean",
  11206. "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
  11207. "default": true,
  11208. "required": false,
  11209. "location": "body"
  11210. },
  11211. {
  11212. "name": "team_id",
  11213. "type": "integer",
  11214. "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
  11215. "required": false,
  11216. "location": "body"
  11217. },
  11218. {
  11219. "name": "auto_init",
  11220. "type": "boolean",
  11221. "description": "Pass `true` to create an initial commit with empty README.",
  11222. "default": false,
  11223. "required": false,
  11224. "location": "body"
  11225. },
  11226. {
  11227. "name": "gitignore_template",
  11228. "type": "string",
  11229. "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
  11230. "required": false,
  11231. "location": "body"
  11232. },
  11233. {
  11234. "name": "license_template",
  11235. "type": "string",
  11236. "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
  11237. "required": false,
  11238. "location": "body"
  11239. },
  11240. {
  11241. "name": "allow_squash_merge",
  11242. "type": "boolean",
  11243. "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
  11244. "default": true,
  11245. "required": false,
  11246. "location": "body"
  11247. },
  11248. {
  11249. "name": "allow_merge_commit",
  11250. "type": "boolean",
  11251. "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
  11252. "default": true,
  11253. "required": false,
  11254. "location": "body"
  11255. },
  11256. {
  11257. "name": "allow_rebase_merge",
  11258. "type": "boolean",
  11259. "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
  11260. "default": true,
  11261. "required": false,
  11262. "location": "body"
  11263. }
  11264. ],
  11265. "path": "/user/repos"
  11266. },
  11267. "createCommitComment": {
  11268. "description": "",
  11269. "documentationUrl": "https://developer.github.com/v3/repos/comments/#create-a-commit-comment",
  11270. "enabledForApps": true,
  11271. "method": "POST",
  11272. "name": "Create a commit comment",
  11273. "params": [
  11274. {
  11275. "name": "owner",
  11276. "type": "string",
  11277. "required": true,
  11278. "description": "",
  11279. "location": "url"
  11280. },
  11281. {
  11282. "name": "repo",
  11283. "type": "string",
  11284. "required": true,
  11285. "description": "",
  11286. "location": "url"
  11287. },
  11288. {
  11289. "name": "sha",
  11290. "type": "string",
  11291. "required": true,
  11292. "description": "",
  11293. "location": "url"
  11294. },
  11295. {
  11296. "name": "body",
  11297. "type": "string",
  11298. "description": "The contents of the comment.",
  11299. "required": true,
  11300. "location": "body"
  11301. },
  11302. {
  11303. "name": "path",
  11304. "type": "string",
  11305. "description": "Relative path of the file to comment on.",
  11306. "required": false,
  11307. "location": "body"
  11308. },
  11309. {
  11310. "name": "position",
  11311. "type": "integer",
  11312. "description": "Line index in the diff to comment on.",
  11313. "required": false,
  11314. "location": "body"
  11315. },
  11316. {
  11317. "name": "line",
  11318. "type": "integer",
  11319. "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
  11320. "required": false,
  11321. "location": "body"
  11322. }
  11323. ],
  11324. "path": "/repos/:owner/:repo/commits/:sha/comments"
  11325. },
  11326. "createDeployment": {
  11327. "description": "Deployments offer a few configurable parameters with sane defaults.\n\nThe `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request.\n\nThe `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This allows for easy tracking of which environments had deployments requested. The default environment is `production`.\n\nThe `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response.\n\nBy default, [commit statuses](https://developer.github.com/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed.\n\nThe `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched.\n\nThe `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled.\n\nUsers with `repo` or `repo_deployment` scopes can create a deployment for a given ref:\n\nA simple example putting the user and room into the payload to notify back to chat networks.\n\nA more advanced example specifying required commit statuses and bypassing auto-merging.\n\nThis error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.\n\nThis error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.",
  11328. "documentationUrl": "https://developer.github.com/v3/repos/deployments/#create-a-deployment",
  11329. "enabledForApps": true,
  11330. "method": "POST",
  11331. "name": "Create a deployment",
  11332. "params": [
  11333. {
  11334. "name": "owner",
  11335. "type": "string",
  11336. "required": true,
  11337. "description": "",
  11338. "location": "url"
  11339. },
  11340. {
  11341. "name": "repo",
  11342. "type": "string",
  11343. "required": true,
  11344. "description": "",
  11345. "location": "url"
  11346. },
  11347. {
  11348. "name": "ref",
  11349. "type": "string",
  11350. "description": "The ref to deploy. This can be a branch, tag, or SHA.",
  11351. "required": true,
  11352. "location": "body"
  11353. },
  11354. {
  11355. "name": "task",
  11356. "type": "string",
  11357. "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
  11358. "default": "deploy",
  11359. "required": false,
  11360. "location": "body"
  11361. },
  11362. {
  11363. "name": "auto_merge",
  11364. "type": "boolean",
  11365. "description": "Attempts to automatically merge the default branch into the requested ref, if it is behind the default branch.",
  11366. "default": true,
  11367. "required": false,
  11368. "location": "body"
  11369. },
  11370. {
  11371. "name": "required_contexts",
  11372. "type": "string[]",
  11373. "description": "The status contexts to verify against commit status checks. If this parameter is omitted, then all unique contexts will be verified before a deployment is created. To bypass checking entirely pass an empty array. Defaults to all unique contexts.",
  11374. "required": false,
  11375. "location": "body"
  11376. },
  11377. {
  11378. "name": "payload",
  11379. "type": "string",
  11380. "description": "JSON payload with extra information about the deployment.",
  11381. "default": "\"\"",
  11382. "required": false,
  11383. "location": "body"
  11384. },
  11385. {
  11386. "name": "environment",
  11387. "type": "string",
  11388. "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
  11389. "default": "production",
  11390. "required": false,
  11391. "location": "body"
  11392. },
  11393. {
  11394. "name": "description",
  11395. "type": "string",
  11396. "description": "Short description of the deployment.",
  11397. "default": "\"\"",
  11398. "required": false,
  11399. "location": "body"
  11400. },
  11401. {
  11402. "name": "transient_environment",
  11403. "type": "boolean",
  11404. "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. **This parameter requires a custom media type to be specified. Please see more in the alert below.**",
  11405. "default": false,
  11406. "required": false,
  11407. "location": "body"
  11408. },
  11409. {
  11410. "name": "production_environment",
  11411. "type": "boolean",
  11412. "description": "Specifies if the given environment is one that end-users directly interact with. **This parameter requires a custom media type to be specified. Please see more in the alert below.**",
  11413. "default": "`true` when `environment` is `production` and `false` otherwise",
  11414. "required": false,
  11415. "location": "body"
  11416. }
  11417. ],
  11418. "path": "/repos/:owner/:repo/deployments"
  11419. },
  11420. "createDeploymentStatus": {
  11421. "description": "Users with push access can create deployment statuses for a given deployment:",
  11422. "documentationUrl": "https://developer.github.com/v3/repos/deployments/#create-a-deployment-status",
  11423. "enabledForApps": true,
  11424. "method": "POST",
  11425. "name": "Create a deployment status",
  11426. "params": [
  11427. {
  11428. "name": "owner",
  11429. "type": "string",
  11430. "required": true,
  11431. "description": "",
  11432. "location": "url"
  11433. },
  11434. {
  11435. "name": "repo",
  11436. "type": "string",
  11437. "required": true,
  11438. "description": "",
  11439. "location": "url"
  11440. },
  11441. {
  11442. "name": "deployment_id",
  11443. "type": "string",
  11444. "required": true,
  11445. "description": "",
  11446. "location": "url"
  11447. },
  11448. {
  11449. "name": "state",
  11450. "type": "string",
  11451. "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `pending`, or `success`. **The `inactive` state requires a custom media type to be specified. Please see more in the alert below.**",
  11452. "required": true,
  11453. "enum": [
  11454. "error",
  11455. "failure",
  11456. "inactive",
  11457. "pending",
  11458. "success"
  11459. ],
  11460. "location": "body"
  11461. },
  11462. {
  11463. "name": "target_url",
  11464. "type": "string",
  11465. "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.",
  11466. "default": "\"\"",
  11467. "required": false,
  11468. "location": "body"
  11469. },
  11470. {
  11471. "name": "log_url",
  11472. "type": "string",
  11473. "description": "This is functionally equivalent to `target_url`. We will continue accept `target_url` to support legacy uses, but we recommend modifying this to the new name to avoid confusion. **This parameter requires a custom media type to be specified. Please see more in the alert below.**",
  11474. "default": "\"\"",
  11475. "required": false,
  11476. "location": "body"
  11477. },
  11478. {
  11479. "name": "description",
  11480. "type": "string",
  11481. "description": "A short description of the status. Maximum length of 140 characters.",
  11482. "default": "\"\"",
  11483. "required": false,
  11484. "location": "body"
  11485. },
  11486. {
  11487. "name": "environment_url",
  11488. "type": "string",
  11489. "description": "Sets the URL for accessing your environment. **This parameter requires a custom media type to be specified. Please see more in the alert below.**",
  11490. "default": "\"\"",
  11491. "required": false,
  11492. "location": "body"
  11493. },
  11494. {
  11495. "name": "auto_inactive",
  11496. "type": "boolean",
  11497. "description": "Adds a new `inactive` status to all non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. **This parameter requires a custom media type to be specified. Please see more in the alert below.**",
  11498. "default": true,
  11499. "required": false,
  11500. "location": "body"
  11501. }
  11502. ],
  11503. "path": "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  11504. },
  11505. "createFile": {
  11506. "description": "This method creates a new file in a repository\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.\n\nBoth the `author` and `committer` parameters have the same keys:\n\n| name | type | description |\n| ----- | ------ | ---------------------------------------------------- |\n| name | string | The name of the author (or committer) of the commit |\n| email | string | The email of the author (or committer) of the commit |",
  11507. "documentationUrl": "https://developer.github.com/v3/repos/contents/#create-a-file",
  11508. "enabledForApps": true,
  11509. "method": "PUT",
  11510. "name": "Create a file",
  11511. "params": [
  11512. {
  11513. "name": "owner",
  11514. "type": "string",
  11515. "required": true,
  11516. "description": "",
  11517. "location": "url"
  11518. },
  11519. {
  11520. "name": "repo",
  11521. "type": "string",
  11522. "required": true,
  11523. "description": "",
  11524. "location": "url"
  11525. },
  11526. {
  11527. "name": "path",
  11528. "type": "string",
  11529. "description": "The content path.",
  11530. "required": true,
  11531. "location": "url"
  11532. },
  11533. {
  11534. "name": "message",
  11535. "type": "string",
  11536. "description": "The commit message.",
  11537. "required": true,
  11538. "location": "body"
  11539. },
  11540. {
  11541. "name": "content",
  11542. "type": "string",
  11543. "description": "The new file content, Base64 encoded.",
  11544. "required": true,
  11545. "location": "body"
  11546. },
  11547. {
  11548. "name": "branch",
  11549. "type": "string",
  11550. "description": "The branch name.",
  11551. "default": "the repository’s default branch (usually `master`)",
  11552. "required": false,
  11553. "location": "body"
  11554. },
  11555. {
  11556. "name": "committer",
  11557. "type": "object",
  11558. "description": "object containing information about the committer.",
  11559. "location": "body"
  11560. },
  11561. {
  11562. "name": "author",
  11563. "type": "object",
  11564. "description": "object containing information about the author.",
  11565. "location": "body"
  11566. }
  11567. ],
  11568. "path": "/repos/:owner/:repo/contents/:path"
  11569. },
  11570. "createForOrg": {
  11571. "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
  11572. "documentationUrl": "https://developer.github.com/v3/repos/#create",
  11573. "enabledForApps": true,
  11574. "method": "POST",
  11575. "name": "Create a new repository in this organization",
  11576. "params": [
  11577. {
  11578. "name": "org",
  11579. "type": "string",
  11580. "required": true,
  11581. "description": "",
  11582. "location": "url"
  11583. },
  11584. {
  11585. "name": "name",
  11586. "type": "string",
  11587. "description": "The name of the repository.",
  11588. "required": true,
  11589. "location": "body"
  11590. },
  11591. {
  11592. "name": "description",
  11593. "type": "string",
  11594. "description": "A short description of the repository.",
  11595. "required": false,
  11596. "location": "body"
  11597. },
  11598. {
  11599. "name": "homepage",
  11600. "type": "string",
  11601. "description": "A URL with more information about the repository.",
  11602. "required": false,
  11603. "location": "body"
  11604. },
  11605. {
  11606. "name": "private",
  11607. "type": "boolean",
  11608. "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
  11609. "default": false,
  11610. "required": false,
  11611. "location": "body"
  11612. },
  11613. {
  11614. "name": "has_issues",
  11615. "type": "boolean",
  11616. "description": "Either `true` to enable issues for this repository or `false` to disable them.",
  11617. "default": true,
  11618. "required": false,
  11619. "location": "body"
  11620. },
  11621. {
  11622. "name": "has_projects",
  11623. "type": "boolean",
  11624. "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
  11625. "default": true,
  11626. "required": false,
  11627. "location": "body"
  11628. },
  11629. {
  11630. "name": "has_wiki",
  11631. "type": "boolean",
  11632. "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
  11633. "default": true,
  11634. "required": false,
  11635. "location": "body"
  11636. },
  11637. {
  11638. "name": "team_id",
  11639. "type": "integer",
  11640. "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
  11641. "required": false,
  11642. "location": "body"
  11643. },
  11644. {
  11645. "name": "auto_init",
  11646. "type": "boolean",
  11647. "description": "Pass `true` to create an initial commit with empty README.",
  11648. "default": false,
  11649. "required": false,
  11650. "location": "body"
  11651. },
  11652. {
  11653. "name": "gitignore_template",
  11654. "type": "string",
  11655. "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
  11656. "required": false,
  11657. "location": "body"
  11658. },
  11659. {
  11660. "name": "license_template",
  11661. "type": "string",
  11662. "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
  11663. "required": false,
  11664. "location": "body"
  11665. },
  11666. {
  11667. "name": "allow_squash_merge",
  11668. "type": "boolean",
  11669. "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
  11670. "default": true,
  11671. "required": false,
  11672. "location": "body"
  11673. },
  11674. {
  11675. "name": "allow_merge_commit",
  11676. "type": "boolean",
  11677. "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
  11678. "default": true,
  11679. "required": false,
  11680. "location": "body"
  11681. },
  11682. {
  11683. "name": "allow_rebase_merge",
  11684. "type": "boolean",
  11685. "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
  11686. "default": true,
  11687. "required": false,
  11688. "location": "body"
  11689. }
  11690. ],
  11691. "path": "/orgs/:org/repos"
  11692. },
  11693. "createHook": {
  11694. "description": "Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap.\n\n**Note**: Repository service hooks (like email or Campfire) can have at most one configured at a time. Creating hooks for a service that already has one configured will [update the existing hook](#edit-a-hook).\n\n**Note**: GitHub Services will no longer be supported as of October 1, 2018. Please see the [blog post](/changes/2018-04-25-github-services-deprecation) for details. You can use the [Replacing GitHub Services guide](https://developer.github.com/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nHere's how you can create a hook that posts payloads in JSON format:",
  11695. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#create-a-hook",
  11696. "enabledForApps": false,
  11697. "method": "POST",
  11698. "name": "Create a hook",
  11699. "params": [
  11700. {
  11701. "name": "owner",
  11702. "type": "string",
  11703. "required": true,
  11704. "description": "",
  11705. "location": "url"
  11706. },
  11707. {
  11708. "name": "repo",
  11709. "type": "string",
  11710. "required": true,
  11711. "description": "",
  11712. "location": "url"
  11713. },
  11714. {
  11715. "name": "name",
  11716. "type": "string",
  11717. "description": "Use \"web\" for a webhook or use the name of a valid service. You can use [/hooks](https://api.github.com/hooks) for the list of valid service names. **Note**: GitHub Services will no longer be supported as of October 1, 2018. Please see the [blog post](/changes/2018-04-25-github-services-deprecation) for details.",
  11718. "required": true,
  11719. "location": "body"
  11720. },
  11721. {
  11722. "name": "config",
  11723. "type": "object",
  11724. "description": "Key/value pairs to provide settings for this webhook. [These are defined below](#create-hook-config-params).",
  11725. "required": true,
  11726. "location": "body"
  11727. },
  11728. {
  11729. "name": "config.url",
  11730. "type": "string",
  11731. "description": "The URL to which the payloads will be delivered.",
  11732. "required": true,
  11733. "location": "body"
  11734. },
  11735. {
  11736. "name": "config.content_type",
  11737. "type": "string",
  11738. "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
  11739. "required": false,
  11740. "location": "body"
  11741. },
  11742. {
  11743. "name": "config.secret",
  11744. "type": "string",
  11745. "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.",
  11746. "required": false,
  11747. "location": "body"
  11748. },
  11749. {
  11750. "name": "config.insecure_ssl",
  11751. "type": "string",
  11752. "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
  11753. "required": false,
  11754. "location": "body"
  11755. },
  11756. {
  11757. "name": "events",
  11758. "type": "string[]",
  11759. "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for.",
  11760. "default": "[\"push\"]",
  11761. "required": false,
  11762. "location": "body"
  11763. },
  11764. {
  11765. "name": "active",
  11766. "type": "boolean",
  11767. "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
  11768. "default": true,
  11769. "required": false,
  11770. "location": "body"
  11771. }
  11772. ],
  11773. "path": "/repos/:owner/:repo/hooks"
  11774. },
  11775. "createRelease": {
  11776. "description": "Users with push access to the repository can create a release.",
  11777. "documentationUrl": "https://developer.github.com/v3/repos/releases/#create-a-release",
  11778. "enabledForApps": true,
  11779. "method": "POST",
  11780. "name": "Create a release",
  11781. "params": [
  11782. {
  11783. "name": "owner",
  11784. "type": "string",
  11785. "required": true,
  11786. "description": "",
  11787. "location": "url"
  11788. },
  11789. {
  11790. "name": "repo",
  11791. "type": "string",
  11792. "required": true,
  11793. "description": "",
  11794. "location": "url"
  11795. },
  11796. {
  11797. "name": "tag_name",
  11798. "type": "string",
  11799. "description": "The name of the tag.",
  11800. "required": true,
  11801. "location": "body"
  11802. },
  11803. {
  11804. "name": "target_commitish",
  11805. "type": "string",
  11806. "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
  11807. "default": "the repository's default branch (usually `master`).",
  11808. "required": false,
  11809. "location": "body"
  11810. },
  11811. {
  11812. "name": "name",
  11813. "type": "string",
  11814. "description": "The name of the release.",
  11815. "required": false,
  11816. "location": "body"
  11817. },
  11818. {
  11819. "name": "body",
  11820. "type": "string",
  11821. "description": "Text describing the contents of the tag.",
  11822. "required": false,
  11823. "location": "body"
  11824. },
  11825. {
  11826. "name": "draft",
  11827. "type": "boolean",
  11828. "description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
  11829. "default": false,
  11830. "required": false,
  11831. "location": "body"
  11832. },
  11833. {
  11834. "name": "prerelease",
  11835. "type": "boolean",
  11836. "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
  11837. "default": false,
  11838. "required": false,
  11839. "location": "body"
  11840. }
  11841. ],
  11842. "path": "/repos/:owner/:repo/releases"
  11843. },
  11844. "createStatus": {
  11845. "description": "Users with push access in a repository can create commit statuses for a given SHA.\n\nNote: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error.",
  11846. "documentationUrl": "https://developer.github.com/v3/repos/statuses/#create-a-status",
  11847. "enabledForApps": true,
  11848. "method": "POST",
  11849. "name": "Create a status",
  11850. "params": [
  11851. {
  11852. "name": "owner",
  11853. "type": "string",
  11854. "required": true,
  11855. "description": "",
  11856. "location": "url"
  11857. },
  11858. {
  11859. "name": "repo",
  11860. "type": "string",
  11861. "required": true,
  11862. "description": "",
  11863. "location": "url"
  11864. },
  11865. {
  11866. "name": "sha",
  11867. "type": "string",
  11868. "required": true,
  11869. "description": "",
  11870. "location": "url"
  11871. },
  11872. {
  11873. "name": "state",
  11874. "type": "string",
  11875. "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.",
  11876. "required": true,
  11877. "enum": [
  11878. "error",
  11879. "failure",
  11880. "pending",
  11881. "success"
  11882. ],
  11883. "location": "body"
  11884. },
  11885. {
  11886. "name": "target_url",
  11887. "type": "string",
  11888. "description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
  11889. "required": false,
  11890. "location": "body"
  11891. },
  11892. {
  11893. "name": "description",
  11894. "type": "string",
  11895. "description": "A short description of the status.",
  11896. "required": false,
  11897. "location": "body"
  11898. },
  11899. {
  11900. "name": "context",
  11901. "type": "string",
  11902. "description": "A string label to differentiate this status from the status of other systems.",
  11903. "default": "default",
  11904. "required": false,
  11905. "location": "body"
  11906. }
  11907. ],
  11908. "path": "/repos/:owner/:repo/statuses/:sha"
  11909. },
  11910. "delete": {
  11911. "description": "Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.\n\nIf an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:",
  11912. "documentationUrl": "https://developer.github.com/v3/repos/#delete-a-repository",
  11913. "enabledForApps": true,
  11914. "method": "DELETE",
  11915. "name": "Delete a repository",
  11916. "params": [
  11917. {
  11918. "name": "owner",
  11919. "type": "string",
  11920. "required": true,
  11921. "description": "",
  11922. "location": "url"
  11923. },
  11924. {
  11925. "name": "repo",
  11926. "type": "string",
  11927. "required": true,
  11928. "description": "",
  11929. "location": "url"
  11930. }
  11931. ],
  11932. "path": "/repos/:owner/:repo"
  11933. },
  11934. "deleteAsset": {
  11935. "description": "",
  11936. "documentationUrl": "https://developer.github.com/v3/repos/releases/#delete-a-release-asset",
  11937. "enabledForApps": true,
  11938. "method": "DELETE",
  11939. "name": "Delete a release asset",
  11940. "params": [
  11941. {
  11942. "name": "owner",
  11943. "type": "string",
  11944. "required": true,
  11945. "description": "",
  11946. "location": "url"
  11947. },
  11948. {
  11949. "name": "repo",
  11950. "type": "string",
  11951. "required": true,
  11952. "description": "",
  11953. "location": "url"
  11954. },
  11955. {
  11956. "name": "asset_id",
  11957. "type": "string",
  11958. "required": true,
  11959. "description": "",
  11960. "location": "url"
  11961. }
  11962. ],
  11963. "path": "/repos/:owner/:repo/releases/assets/:asset_id"
  11964. },
  11965. "deleteCommitComment": {
  11966. "description": "",
  11967. "documentationUrl": "https://developer.github.com/v3/repos/comments/#delete-a-commit-comment",
  11968. "enabledForApps": true,
  11969. "method": "DELETE",
  11970. "name": "Delete a commit comment",
  11971. "params": [
  11972. {
  11973. "name": "owner",
  11974. "type": "string",
  11975. "required": true,
  11976. "description": "",
  11977. "location": "url"
  11978. },
  11979. {
  11980. "name": "repo",
  11981. "type": "string",
  11982. "required": true,
  11983. "description": "",
  11984. "location": "url"
  11985. },
  11986. {
  11987. "name": "comment_id",
  11988. "type": "string",
  11989. "required": true,
  11990. "description": "",
  11991. "location": "url"
  11992. }
  11993. ],
  11994. "path": "/repos/:owner/:repo/comments/:comment_id"
  11995. },
  11996. "deleteDeployKey": {
  11997. "description": "",
  11998. "documentationUrl": "https://developer.github.com/v3/repos/keys/#remove-a-deploy-key",
  11999. "enabledForApps": true,
  12000. "method": "DELETE",
  12001. "name": "Remove a deploy key",
  12002. "params": [
  12003. {
  12004. "name": "owner",
  12005. "type": "string",
  12006. "required": true,
  12007. "description": "",
  12008. "location": "url"
  12009. },
  12010. {
  12011. "name": "repo",
  12012. "type": "string",
  12013. "required": true,
  12014. "description": "",
  12015. "location": "url"
  12016. },
  12017. {
  12018. "name": "key_id",
  12019. "type": "string",
  12020. "required": true,
  12021. "description": "",
  12022. "location": "url"
  12023. }
  12024. ],
  12025. "path": "/repos/:owner/:repo/keys/:key_id"
  12026. },
  12027. "deleteDownload": {
  12028. "description": "",
  12029. "documentationUrl": "https://developer.github.com/v3/repos/downloads/#delete-a-download",
  12030. "enabledForApps": false,
  12031. "method": "DELETE",
  12032. "name": "Delete a download",
  12033. "params": [
  12034. {
  12035. "name": "owner",
  12036. "type": "string",
  12037. "required": true,
  12038. "description": "",
  12039. "location": "url"
  12040. },
  12041. {
  12042. "name": "repo",
  12043. "type": "string",
  12044. "required": true,
  12045. "description": "",
  12046. "location": "url"
  12047. },
  12048. {
  12049. "name": "download_id",
  12050. "type": "string",
  12051. "required": true,
  12052. "description": "",
  12053. "location": "url"
  12054. }
  12055. ],
  12056. "path": "/repos/:owner/:repo/downloads/:download_id"
  12057. },
  12058. "deleteFile": {
  12059. "description": "This method deletes a file in a repository\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.\n\nBoth the `author` and `committer` parameters have the same keys:\n\n| name | type | description |\n| ----- | ------ | ---------------------------------------------------- |\n| name | string | The name of the author (or committer) of the commit |\n| email | string | The email of the author (or committer) of the commit |",
  12060. "documentationUrl": "https://developer.github.com/v3/repos/contents/#delete-a-file",
  12061. "enabledForApps": true,
  12062. "method": "DELETE",
  12063. "name": "Delete a file",
  12064. "params": [
  12065. {
  12066. "name": "owner",
  12067. "type": "string",
  12068. "required": true,
  12069. "description": "",
  12070. "location": "url"
  12071. },
  12072. {
  12073. "name": "repo",
  12074. "type": "string",
  12075. "required": true,
  12076. "description": "",
  12077. "location": "url"
  12078. },
  12079. {
  12080. "name": "path",
  12081. "type": "string",
  12082. "description": "The content path.",
  12083. "required": true,
  12084. "location": "url"
  12085. },
  12086. {
  12087. "name": "message",
  12088. "type": "string",
  12089. "description": "The commit message.",
  12090. "required": true,
  12091. "location": "body"
  12092. },
  12093. {
  12094. "name": "sha",
  12095. "type": "string",
  12096. "description": "The blob SHA of the file being replaced.",
  12097. "required": true,
  12098. "location": "body"
  12099. },
  12100. {
  12101. "name": "branch",
  12102. "type": "string",
  12103. "description": "The branch name.",
  12104. "default": "the repository’s default branch (usually `master`)",
  12105. "required": false,
  12106. "location": "body"
  12107. },
  12108. {
  12109. "name": "committer",
  12110. "type": "object",
  12111. "description": "object containing information about the committer.",
  12112. "location": "body"
  12113. },
  12114. {
  12115. "name": "author",
  12116. "type": "object",
  12117. "description": "object containing information about the author.",
  12118. "location": "body"
  12119. }
  12120. ],
  12121. "path": "/repos/:owner/:repo/contents/:path"
  12122. },
  12123. "deleteHook": {
  12124. "description": "",
  12125. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#delete-a-hook",
  12126. "enabledForApps": true,
  12127. "method": "DELETE",
  12128. "name": "Delete a hook",
  12129. "params": [
  12130. {
  12131. "name": "owner",
  12132. "type": "string",
  12133. "required": true,
  12134. "description": "",
  12135. "location": "url"
  12136. },
  12137. {
  12138. "name": "repo",
  12139. "type": "string",
  12140. "required": true,
  12141. "description": "",
  12142. "location": "url"
  12143. },
  12144. {
  12145. "name": "hook_id",
  12146. "type": "string",
  12147. "required": true,
  12148. "description": "",
  12149. "location": "url"
  12150. }
  12151. ],
  12152. "path": "/repos/:owner/:repo/hooks/:hook_id"
  12153. },
  12154. "deleteInvite": {
  12155. "description": "",
  12156. "documentationUrl": "https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation",
  12157. "enabledForApps": true,
  12158. "method": "DELETE",
  12159. "name": "Delete a repository invitation",
  12160. "params": [
  12161. {
  12162. "name": "owner",
  12163. "type": "string",
  12164. "required": true,
  12165. "description": "",
  12166. "location": "url"
  12167. },
  12168. {
  12169. "name": "repo",
  12170. "type": "string",
  12171. "required": true,
  12172. "description": "",
  12173. "location": "url"
  12174. },
  12175. {
  12176. "name": "invitation_id",
  12177. "type": "string",
  12178. "required": true,
  12179. "description": "",
  12180. "location": "url"
  12181. }
  12182. ],
  12183. "path": "/repos/:owner/:repo/invitations/:invitation_id"
  12184. },
  12185. "deleteRelease": {
  12186. "description": "Users with push access to the repository can delete a release.",
  12187. "documentationUrl": "https://developer.github.com/v3/repos/releases/#delete-a-release",
  12188. "enabledForApps": true,
  12189. "method": "DELETE",
  12190. "name": "Delete a release",
  12191. "params": [
  12192. {
  12193. "name": "owner",
  12194. "type": "string",
  12195. "required": true,
  12196. "description": "",
  12197. "location": "url"
  12198. },
  12199. {
  12200. "name": "repo",
  12201. "type": "string",
  12202. "required": true,
  12203. "description": "",
  12204. "location": "url"
  12205. },
  12206. {
  12207. "name": "release_id",
  12208. "type": "string",
  12209. "required": true,
  12210. "description": "",
  12211. "location": "url"
  12212. }
  12213. ],
  12214. "path": "/repos/:owner/:repo/releases/:release_id"
  12215. },
  12216. "edit": {
  12217. "description": "**Note**: To edit a repository's topics, use the [`topics` endpoint](#replace-all-topics-for-a-repository).",
  12218. "documentationUrl": "https://developer.github.com/v3/repos/#edit",
  12219. "enabledForApps": true,
  12220. "method": "PATCH",
  12221. "name": "Edit",
  12222. "params": [
  12223. {
  12224. "name": "owner",
  12225. "type": "string",
  12226. "required": true,
  12227. "description": "",
  12228. "location": "url"
  12229. },
  12230. {
  12231. "name": "repo",
  12232. "type": "string",
  12233. "required": true,
  12234. "description": "",
  12235. "location": "url"
  12236. },
  12237. {
  12238. "name": "name",
  12239. "type": "string",
  12240. "description": "The name of the repository.",
  12241. "required": true,
  12242. "location": "body"
  12243. },
  12244. {
  12245. "name": "description",
  12246. "type": "string",
  12247. "description": "A short description of the repository.",
  12248. "required": false,
  12249. "location": "body"
  12250. },
  12251. {
  12252. "name": "homepage",
  12253. "type": "string",
  12254. "description": "A URL with more information about the repository.",
  12255. "required": false,
  12256. "location": "body"
  12257. },
  12258. {
  12259. "name": "private",
  12260. "type": "boolean",
  12261. "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
  12262. "default": false,
  12263. "required": false,
  12264. "location": "body"
  12265. },
  12266. {
  12267. "name": "has_issues",
  12268. "type": "boolean",
  12269. "description": "Either `true` to enable issues for this repository or `false` to disable them.",
  12270. "default": true,
  12271. "required": false,
  12272. "location": "body"
  12273. },
  12274. {
  12275. "name": "has_projects",
  12276. "type": "boolean",
  12277. "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
  12278. "default": true,
  12279. "required": false,
  12280. "location": "body"
  12281. },
  12282. {
  12283. "name": "has_wiki",
  12284. "type": "boolean",
  12285. "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
  12286. "default": true,
  12287. "required": false,
  12288. "location": "body"
  12289. },
  12290. {
  12291. "name": "default_branch",
  12292. "type": "string",
  12293. "description": "Updates the default branch for this repository.",
  12294. "required": false,
  12295. "location": "body"
  12296. },
  12297. {
  12298. "name": "allow_squash_merge",
  12299. "type": "boolean",
  12300. "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
  12301. "default": true,
  12302. "required": false,
  12303. "location": "body"
  12304. },
  12305. {
  12306. "name": "allow_merge_commit",
  12307. "type": "boolean",
  12308. "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
  12309. "default": true,
  12310. "required": false,
  12311. "location": "body"
  12312. },
  12313. {
  12314. "name": "allow_rebase_merge",
  12315. "type": "boolean",
  12316. "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
  12317. "default": true,
  12318. "required": false,
  12319. "location": "body"
  12320. },
  12321. {
  12322. "name": "archived",
  12323. "type": "boolean",
  12324. "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
  12325. "default": false,
  12326. "required": false,
  12327. "location": "body"
  12328. }
  12329. ],
  12330. "path": "/repos/:owner/:repo"
  12331. },
  12332. "editAsset": {
  12333. "description": "Users with push access to the repository can edit a release asset.",
  12334. "documentationUrl": "https://developer.github.com/v3/repos/releases/#edit-a-release-asset",
  12335. "enabledForApps": true,
  12336. "method": "PATCH",
  12337. "name": "Edit a release asset",
  12338. "params": [
  12339. {
  12340. "name": "owner",
  12341. "type": "string",
  12342. "required": true,
  12343. "description": "",
  12344. "location": "url"
  12345. },
  12346. {
  12347. "name": "repo",
  12348. "type": "string",
  12349. "required": true,
  12350. "description": "",
  12351. "location": "url"
  12352. },
  12353. {
  12354. "name": "asset_id",
  12355. "type": "string",
  12356. "required": true,
  12357. "description": "",
  12358. "location": "url"
  12359. },
  12360. {
  12361. "name": "name",
  12362. "type": "string",
  12363. "description": "The file name of the asset.",
  12364. "required": false,
  12365. "location": "body"
  12366. },
  12367. {
  12368. "name": "label",
  12369. "type": "string",
  12370. "description": "An alternate short description of the asset. Used in place of the filename.",
  12371. "required": false,
  12372. "location": "body"
  12373. }
  12374. ],
  12375. "path": "/repos/:owner/:repo/releases/assets/:asset_id"
  12376. },
  12377. "editHook": {
  12378. "description": "",
  12379. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#edit-a-hook",
  12380. "enabledForApps": false,
  12381. "method": "PATCH",
  12382. "name": "Edit a hook",
  12383. "params": [
  12384. {
  12385. "name": "owner",
  12386. "type": "string",
  12387. "required": true,
  12388. "description": "",
  12389. "location": "url"
  12390. },
  12391. {
  12392. "name": "repo",
  12393. "type": "string",
  12394. "required": true,
  12395. "description": "",
  12396. "location": "url"
  12397. },
  12398. {
  12399. "name": "hook_id",
  12400. "type": "string",
  12401. "required": true,
  12402. "description": "",
  12403. "location": "url"
  12404. },
  12405. {
  12406. "name": "config",
  12407. "type": "object",
  12408. "description": "Key/value pairs to provide settings for this webhook. [These are defined below](#create-hook-config-params).",
  12409. "required": false,
  12410. "location": "body"
  12411. },
  12412. {
  12413. "name": "config.url",
  12414. "type": "string",
  12415. "description": "The URL to which the payloads will be delivered.",
  12416. "required": true,
  12417. "location": "body"
  12418. },
  12419. {
  12420. "name": "config.content_type",
  12421. "type": "string",
  12422. "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
  12423. "required": false,
  12424. "location": "body"
  12425. },
  12426. {
  12427. "name": "config.secret",
  12428. "type": "string",
  12429. "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.",
  12430. "required": false,
  12431. "location": "body"
  12432. },
  12433. {
  12434. "name": "config.insecure_ssl",
  12435. "type": "string",
  12436. "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
  12437. "required": false,
  12438. "location": "body"
  12439. },
  12440. {
  12441. "name": "events",
  12442. "type": "string[]",
  12443. "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
  12444. "default": "[\"push\"]",
  12445. "required": false,
  12446. "location": "body"
  12447. },
  12448. {
  12449. "name": "add_events",
  12450. "type": "string[]",
  12451. "description": "Determines a list of events to be added to the list of events that the Hook triggers for.",
  12452. "required": false,
  12453. "location": "body"
  12454. },
  12455. {
  12456. "name": "remove_events",
  12457. "type": "string[]",
  12458. "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
  12459. "required": false,
  12460. "location": "body"
  12461. },
  12462. {
  12463. "name": "active",
  12464. "type": "boolean",
  12465. "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
  12466. "default": true,
  12467. "required": false,
  12468. "location": "body"
  12469. }
  12470. ],
  12471. "path": "/repos/:owner/:repo/hooks/:hook_id"
  12472. },
  12473. "editRelease": {
  12474. "description": "Users with push access to the repository can edit a release.",
  12475. "documentationUrl": "https://developer.github.com/v3/repos/releases/#edit-a-release",
  12476. "enabledForApps": true,
  12477. "method": "PATCH",
  12478. "name": "Edit a release",
  12479. "params": [
  12480. {
  12481. "name": "owner",
  12482. "type": "string",
  12483. "required": true,
  12484. "description": "",
  12485. "location": "url"
  12486. },
  12487. {
  12488. "name": "repo",
  12489. "type": "string",
  12490. "required": true,
  12491. "description": "",
  12492. "location": "url"
  12493. },
  12494. {
  12495. "name": "release_id",
  12496. "type": "string",
  12497. "required": true,
  12498. "description": "",
  12499. "location": "url"
  12500. },
  12501. {
  12502. "name": "tag_name",
  12503. "type": "string",
  12504. "description": "The name of the tag.",
  12505. "required": false,
  12506. "location": "body"
  12507. },
  12508. {
  12509. "name": "target_commitish",
  12510. "type": "string",
  12511. "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
  12512. "default": "the repository's default branch (usually `master`).",
  12513. "required": false,
  12514. "location": "body"
  12515. },
  12516. {
  12517. "name": "name",
  12518. "type": "string",
  12519. "description": "The name of the release.",
  12520. "required": false,
  12521. "location": "body"
  12522. },
  12523. {
  12524. "name": "body",
  12525. "type": "string",
  12526. "description": "Text describing the contents of the tag.",
  12527. "required": false,
  12528. "location": "body"
  12529. },
  12530. {
  12531. "name": "draft",
  12532. "type": "boolean",
  12533. "description": "`true` makes the release a draft, and `false` publishes the release.",
  12534. "required": false,
  12535. "location": "body"
  12536. },
  12537. {
  12538. "name": "prerelease",
  12539. "type": "boolean",
  12540. "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
  12541. "required": false,
  12542. "location": "body"
  12543. }
  12544. ],
  12545. "path": "/repos/:owner/:repo/releases/:release_id"
  12546. },
  12547. "fork": {
  12548. "description": "Create a fork for the authenticated user.\n\nForking a Repository happens asynchronously. Therefore, you may have to wait a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub support](https://github.com/contact).",
  12549. "documentationUrl": "https://developer.github.com/v3/repos/forks/#create-a-fork",
  12550. "enabledForApps": true,
  12551. "method": "POST",
  12552. "name": "Create a fork",
  12553. "params": [
  12554. {
  12555. "name": "owner",
  12556. "type": "string",
  12557. "required": true,
  12558. "description": "",
  12559. "location": "url"
  12560. },
  12561. {
  12562. "name": "repo",
  12563. "type": "string",
  12564. "required": true,
  12565. "description": "",
  12566. "location": "url"
  12567. },
  12568. {
  12569. "name": "organization",
  12570. "type": "string",
  12571. "description": "Optional parameter to specify the organization name if forking into an organization.",
  12572. "required": false,
  12573. "location": "body"
  12574. }
  12575. ],
  12576. "path": "/repos/:owner/:repo/forks"
  12577. },
  12578. "get": {
  12579. "description": "The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.",
  12580. "documentationUrl": "https://developer.github.com/v3/repos/#get",
  12581. "enabledForApps": true,
  12582. "method": "GET",
  12583. "name": "Get",
  12584. "params": [
  12585. {
  12586. "name": "owner",
  12587. "type": "string",
  12588. "required": true,
  12589. "description": "",
  12590. "location": "url"
  12591. },
  12592. {
  12593. "name": "repo",
  12594. "type": "string",
  12595. "required": true,
  12596. "description": "",
  12597. "location": "url"
  12598. }
  12599. ],
  12600. "path": "/repos/:owner/:repo"
  12601. },
  12602. "getAll": {
  12603. "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.",
  12604. "documentationUrl": "https://developer.github.com/v3/repos/#list-your-repositories",
  12605. "enabledForApps": false,
  12606. "method": "GET",
  12607. "name": "List your repositories",
  12608. "params": [
  12609. {
  12610. "name": "visibility",
  12611. "type": "string",
  12612. "description": "Can be one of `all`, `public`, or `private`.",
  12613. "default": "all",
  12614. "required": false,
  12615. "enum": [
  12616. "all",
  12617. "public",
  12618. "private"
  12619. ],
  12620. "location": "query"
  12621. },
  12622. {
  12623. "name": "affiliation",
  12624. "type": "string",
  12625. "description": "Comma-separated list of values. Can include: \n\\* `owner`: Repositories that are owned by the authenticated user. \n\\* `collaborator`: Repositories that the user has been added to as a collaborator. \n\\* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.",
  12626. "default": "owner,collaborator,organization_member",
  12627. "required": false,
  12628. "enum": [
  12629. "owner",
  12630. "collaborator",
  12631. "organization_member"
  12632. ],
  12633. "location": "query"
  12634. },
  12635. {
  12636. "name": "type",
  12637. "type": "string",
  12638. "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**.",
  12639. "default": "all",
  12640. "required": false,
  12641. "enum": [
  12642. "all",
  12643. "owner",
  12644. "public",
  12645. "private",
  12646. "member"
  12647. ],
  12648. "location": "query"
  12649. },
  12650. {
  12651. "name": "sort",
  12652. "type": "string",
  12653. "description": "Can be one of `created`, `updated`, `pushed`, `full_name`.",
  12654. "default": "full_name",
  12655. "required": false,
  12656. "enum": [
  12657. "created",
  12658. "updated",
  12659. "pushed",
  12660. "full_name"
  12661. ],
  12662. "location": "query"
  12663. },
  12664. {
  12665. "name": "direction",
  12666. "type": "string",
  12667. "description": "Can be one of `asc` or `desc`.",
  12668. "default": "when using `full_name`: `asc`; otherwise `desc`",
  12669. "required": false,
  12670. "enum": [
  12671. "asc",
  12672. "desc"
  12673. ],
  12674. "location": "query"
  12675. },
  12676. {
  12677. "name": "per_page",
  12678. "type": "integer",
  12679. "required": false,
  12680. "description": "Results per page (max 100)",
  12681. "default": 30,
  12682. "location": "query"
  12683. },
  12684. {
  12685. "name": "page",
  12686. "type": "integer",
  12687. "required": false,
  12688. "description": "Page number of the results to fetch.",
  12689. "default": 1,
  12690. "location": "query"
  12691. }
  12692. ],
  12693. "path": "/user/repos"
  12694. },
  12695. "getAllCommitComments": {
  12696. "description": "Commit Comments use [these custom media types](#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/v3/media/).\n\nComments are ordered by ascending ID.",
  12697. "documentationUrl": "https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository",
  12698. "enabledForApps": true,
  12699. "method": "GET",
  12700. "name": "List commit comments for a repository",
  12701. "params": [
  12702. {
  12703. "name": "owner",
  12704. "type": "string",
  12705. "required": true,
  12706. "description": "",
  12707. "location": "url"
  12708. },
  12709. {
  12710. "name": "repo",
  12711. "type": "string",
  12712. "required": true,
  12713. "description": "",
  12714. "location": "url"
  12715. },
  12716. {
  12717. "name": "per_page",
  12718. "type": "integer",
  12719. "required": false,
  12720. "description": "Results per page (max 100)",
  12721. "default": 30,
  12722. "location": "query"
  12723. },
  12724. {
  12725. "name": "page",
  12726. "type": "integer",
  12727. "required": false,
  12728. "description": "Page number of the results to fetch.",
  12729. "default": 1,
  12730. "location": "query"
  12731. }
  12732. ],
  12733. "path": "/repos/:owner/:repo/comments"
  12734. },
  12735. "getArchiveLink": {
  12736. "description": "This method will return a `302` to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request.\n\n_Note_: For private repositories, these links are temporary and expire after five minutes.\n\nTo follow redirects with curl, use the `-L` switch:\n\n",
  12737. "documentationUrl": "https://developer.github.com/v3/repos/contents/#get-archive-link",
  12738. "enabledForApps": true,
  12739. "method": "GET",
  12740. "name": "Get archive link",
  12741. "params": [
  12742. {
  12743. "name": "owner",
  12744. "type": "string",
  12745. "required": true,
  12746. "description": "",
  12747. "location": "url"
  12748. },
  12749. {
  12750. "name": "repo",
  12751. "type": "string",
  12752. "required": true,
  12753. "description": "",
  12754. "location": "url"
  12755. },
  12756. {
  12757. "name": "archive_format",
  12758. "type": "string",
  12759. "description": "Can be either `tarball` or `zipball`.",
  12760. "default": "tarball",
  12761. "required": true,
  12762. "enum": [
  12763. "tarball",
  12764. "zipball"
  12765. ],
  12766. "location": "url"
  12767. },
  12768. {
  12769. "name": "ref",
  12770. "type": "string",
  12771. "description": "A valid Git reference.",
  12772. "default": "the repository’s default branch (usually `master`)",
  12773. "required": true,
  12774. "location": "url"
  12775. }
  12776. ],
  12777. "path": "/repos/:owner/:repo/:archive_format/:ref"
  12778. },
  12779. "getAsset": {
  12780. "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/v3/media/#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.",
  12781. "documentationUrl": "https://developer.github.com/v3/repos/releases/#get-a-single-release-asset",
  12782. "enabledForApps": true,
  12783. "method": "GET",
  12784. "name": "Get a single release asset",
  12785. "params": [
  12786. {
  12787. "name": "owner",
  12788. "type": "string",
  12789. "required": true,
  12790. "description": "",
  12791. "location": "url"
  12792. },
  12793. {
  12794. "name": "repo",
  12795. "type": "string",
  12796. "required": true,
  12797. "description": "",
  12798. "location": "url"
  12799. },
  12800. {
  12801. "name": "asset_id",
  12802. "type": "string",
  12803. "required": true,
  12804. "description": "",
  12805. "location": "url"
  12806. }
  12807. ],
  12808. "path": "/repos/:owner/:repo/releases/assets/:asset_id"
  12809. },
  12810. "getAssets": {
  12811. "description": "",
  12812. "documentationUrl": "https://developer.github.com/v3/repos/releases/#list-assets-for-a-release",
  12813. "enabledForApps": true,
  12814. "method": "GET",
  12815. "name": "List assets for a release",
  12816. "params": [
  12817. {
  12818. "name": "owner",
  12819. "type": "string",
  12820. "required": true,
  12821. "description": "",
  12822. "location": "url"
  12823. },
  12824. {
  12825. "name": "repo",
  12826. "type": "string",
  12827. "required": true,
  12828. "description": "",
  12829. "location": "url"
  12830. },
  12831. {
  12832. "name": "release_id",
  12833. "type": "string",
  12834. "required": true,
  12835. "description": "",
  12836. "location": "url"
  12837. },
  12838. {
  12839. "name": "per_page",
  12840. "type": "integer",
  12841. "required": false,
  12842. "description": "Results per page (max 100)",
  12843. "default": 30,
  12844. "location": "query"
  12845. },
  12846. {
  12847. "name": "page",
  12848. "type": "integer",
  12849. "required": false,
  12850. "description": "Page number of the results to fetch.",
  12851. "default": 1,
  12852. "location": "query"
  12853. }
  12854. ],
  12855. "path": "/repos/:owner/:repo/releases/:release_id/assets"
  12856. },
  12857. "getBranch": {
  12858. "description": "",
  12859. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-branch",
  12860. "enabledForApps": true,
  12861. "method": "GET",
  12862. "name": "Get branch",
  12863. "params": [
  12864. {
  12865. "name": "owner",
  12866. "type": "string",
  12867. "required": true,
  12868. "description": "",
  12869. "location": "url"
  12870. },
  12871. {
  12872. "name": "repo",
  12873. "type": "string",
  12874. "required": true,
  12875. "description": "",
  12876. "location": "url"
  12877. },
  12878. {
  12879. "name": "branch",
  12880. "type": "string",
  12881. "required": true,
  12882. "description": "",
  12883. "location": "url"
  12884. }
  12885. ],
  12886. "path": "/repos/:owner/:repo/branches/:branch"
  12887. },
  12888. "getBranchProtection": {
  12889. "description": "",
  12890. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-branch-protection",
  12891. "enabledForApps": true,
  12892. "method": "GET",
  12893. "name": "Get branch protection",
  12894. "params": [
  12895. {
  12896. "name": "owner",
  12897. "type": "string",
  12898. "required": true,
  12899. "description": "",
  12900. "location": "url"
  12901. },
  12902. {
  12903. "name": "repo",
  12904. "type": "string",
  12905. "required": true,
  12906. "description": "",
  12907. "location": "url"
  12908. },
  12909. {
  12910. "name": "branch",
  12911. "type": "string",
  12912. "required": true,
  12913. "description": "",
  12914. "location": "url"
  12915. }
  12916. ],
  12917. "path": "/repos/:owner/:repo/branches/:branch/protection"
  12918. },
  12919. "getBranches": {
  12920. "description": "",
  12921. "documentationUrl": "https://developer.github.com/v3/repos/branches/#list-branches",
  12922. "enabledForApps": true,
  12923. "method": "GET",
  12924. "name": "List branches",
  12925. "params": [
  12926. {
  12927. "name": "owner",
  12928. "type": "string",
  12929. "required": true,
  12930. "description": "",
  12931. "location": "url"
  12932. },
  12933. {
  12934. "name": "repo",
  12935. "type": "string",
  12936. "required": true,
  12937. "description": "",
  12938. "location": "url"
  12939. },
  12940. {
  12941. "name": "protected",
  12942. "type": "boolean",
  12943. "description": "Setting to `true` returns only protected branches.",
  12944. "required": false,
  12945. "location": "query"
  12946. },
  12947. {
  12948. "name": "per_page",
  12949. "type": "integer",
  12950. "required": false,
  12951. "description": "Results per page (max 100)",
  12952. "default": 30,
  12953. "location": "query"
  12954. },
  12955. {
  12956. "name": "page",
  12957. "type": "integer",
  12958. "required": false,
  12959. "description": "Page number of the results to fetch.",
  12960. "default": 1,
  12961. "location": "query"
  12962. }
  12963. ],
  12964. "path": "/repos/:owner/:repo/branches"
  12965. },
  12966. "getClones": {
  12967. "description": "Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.",
  12968. "documentationUrl": "https://developer.github.com/v3/repos/traffic/#clones",
  12969. "enabledForApps": true,
  12970. "method": "GET",
  12971. "name": "Clones",
  12972. "params": [
  12973. {
  12974. "name": "owner",
  12975. "type": "string",
  12976. "required": true,
  12977. "description": "",
  12978. "location": "url"
  12979. },
  12980. {
  12981. "name": "repo",
  12982. "type": "string",
  12983. "required": true,
  12984. "description": "",
  12985. "location": "url"
  12986. },
  12987. {
  12988. "name": "per",
  12989. "type": "string",
  12990. "description": "Must be one of: `day`, `week`.",
  12991. "default": "day",
  12992. "required": false,
  12993. "enum": [
  12994. "day",
  12995. "week"
  12996. ],
  12997. "location": "query"
  12998. }
  12999. ],
  13000. "path": "/repos/:owner/:repo/traffic/clones"
  13001. },
  13002. "getCollaborators": {
  13003. "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
  13004. "documentationUrl": "https://developer.github.com/v3/repos/collaborators/#list-collaborators",
  13005. "enabledForApps": true,
  13006. "method": "GET",
  13007. "name": "List collaborators",
  13008. "params": [
  13009. {
  13010. "name": "owner",
  13011. "type": "string",
  13012. "required": true,
  13013. "description": "",
  13014. "location": "url"
  13015. },
  13016. {
  13017. "name": "repo",
  13018. "type": "string",
  13019. "required": true,
  13020. "description": "",
  13021. "location": "url"
  13022. },
  13023. {
  13024. "name": "affiliation",
  13025. "type": "string",
  13026. "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.",
  13027. "default": "all",
  13028. "required": false,
  13029. "enum": [
  13030. "outside",
  13031. "direct",
  13032. "all"
  13033. ],
  13034. "location": "query"
  13035. },
  13036. {
  13037. "name": "per_page",
  13038. "type": "integer",
  13039. "required": false,
  13040. "description": "Results per page (max 100)",
  13041. "default": 30,
  13042. "location": "query"
  13043. },
  13044. {
  13045. "name": "page",
  13046. "type": "integer",
  13047. "required": false,
  13048. "description": "Page number of the results to fetch.",
  13049. "default": 1,
  13050. "location": "query"
  13051. }
  13052. ],
  13053. "path": "/repos/:owner/:repo/collaborators"
  13054. },
  13055. "getCombinedStatusForRef": {
  13056. "description": "Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.\n\nThe most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/v3/#pagination) if there are over 100 contexts.\n\nAdditionally, a combined `state` is returned. The `state` is one of:\n\n* **failure** if any of the contexts report as `error` or `failure`\n* **pending** if there are no statuses or a context is `pending`\n* **success** if the latest status for all contexts is `success`",
  13057. "documentationUrl": "https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref",
  13058. "enabledForApps": true,
  13059. "method": "GET",
  13060. "name": "Get the combined status for a specific ref",
  13061. "params": [
  13062. {
  13063. "name": "owner",
  13064. "type": "string",
  13065. "required": true,
  13066. "description": "",
  13067. "location": "url"
  13068. },
  13069. {
  13070. "name": "repo",
  13071. "type": "string",
  13072. "required": true,
  13073. "description": "",
  13074. "location": "url"
  13075. },
  13076. {
  13077. "name": "ref",
  13078. "type": "string",
  13079. "required": true,
  13080. "description": "",
  13081. "location": "url"
  13082. }
  13083. ],
  13084. "path": "/repos/:owner/:repo/commits/:ref/status"
  13085. },
  13086. "getCommit": {
  13087. "description": "Diffs with binary data will have no 'patch' property. Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.",
  13088. "documentationUrl": "https://developer.github.com/v3/repos/commits/#get-a-single-commit",
  13089. "enabledForApps": true,
  13090. "method": "GET",
  13091. "name": "Get a single commit",
  13092. "params": [
  13093. {
  13094. "name": "owner",
  13095. "type": "string",
  13096. "required": true,
  13097. "description": "",
  13098. "location": "url"
  13099. },
  13100. {
  13101. "name": "repo",
  13102. "type": "string",
  13103. "required": true,
  13104. "description": "",
  13105. "location": "url"
  13106. },
  13107. {
  13108. "name": "sha",
  13109. "type": "string",
  13110. "required": true,
  13111. "description": "",
  13112. "location": "url"
  13113. }
  13114. ],
  13115. "path": "/repos/:owner/:repo/commits/:sha"
  13116. },
  13117. "getCommitComment": {
  13118. "description": "",
  13119. "documentationUrl": "https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment",
  13120. "enabledForApps": true,
  13121. "method": "GET",
  13122. "name": "Get a single commit comment",
  13123. "params": [
  13124. {
  13125. "name": "owner",
  13126. "type": "string",
  13127. "required": true,
  13128. "description": "",
  13129. "location": "url"
  13130. },
  13131. {
  13132. "name": "repo",
  13133. "type": "string",
  13134. "required": true,
  13135. "description": "",
  13136. "location": "url"
  13137. },
  13138. {
  13139. "name": "comment_id",
  13140. "type": "string",
  13141. "required": true,
  13142. "description": "",
  13143. "location": "url"
  13144. }
  13145. ],
  13146. "path": "/repos/:owner/:repo/comments/:comment_id"
  13147. },
  13148. "getCommitComments": {
  13149. "description": "",
  13150. "documentationUrl": "https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit",
  13151. "enabledForApps": true,
  13152. "method": "GET",
  13153. "name": "List comments for a single commit",
  13154. "params": [
  13155. {
  13156. "name": "owner",
  13157. "type": "string",
  13158. "required": true,
  13159. "description": "",
  13160. "location": "url"
  13161. },
  13162. {
  13163. "name": "repo",
  13164. "type": "string",
  13165. "required": true,
  13166. "description": "",
  13167. "location": "url"
  13168. },
  13169. {
  13170. "name": "ref",
  13171. "type": "string",
  13172. "required": true,
  13173. "description": "",
  13174. "location": "url"
  13175. },
  13176. {
  13177. "name": "per_page",
  13178. "type": "integer",
  13179. "required": false,
  13180. "description": "Results per page (max 100)",
  13181. "default": 30,
  13182. "location": "query"
  13183. },
  13184. {
  13185. "name": "page",
  13186. "type": "integer",
  13187. "required": false,
  13188. "description": "Page number of the results to fetch.",
  13189. "default": 1,
  13190. "location": "query"
  13191. }
  13192. ],
  13193. "path": "/repos/:owner/:repo/commits/:ref/comments"
  13194. },
  13195. "getCommits": {
  13196. "description": "",
  13197. "documentationUrl": "https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository",
  13198. "enabledForApps": true,
  13199. "method": "GET",
  13200. "name": "List commits on a repository",
  13201. "params": [
  13202. {
  13203. "name": "owner",
  13204. "type": "string",
  13205. "required": true,
  13206. "description": "",
  13207. "location": "url"
  13208. },
  13209. {
  13210. "name": "repo",
  13211. "type": "string",
  13212. "required": true,
  13213. "description": "",
  13214. "location": "url"
  13215. },
  13216. {
  13217. "name": "sha",
  13218. "type": "string",
  13219. "description": "SHA or branch to start listing commits from.",
  13220. "default": "the repository’s default branch (usually `master`).",
  13221. "required": false,
  13222. "location": "query"
  13223. },
  13224. {
  13225. "name": "path",
  13226. "type": "string",
  13227. "description": "Only commits containing this file path will be returned.",
  13228. "required": false,
  13229. "location": "query"
  13230. },
  13231. {
  13232. "name": "author",
  13233. "type": "string",
  13234. "description": "GitHub login or email address by which to filter by commit author.",
  13235. "required": false,
  13236. "location": "query"
  13237. },
  13238. {
  13239. "name": "since",
  13240. "type": "string",
  13241. "description": "Only commits after this date will be returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  13242. "required": false,
  13243. "location": "query"
  13244. },
  13245. {
  13246. "name": "until",
  13247. "type": "string",
  13248. "description": "Only commits before this date will be returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
  13249. "required": false,
  13250. "location": "query"
  13251. },
  13252. {
  13253. "name": "per_page",
  13254. "type": "integer",
  13255. "required": false,
  13256. "description": "Results per page (max 100)",
  13257. "default": 30,
  13258. "location": "query"
  13259. },
  13260. {
  13261. "name": "page",
  13262. "type": "integer",
  13263. "required": false,
  13264. "description": "Page number of the results to fetch.",
  13265. "default": 1,
  13266. "location": "query"
  13267. }
  13268. ],
  13269. "path": "/repos/:owner/:repo/commits"
  13270. },
  13271. "getCommunityProfileMetrics": {
  13272. "description": "This endpoint will return all community profile metrics, including an overall health score, repository description, the presence of documentation, detected code of conduct, detected license, and the presence of ISSUE\\_TEMPLATE, PULL\\_REQUEST_TEMPLATE, README, and CONTRIBUTING files.",
  13273. "documentationUrl": "https://developer.github.com/v3/repos/community/#retrieve-community-profile-metrics",
  13274. "enabledForApps": true,
  13275. "method": "GET",
  13276. "name": "Retrieve community profile metrics",
  13277. "params": [
  13278. {
  13279. "name": "owner",
  13280. "type": "string",
  13281. "required": true,
  13282. "description": "",
  13283. "location": "url"
  13284. },
  13285. {
  13286. "name": "name",
  13287. "type": "string",
  13288. "required": true,
  13289. "description": "",
  13290. "location": "url"
  13291. }
  13292. ],
  13293. "path": "/repos/:owner/:name/community/profile"
  13294. },
  13295. "getContent": {
  13296. "description": "This method returns the contents of a file or directory in a repository.\n\nFiles and symlinks support [a custom media type](#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](#custom-media-types) to ensure the content is returned in a consistent object format.\n\n**Note**:\n\n* To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/v3/git/trees/).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/v3/git/trees/#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\nThe response will be an array of objects, one object for each item in the directory.\n\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value _should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as \"submodule\".\n\nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](#response-if-content-is-a-file)).\n\nOtherwise, the API responds with an object describing the symlink itself:\n\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the github.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
  13297. "documentationUrl": "https://developer.github.com/v3/repos/contents/#get-contents",
  13298. "enabledForApps": true,
  13299. "method": "GET",
  13300. "name": "Get contents",
  13301. "params": [
  13302. {
  13303. "name": "owner",
  13304. "type": "string",
  13305. "required": true,
  13306. "description": "",
  13307. "location": "url"
  13308. },
  13309. {
  13310. "name": "repo",
  13311. "type": "string",
  13312. "required": true,
  13313. "description": "",
  13314. "location": "url"
  13315. },
  13316. {
  13317. "name": "path",
  13318. "type": "string",
  13319. "description": "The content path.",
  13320. "required": true,
  13321. "location": "url"
  13322. },
  13323. {
  13324. "name": "ref",
  13325. "type": "string",
  13326. "description": "The name of the commit/branch/tag.",
  13327. "default": "the repository’s default branch (usually `master`)",
  13328. "required": false,
  13329. "location": "query"
  13330. }
  13331. ],
  13332. "path": "/repos/:owner/:repo/contents/:path"
  13333. },
  13334. "getContributors": {
  13335. "description": "Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.\n\nGitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.",
  13336. "documentationUrl": "https://developer.github.com/v3/repos/#list-contributors",
  13337. "enabledForApps": true,
  13338. "method": "GET",
  13339. "name": "List contributors",
  13340. "params": [
  13341. {
  13342. "name": "owner",
  13343. "type": "string",
  13344. "required": true,
  13345. "description": "",
  13346. "location": "url"
  13347. },
  13348. {
  13349. "name": "repo",
  13350. "type": "string",
  13351. "required": true,
  13352. "description": "",
  13353. "location": "url"
  13354. },
  13355. {
  13356. "name": "anon",
  13357. "type": "string",
  13358. "description": "Set to `1` or `true` to include anonymous contributors in results.",
  13359. "required": false,
  13360. "location": "query"
  13361. },
  13362. {
  13363. "name": "per_page",
  13364. "type": "integer",
  13365. "required": false,
  13366. "description": "Results per page (max 100)",
  13367. "default": 30,
  13368. "location": "query"
  13369. },
  13370. {
  13371. "name": "page",
  13372. "type": "integer",
  13373. "required": false,
  13374. "description": "Page number of the results to fetch.",
  13375. "default": 1,
  13376. "location": "query"
  13377. }
  13378. ],
  13379. "path": "/repos/:owner/:repo/contributors"
  13380. },
  13381. "getDeployKey": {
  13382. "description": "",
  13383. "documentationUrl": "https://developer.github.com/v3/repos/keys/#get-a-deploy-key",
  13384. "enabledForApps": true,
  13385. "method": "GET",
  13386. "name": "Get a deploy key",
  13387. "params": [
  13388. {
  13389. "name": "owner",
  13390. "type": "string",
  13391. "required": true,
  13392. "description": "",
  13393. "location": "url"
  13394. },
  13395. {
  13396. "name": "repo",
  13397. "type": "string",
  13398. "required": true,
  13399. "description": "",
  13400. "location": "url"
  13401. },
  13402. {
  13403. "name": "key_id",
  13404. "type": "string",
  13405. "required": true,
  13406. "description": "",
  13407. "location": "url"
  13408. }
  13409. ],
  13410. "path": "/repos/:owner/:repo/keys/:key_id"
  13411. },
  13412. "getDeployKeys": {
  13413. "description": "",
  13414. "documentationUrl": "https://developer.github.com/v3/repos/keys/#list-deploy-keys",
  13415. "enabledForApps": true,
  13416. "method": "GET",
  13417. "name": "List deploy keys",
  13418. "params": [
  13419. {
  13420. "name": "owner",
  13421. "type": "string",
  13422. "required": true,
  13423. "description": "",
  13424. "location": "url"
  13425. },
  13426. {
  13427. "name": "repo",
  13428. "type": "string",
  13429. "required": true,
  13430. "description": "",
  13431. "location": "url"
  13432. },
  13433. {
  13434. "name": "per_page",
  13435. "type": "integer",
  13436. "required": false,
  13437. "description": "Results per page (max 100)",
  13438. "default": 30,
  13439. "location": "query"
  13440. },
  13441. {
  13442. "name": "page",
  13443. "type": "integer",
  13444. "required": false,
  13445. "description": "Page number of the results to fetch.",
  13446. "default": 1,
  13447. "location": "query"
  13448. }
  13449. ],
  13450. "path": "/repos/:owner/:repo/keys"
  13451. },
  13452. "getDeployment": {
  13453. "description": "\n\n**Note:** If a user created a deployment via a GitHub App, the `performed_via_github_app` key will contain information on that GitHub App.",
  13454. "documentationUrl": "https://developer.github.com/v3/repos/deployments/#get-a-single-deployment",
  13455. "enabledForApps": true,
  13456. "method": "GET",
  13457. "name": "Get a single deployment",
  13458. "params": [
  13459. {
  13460. "name": "owner",
  13461. "type": "string",
  13462. "required": true,
  13463. "description": "",
  13464. "location": "url"
  13465. },
  13466. {
  13467. "name": "repo",
  13468. "type": "string",
  13469. "required": true,
  13470. "description": "",
  13471. "location": "url"
  13472. },
  13473. {
  13474. "name": "deployment_id",
  13475. "type": "string",
  13476. "required": true,
  13477. "description": "",
  13478. "location": "url"
  13479. }
  13480. ],
  13481. "path": "/repos/:owner/:repo/deployments/:deployment_id"
  13482. },
  13483. "getDeploymentStatus": {
  13484. "description": "Users with pull access can view a deployment status for a deployment:\n\n\n\n**Note:** If a user created a deployment status via a GitHub App, the `performed_via_github_app` key will contain information on that GitHub App.",
  13485. "documentationUrl": "https://developer.github.com/v3/repos/deployments/#get-a-single-deployment-status",
  13486. "enabledForApps": true,
  13487. "method": "GET",
  13488. "name": "Get a single deployment status",
  13489. "params": [
  13490. {
  13491. "name": "owner",
  13492. "type": "string",
  13493. "required": true,
  13494. "description": "",
  13495. "location": "url"
  13496. },
  13497. {
  13498. "name": "repo",
  13499. "type": "string",
  13500. "required": true,
  13501. "description": "",
  13502. "location": "url"
  13503. },
  13504. {
  13505. "name": "deployment_id",
  13506. "type": "string",
  13507. "required": true,
  13508. "description": "",
  13509. "location": "url"
  13510. },
  13511. {
  13512. "name": "id",
  13513. "type": "integer",
  13514. "description": "The deployment ID to list the statuses from.",
  13515. "required": true,
  13516. "location": "query"
  13517. },
  13518. {
  13519. "name": "status_id",
  13520. "type": "integer",
  13521. "description": "The deployment status ID.",
  13522. "required": true,
  13523. "location": "url"
  13524. }
  13525. ],
  13526. "path": "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
  13527. },
  13528. "getDeploymentStatuses": {
  13529. "description": "Users with pull access can view deployment statuses for a deployment:",
  13530. "documentationUrl": "https://developer.github.com/v3/repos/deployments/#list-deployment-statuses",
  13531. "enabledForApps": true,
  13532. "method": "GET",
  13533. "name": "List deployment statuses",
  13534. "params": [
  13535. {
  13536. "name": "owner",
  13537. "type": "string",
  13538. "required": true,
  13539. "description": "",
  13540. "location": "url"
  13541. },
  13542. {
  13543. "name": "repo",
  13544. "type": "string",
  13545. "required": true,
  13546. "description": "",
  13547. "location": "url"
  13548. },
  13549. {
  13550. "name": "deployment_id",
  13551. "type": "string",
  13552. "required": true,
  13553. "description": "",
  13554. "location": "url"
  13555. },
  13556. {
  13557. "name": "id",
  13558. "type": "integer",
  13559. "description": "The deployment ID to list the statuses from.",
  13560. "required": true,
  13561. "location": "query"
  13562. },
  13563. {
  13564. "name": "per_page",
  13565. "type": "integer",
  13566. "required": false,
  13567. "description": "Results per page (max 100)",
  13568. "default": 30,
  13569. "location": "query"
  13570. },
  13571. {
  13572. "name": "page",
  13573. "type": "integer",
  13574. "required": false,
  13575. "description": "Page number of the results to fetch.",
  13576. "default": 1,
  13577. "location": "query"
  13578. }
  13579. ],
  13580. "path": "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  13581. },
  13582. "getDeployments": {
  13583. "description": "",
  13584. "documentationUrl": "https://developer.github.com/v3/repos/deployments/#list-deployments",
  13585. "enabledForApps": true,
  13586. "method": "GET",
  13587. "name": "List deployments",
  13588. "params": [
  13589. {
  13590. "name": "owner",
  13591. "type": "string",
  13592. "required": true,
  13593. "description": "",
  13594. "location": "url"
  13595. },
  13596. {
  13597. "name": "repo",
  13598. "type": "string",
  13599. "required": true,
  13600. "description": "",
  13601. "location": "url"
  13602. },
  13603. {
  13604. "name": "sha",
  13605. "type": "string",
  13606. "description": "The SHA that was recorded at creation time.",
  13607. "default": "none",
  13608. "required": false,
  13609. "location": "query"
  13610. },
  13611. {
  13612. "name": "ref",
  13613. "type": "string",
  13614. "description": "The name of the ref. This can be a branch, tag, or SHA.",
  13615. "default": "none",
  13616. "required": false,
  13617. "location": "query"
  13618. },
  13619. {
  13620. "name": "task",
  13621. "type": "string",
  13622. "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`).",
  13623. "default": "none",
  13624. "required": false,
  13625. "location": "query"
  13626. },
  13627. {
  13628. "name": "environment",
  13629. "type": "string",
  13630. "description": "The name of the environment that was deployed to (e.g., `staging` or `production`).",
  13631. "default": "none",
  13632. "required": false,
  13633. "location": "query"
  13634. },
  13635. {
  13636. "name": "per_page",
  13637. "type": "integer",
  13638. "required": false,
  13639. "description": "Results per page (max 100)",
  13640. "default": 30,
  13641. "location": "query"
  13642. },
  13643. {
  13644. "name": "page",
  13645. "type": "integer",
  13646. "required": false,
  13647. "description": "Page number of the results to fetch.",
  13648. "default": 1,
  13649. "location": "query"
  13650. }
  13651. ],
  13652. "path": "/repos/:owner/:repo/deployments"
  13653. },
  13654. "getDownload": {
  13655. "description": "",
  13656. "documentationUrl": "https://developer.github.com/v3/repos/downloads/#get-a-single-download",
  13657. "enabledForApps": false,
  13658. "method": "GET",
  13659. "name": "Get a single download",
  13660. "params": [
  13661. {
  13662. "name": "owner",
  13663. "type": "string",
  13664. "required": true,
  13665. "description": "",
  13666. "location": "url"
  13667. },
  13668. {
  13669. "name": "repo",
  13670. "type": "string",
  13671. "required": true,
  13672. "description": "",
  13673. "location": "url"
  13674. },
  13675. {
  13676. "name": "download_id",
  13677. "type": "string",
  13678. "required": true,
  13679. "description": "",
  13680. "location": "url"
  13681. }
  13682. ],
  13683. "path": "/repos/:owner/:repo/downloads/:download_id"
  13684. },
  13685. "getDownloads": {
  13686. "description": "",
  13687. "documentationUrl": "https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository",
  13688. "enabledForApps": true,
  13689. "method": "GET",
  13690. "name": "List downloads for a repository",
  13691. "params": [
  13692. {
  13693. "name": "owner",
  13694. "type": "string",
  13695. "required": true,
  13696. "description": "",
  13697. "location": "url"
  13698. },
  13699. {
  13700. "name": "repo",
  13701. "type": "string",
  13702. "required": true,
  13703. "description": "",
  13704. "location": "url"
  13705. },
  13706. {
  13707. "name": "per_page",
  13708. "type": "integer",
  13709. "required": false,
  13710. "description": "Results per page (max 100)",
  13711. "default": 30,
  13712. "location": "query"
  13713. },
  13714. {
  13715. "name": "page",
  13716. "type": "integer",
  13717. "required": false,
  13718. "description": "Page number of the results to fetch.",
  13719. "default": 1,
  13720. "location": "query"
  13721. }
  13722. ],
  13723. "path": "/repos/:owner/:repo/downloads"
  13724. },
  13725. "getForOrg": {
  13726. "description": "List repositories for the specified org.",
  13727. "documentationUrl": "https://developer.github.com/v3/repos/#list-organization-repositories",
  13728. "enabledForApps": true,
  13729. "method": "GET",
  13730. "name": "List organization repositories",
  13731. "params": [
  13732. {
  13733. "name": "org",
  13734. "type": "string",
  13735. "required": true,
  13736. "description": "",
  13737. "location": "url"
  13738. },
  13739. {
  13740. "name": "type",
  13741. "type": "string",
  13742. "description": "Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`.",
  13743. "default": "all",
  13744. "required": false,
  13745. "enum": [
  13746. "all",
  13747. "public",
  13748. "private",
  13749. "forks",
  13750. "sources",
  13751. "member"
  13752. ],
  13753. "location": "query"
  13754. },
  13755. {
  13756. "name": "per_page",
  13757. "type": "integer",
  13758. "required": false,
  13759. "description": "Results per page (max 100)",
  13760. "default": 30,
  13761. "location": "query"
  13762. },
  13763. {
  13764. "name": "page",
  13765. "type": "integer",
  13766. "required": false,
  13767. "description": "Page number of the results to fetch.",
  13768. "default": 1,
  13769. "location": "query"
  13770. }
  13771. ],
  13772. "path": "/orgs/:org/repos"
  13773. },
  13774. "getForUser": {
  13775. "description": "List public repositories for the specified user.",
  13776. "documentationUrl": "https://developer.github.com/v3/repos/#list-user-repositories",
  13777. "enabledForApps": true,
  13778. "method": "GET",
  13779. "name": "List user repositories",
  13780. "params": [
  13781. {
  13782. "name": "username",
  13783. "type": "string",
  13784. "required": true,
  13785. "description": "",
  13786. "location": "url"
  13787. },
  13788. {
  13789. "name": "type",
  13790. "type": "string",
  13791. "description": "Can be one of `all`, `owner`, `member`.",
  13792. "default": "owner",
  13793. "required": false,
  13794. "enum": [
  13795. "all",
  13796. "owner",
  13797. "member"
  13798. ],
  13799. "location": "query"
  13800. },
  13801. {
  13802. "name": "sort",
  13803. "type": "string",
  13804. "description": "Can be one of `created`, `updated`, `pushed`, `full_name`.",
  13805. "default": "full_name",
  13806. "required": false,
  13807. "enum": [
  13808. "created",
  13809. "updated",
  13810. "pushed",
  13811. "full_name"
  13812. ],
  13813. "location": "query"
  13814. },
  13815. {
  13816. "name": "direction",
  13817. "type": "string",
  13818. "description": "Can be one of `asc` or `desc`.",
  13819. "default": "when using `full_name`: `asc`, otherwise `desc`",
  13820. "required": false,
  13821. "enum": [
  13822. "asc",
  13823. "desc"
  13824. ],
  13825. "location": "query"
  13826. },
  13827. {
  13828. "name": "per_page",
  13829. "type": "integer",
  13830. "required": false,
  13831. "description": "Results per page (max 100)",
  13832. "default": 30,
  13833. "location": "query"
  13834. },
  13835. {
  13836. "name": "page",
  13837. "type": "integer",
  13838. "required": false,
  13839. "description": "Page number of the results to fetch.",
  13840. "default": 1,
  13841. "location": "query"
  13842. }
  13843. ],
  13844. "path": "/users/:username/repos"
  13845. },
  13846. "getForks": {
  13847. "description": "",
  13848. "documentationUrl": "https://developer.github.com/v3/repos/forks/#list-forks",
  13849. "enabledForApps": true,
  13850. "method": "GET",
  13851. "name": "List forks",
  13852. "params": [
  13853. {
  13854. "name": "owner",
  13855. "type": "string",
  13856. "required": true,
  13857. "description": "",
  13858. "location": "url"
  13859. },
  13860. {
  13861. "name": "repo",
  13862. "type": "string",
  13863. "required": true,
  13864. "description": "",
  13865. "location": "url"
  13866. },
  13867. {
  13868. "name": "sort",
  13869. "type": "string",
  13870. "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.",
  13871. "default": "newest",
  13872. "required": false,
  13873. "enum": [
  13874. "newest",
  13875. "oldest",
  13876. "stargazers"
  13877. ],
  13878. "location": "query"
  13879. },
  13880. {
  13881. "name": "per_page",
  13882. "type": "integer",
  13883. "required": false,
  13884. "description": "Results per page (max 100)",
  13885. "default": 30,
  13886. "location": "query"
  13887. },
  13888. {
  13889. "name": "page",
  13890. "type": "integer",
  13891. "required": false,
  13892. "description": "Page number of the results to fetch.",
  13893. "default": 1,
  13894. "location": "query"
  13895. }
  13896. ],
  13897. "path": "/repos/:owner/:repo/forks"
  13898. },
  13899. "getHook": {
  13900. "description": "",
  13901. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#get-single-hook",
  13902. "enabledForApps": false,
  13903. "method": "GET",
  13904. "name": "Get single hook",
  13905. "params": [
  13906. {
  13907. "name": "owner",
  13908. "type": "string",
  13909. "required": true,
  13910. "description": "",
  13911. "location": "url"
  13912. },
  13913. {
  13914. "name": "repo",
  13915. "type": "string",
  13916. "required": true,
  13917. "description": "",
  13918. "location": "url"
  13919. },
  13920. {
  13921. "name": "hook_id",
  13922. "type": "string",
  13923. "required": true,
  13924. "description": "",
  13925. "location": "url"
  13926. }
  13927. ],
  13928. "path": "/repos/:owner/:repo/hooks/:hook_id"
  13929. },
  13930. "getHooks": {
  13931. "description": "",
  13932. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#list-hooks",
  13933. "enabledForApps": true,
  13934. "method": "GET",
  13935. "name": "List hooks",
  13936. "params": [
  13937. {
  13938. "name": "owner",
  13939. "type": "string",
  13940. "required": true,
  13941. "description": "",
  13942. "location": "url"
  13943. },
  13944. {
  13945. "name": "repo",
  13946. "type": "string",
  13947. "required": true,
  13948. "description": "",
  13949. "location": "url"
  13950. },
  13951. {
  13952. "name": "per_page",
  13953. "type": "integer",
  13954. "required": false,
  13955. "description": "Results per page (max 100)",
  13956. "default": 30,
  13957. "location": "query"
  13958. },
  13959. {
  13960. "name": "page",
  13961. "type": "integer",
  13962. "required": false,
  13963. "description": "Page number of the results to fetch.",
  13964. "default": 1,
  13965. "location": "query"
  13966. }
  13967. ],
  13968. "path": "/repos/:owner/:repo/hooks"
  13969. },
  13970. "getInvites": {
  13971. "description": "When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.\n\n",
  13972. "documentationUrl": "https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository",
  13973. "enabledForApps": true,
  13974. "method": "GET",
  13975. "name": "List invitations for a repository",
  13976. "params": [
  13977. {
  13978. "name": "owner",
  13979. "type": "string",
  13980. "required": true,
  13981. "description": "",
  13982. "location": "url"
  13983. },
  13984. {
  13985. "name": "repo",
  13986. "type": "string",
  13987. "required": true,
  13988. "description": "",
  13989. "location": "url"
  13990. },
  13991. {
  13992. "name": "per_page",
  13993. "type": "integer",
  13994. "required": false,
  13995. "description": "Results per page (max 100)",
  13996. "default": 30,
  13997. "location": "query"
  13998. },
  13999. {
  14000. "name": "page",
  14001. "type": "integer",
  14002. "required": false,
  14003. "description": "Page number of the results to fetch.",
  14004. "default": 1,
  14005. "location": "query"
  14006. }
  14007. ],
  14008. "path": "/repos/:owner/:repo/invitations"
  14009. },
  14010. "getLanguages": {
  14011. "description": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.",
  14012. "documentationUrl": "https://developer.github.com/v3/repos/#list-languages",
  14013. "enabledForApps": true,
  14014. "method": "GET",
  14015. "name": "List languages",
  14016. "params": [
  14017. {
  14018. "name": "owner",
  14019. "type": "string",
  14020. "required": true,
  14021. "description": "",
  14022. "location": "url"
  14023. },
  14024. {
  14025. "name": "repo",
  14026. "type": "string",
  14027. "required": true,
  14028. "description": "",
  14029. "location": "url"
  14030. }
  14031. ],
  14032. "path": "/repos/:owner/:repo/languages"
  14033. },
  14034. "getLatestPagesBuild": {
  14035. "description": "",
  14036. "documentationUrl": "https://developer.github.com/v3/repos/pages/#get-latest-pages-build",
  14037. "enabledForApps": true,
  14038. "method": "GET",
  14039. "name": "Get latest Pages build",
  14040. "params": [
  14041. {
  14042. "name": "owner",
  14043. "type": "string",
  14044. "required": true,
  14045. "description": "",
  14046. "location": "url"
  14047. },
  14048. {
  14049. "name": "repo",
  14050. "type": "string",
  14051. "required": true,
  14052. "description": "",
  14053. "location": "url"
  14054. }
  14055. ],
  14056. "path": "/repos/:owner/:repo/pages/builds/latest"
  14057. },
  14058. "getLatestRelease": {
  14059. "description": "View the latest published full release for the repository. Draft releases and prereleases are not returned by this endpoint.",
  14060. "documentationUrl": "https://developer.github.com/v3/repos/releases/#get-the-latest-release",
  14061. "enabledForApps": true,
  14062. "method": "GET",
  14063. "name": "Get the latest release",
  14064. "params": [
  14065. {
  14066. "name": "owner",
  14067. "type": "string",
  14068. "required": true,
  14069. "description": "",
  14070. "location": "url"
  14071. },
  14072. {
  14073. "name": "repo",
  14074. "type": "string",
  14075. "required": true,
  14076. "description": "",
  14077. "location": "url"
  14078. }
  14079. ],
  14080. "path": "/repos/:owner/:repo/releases/latest"
  14081. },
  14082. "getPages": {
  14083. "description": "Responses during the preview period contain two additional fields:\n\n* `html_url`: The absolute URL (with scheme) to the rendered site. For example, `https://username.github.io`.\n* `source`: Information about the source branch and directory for the rendered site. The source field includes:\n * `branch`: The repo branch for [site source files](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/) For example, _master_ or _gh-pages_.\n * `path`: The repo directory from which the site publishes. Can be either `/` or `/docs`.",
  14084. "documentationUrl": "https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site",
  14085. "enabledForApps": true,
  14086. "method": "GET",
  14087. "name": "Get information about a Pages site",
  14088. "params": [
  14089. {
  14090. "name": "owner",
  14091. "type": "string",
  14092. "required": true,
  14093. "description": "",
  14094. "location": "url"
  14095. },
  14096. {
  14097. "name": "repo",
  14098. "type": "string",
  14099. "required": true,
  14100. "description": "",
  14101. "location": "url"
  14102. }
  14103. ],
  14104. "path": "/repos/:owner/:repo/pages"
  14105. },
  14106. "getPagesBuild": {
  14107. "description": "",
  14108. "documentationUrl": "https://developer.github.com/v3/repos/pages/#get-a-specific-pages-build",
  14109. "enabledForApps": true,
  14110. "method": "GET",
  14111. "name": "Get a specific Pages build",
  14112. "params": [
  14113. {
  14114. "name": "owner",
  14115. "type": "string",
  14116. "required": true,
  14117. "description": "",
  14118. "location": "url"
  14119. },
  14120. {
  14121. "name": "repo",
  14122. "type": "string",
  14123. "required": true,
  14124. "description": "",
  14125. "location": "url"
  14126. },
  14127. {
  14128. "name": "build_id",
  14129. "type": "string",
  14130. "required": true,
  14131. "description": "",
  14132. "location": "url"
  14133. }
  14134. ],
  14135. "path": "/repos/:owner/:repo/pages/builds/:build_id"
  14136. },
  14137. "getPagesBuilds": {
  14138. "description": "",
  14139. "documentationUrl": "https://developer.github.com/v3/repos/pages/#list-pages-builds",
  14140. "enabledForApps": true,
  14141. "method": "GET",
  14142. "name": "List Pages builds",
  14143. "params": [
  14144. {
  14145. "name": "owner",
  14146. "type": "string",
  14147. "required": true,
  14148. "description": "",
  14149. "location": "url"
  14150. },
  14151. {
  14152. "name": "repo",
  14153. "type": "string",
  14154. "required": true,
  14155. "description": "",
  14156. "location": "url"
  14157. },
  14158. {
  14159. "name": "per_page",
  14160. "type": "integer",
  14161. "required": false,
  14162. "description": "Results per page (max 100)",
  14163. "default": 30,
  14164. "location": "query"
  14165. },
  14166. {
  14167. "name": "page",
  14168. "type": "integer",
  14169. "required": false,
  14170. "description": "Page number of the results to fetch.",
  14171. "default": 1,
  14172. "location": "query"
  14173. }
  14174. ],
  14175. "path": "/repos/:owner/:repo/pages/builds"
  14176. },
  14177. "getPaths": {
  14178. "description": "Get the top 10 popular contents over the last 14 days.",
  14179. "documentationUrl": "https://developer.github.com/v3/repos/traffic/#list-paths",
  14180. "enabledForApps": true,
  14181. "method": "GET",
  14182. "name": "List paths",
  14183. "params": [
  14184. {
  14185. "name": "owner",
  14186. "type": "string",
  14187. "required": true,
  14188. "description": "",
  14189. "location": "url"
  14190. },
  14191. {
  14192. "name": "repo",
  14193. "type": "string",
  14194. "required": true,
  14195. "description": "",
  14196. "location": "url"
  14197. }
  14198. ],
  14199. "path": "/repos/:owner/:repo/traffic/popular/paths"
  14200. },
  14201. "getProtectedBranchAdminEnforcement": {
  14202. "description": "",
  14203. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-admin-enforcement-of-protected-branch",
  14204. "enabledForApps": true,
  14205. "method": "GET",
  14206. "name": "Get admin enforcement of protected branch",
  14207. "params": [
  14208. {
  14209. "name": "owner",
  14210. "type": "string",
  14211. "required": true,
  14212. "description": "",
  14213. "location": "url"
  14214. },
  14215. {
  14216. "name": "repo",
  14217. "type": "string",
  14218. "required": true,
  14219. "description": "",
  14220. "location": "url"
  14221. },
  14222. {
  14223. "name": "branch",
  14224. "type": "string",
  14225. "required": true,
  14226. "description": "",
  14227. "location": "url"
  14228. }
  14229. ],
  14230. "path": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  14231. },
  14232. "getProtectedBranchPullRequestReviewEnforcement": {
  14233. "description": "",
  14234. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch",
  14235. "enabledForApps": true,
  14236. "method": "GET",
  14237. "name": "Get pull request review enforcement of protected branch",
  14238. "params": [
  14239. {
  14240. "name": "owner",
  14241. "type": "string",
  14242. "required": true,
  14243. "description": "",
  14244. "location": "url"
  14245. },
  14246. {
  14247. "name": "repo",
  14248. "type": "string",
  14249. "required": true,
  14250. "description": "",
  14251. "location": "url"
  14252. },
  14253. {
  14254. "name": "branch",
  14255. "type": "string",
  14256. "required": true,
  14257. "description": "",
  14258. "location": "url"
  14259. }
  14260. ],
  14261. "path": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  14262. },
  14263. "getProtectedBranchRequiredSignatures": {
  14264. "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.\n\n**Note**: You must enable branch protection to require signed commits.",
  14265. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-required-signatures-of-protected-branch",
  14266. "enabledForApps": true,
  14267. "method": "GET",
  14268. "name": "Get required signatures of protected branch",
  14269. "params": [
  14270. {
  14271. "name": "owner",
  14272. "type": "string",
  14273. "required": true,
  14274. "description": "",
  14275. "location": "url"
  14276. },
  14277. {
  14278. "name": "repo",
  14279. "type": "string",
  14280. "required": true,
  14281. "description": "",
  14282. "location": "url"
  14283. },
  14284. {
  14285. "name": "branch",
  14286. "type": "string",
  14287. "required": true,
  14288. "description": "",
  14289. "location": "url"
  14290. }
  14291. ],
  14292. "path": "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  14293. },
  14294. "getProtectedBranchRequiredStatusChecks": {
  14295. "description": "",
  14296. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-required-status-checks-of-protected-branch",
  14297. "enabledForApps": true,
  14298. "method": "GET",
  14299. "name": "Get required status checks of protected branch",
  14300. "params": [
  14301. {
  14302. "name": "owner",
  14303. "type": "string",
  14304. "required": true,
  14305. "description": "",
  14306. "location": "url"
  14307. },
  14308. {
  14309. "name": "repo",
  14310. "type": "string",
  14311. "required": true,
  14312. "description": "",
  14313. "location": "url"
  14314. },
  14315. {
  14316. "name": "branch",
  14317. "type": "string",
  14318. "required": true,
  14319. "description": "",
  14320. "location": "url"
  14321. }
  14322. ],
  14323. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  14324. },
  14325. "getProtectedBranchRequiredStatusChecksContexts": {
  14326. "description": "",
  14327. "documentationUrl": "https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch",
  14328. "enabledForApps": true,
  14329. "method": "GET",
  14330. "name": "List required status checks contexts of protected branch",
  14331. "params": [
  14332. {
  14333. "name": "owner",
  14334. "type": "string",
  14335. "required": true,
  14336. "description": "",
  14337. "location": "url"
  14338. },
  14339. {
  14340. "name": "repo",
  14341. "type": "string",
  14342. "required": true,
  14343. "description": "",
  14344. "location": "url"
  14345. },
  14346. {
  14347. "name": "branch",
  14348. "type": "string",
  14349. "required": true,
  14350. "description": "",
  14351. "location": "url"
  14352. }
  14353. ],
  14354. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  14355. },
  14356. "getProtectedBranchRestrictions": {
  14357. "description": "**Note**: Teams and users `restrictions` are only available for organization-owned repositories.",
  14358. "documentationUrl": "https://developer.github.com/v3/repos/branches/#get-restrictions-of-protected-branch",
  14359. "enabledForApps": true,
  14360. "method": "GET",
  14361. "name": "Get restrictions of protected branch",
  14362. "params": [
  14363. {
  14364. "name": "owner",
  14365. "type": "string",
  14366. "required": true,
  14367. "description": "",
  14368. "location": "url"
  14369. },
  14370. {
  14371. "name": "repo",
  14372. "type": "string",
  14373. "required": true,
  14374. "description": "",
  14375. "location": "url"
  14376. },
  14377. {
  14378. "name": "branch",
  14379. "type": "string",
  14380. "required": true,
  14381. "description": "",
  14382. "location": "url"
  14383. }
  14384. ],
  14385. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  14386. },
  14387. "getProtectedBranchTeamRestrictions": {
  14388. "description": "Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams.",
  14389. "documentationUrl": "https://developer.github.com/v3/repos/branches/#list-team-restrictions-of-protected-branch",
  14390. "enabledForApps": true,
  14391. "method": "GET",
  14392. "name": "List team restrictions of protected branch",
  14393. "params": [
  14394. {
  14395. "name": "owner",
  14396. "type": "string",
  14397. "required": true,
  14398. "description": "",
  14399. "location": "url"
  14400. },
  14401. {
  14402. "name": "repo",
  14403. "type": "string",
  14404. "required": true,
  14405. "description": "",
  14406. "location": "url"
  14407. },
  14408. {
  14409. "name": "branch",
  14410. "type": "string",
  14411. "required": true,
  14412. "description": "",
  14413. "location": "url"
  14414. }
  14415. ],
  14416. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  14417. },
  14418. "getProtectedBranchUserRestrictions": {
  14419. "description": "Lists the people who have push access to this branch.",
  14420. "documentationUrl": "https://developer.github.com/v3/repos/branches/#list-user-restrictions-of-protected-branch",
  14421. "enabledForApps": true,
  14422. "method": "GET",
  14423. "name": "List user restrictions of protected branch",
  14424. "params": [
  14425. {
  14426. "name": "owner",
  14427. "type": "string",
  14428. "required": true,
  14429. "description": "",
  14430. "location": "url"
  14431. },
  14432. {
  14433. "name": "repo",
  14434. "type": "string",
  14435. "required": true,
  14436. "description": "",
  14437. "location": "url"
  14438. },
  14439. {
  14440. "name": "branch",
  14441. "type": "string",
  14442. "required": true,
  14443. "description": "",
  14444. "location": "url"
  14445. }
  14446. ],
  14447. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  14448. },
  14449. "getPublic": {
  14450. "description": "This provides a dump of every public repository, in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of repositories.",
  14451. "documentationUrl": "https://developer.github.com/v3/repos/#list-all-public-repositories",
  14452. "enabledForApps": true,
  14453. "method": "GET",
  14454. "name": "List all public repositories",
  14455. "params": [
  14456. {
  14457. "name": "since",
  14458. "type": "string",
  14459. "description": "The integer ID of the last Repository that you've seen.",
  14460. "required": false,
  14461. "location": "query"
  14462. },
  14463. {
  14464. "name": "per_page",
  14465. "type": "integer",
  14466. "required": false,
  14467. "description": "Results per page (max 100)",
  14468. "default": 30,
  14469. "location": "query"
  14470. },
  14471. {
  14472. "name": "page",
  14473. "type": "integer",
  14474. "required": false,
  14475. "description": "Page number of the results to fetch.",
  14476. "default": 1,
  14477. "location": "query"
  14478. }
  14479. ],
  14480. "path": "/repositories"
  14481. },
  14482. "getReadme": {
  14483. "description": "This method returns the preferred README for a repository.\n\nREADMEs support [custom media types](#custom-media-types) for retrieving the raw content or rendered HTML.",
  14484. "documentationUrl": "https://developer.github.com/v3/repos/contents/#get-the-readme",
  14485. "enabledForApps": true,
  14486. "method": "GET",
  14487. "name": "Get the README",
  14488. "params": [
  14489. {
  14490. "name": "owner",
  14491. "type": "string",
  14492. "required": true,
  14493. "description": "",
  14494. "location": "url"
  14495. },
  14496. {
  14497. "name": "repo",
  14498. "type": "string",
  14499. "required": true,
  14500. "description": "",
  14501. "location": "url"
  14502. },
  14503. {
  14504. "name": "ref",
  14505. "type": "string",
  14506. "description": "The name of the commit/branch/tag.",
  14507. "default": "the repository’s default branch (usually `master`)",
  14508. "required": false,
  14509. "location": "query"
  14510. }
  14511. ],
  14512. "path": "/repos/:owner/:repo/readme"
  14513. },
  14514. "getReferrers": {
  14515. "description": "Get the top 10 referrers over the last 14 days.",
  14516. "documentationUrl": "https://developer.github.com/v3/repos/traffic/#list-referrers",
  14517. "enabledForApps": true,
  14518. "method": "GET",
  14519. "name": "List referrers",
  14520. "params": [
  14521. {
  14522. "name": "owner",
  14523. "type": "string",
  14524. "required": true,
  14525. "description": "",
  14526. "location": "url"
  14527. },
  14528. {
  14529. "name": "repo",
  14530. "type": "string",
  14531. "required": true,
  14532. "description": "",
  14533. "location": "url"
  14534. }
  14535. ],
  14536. "path": "/repos/:owner/:repo/traffic/popular/referrers"
  14537. },
  14538. "getRelease": {
  14539. "description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/v3/#hypermedia).",
  14540. "documentationUrl": "https://developer.github.com/v3/repos/releases/#get-a-single-release",
  14541. "enabledForApps": true,
  14542. "method": "GET",
  14543. "name": "Get a single release",
  14544. "params": [
  14545. {
  14546. "name": "owner",
  14547. "type": "string",
  14548. "required": true,
  14549. "description": "",
  14550. "location": "url"
  14551. },
  14552. {
  14553. "name": "repo",
  14554. "type": "string",
  14555. "required": true,
  14556. "description": "",
  14557. "location": "url"
  14558. },
  14559. {
  14560. "name": "release_id",
  14561. "type": "string",
  14562. "required": true,
  14563. "description": "",
  14564. "location": "url"
  14565. }
  14566. ],
  14567. "path": "/repos/:owner/:repo/releases/:release_id"
  14568. },
  14569. "getReleaseByTag": {
  14570. "description": "Get a published release with the specified tag.",
  14571. "documentationUrl": "https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name",
  14572. "enabledForApps": true,
  14573. "method": "GET",
  14574. "name": "Get a release by tag name",
  14575. "params": [
  14576. {
  14577. "name": "owner",
  14578. "type": "string",
  14579. "required": true,
  14580. "description": "",
  14581. "location": "url"
  14582. },
  14583. {
  14584. "name": "repo",
  14585. "type": "string",
  14586. "required": true,
  14587. "description": "",
  14588. "location": "url"
  14589. },
  14590. {
  14591. "name": "tag",
  14592. "type": "string",
  14593. "required": true,
  14594. "description": "",
  14595. "location": "url"
  14596. }
  14597. ],
  14598. "path": "/repos/:owner/:repo/releases/tags/:tag"
  14599. },
  14600. "getReleases": {
  14601. "description": "This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/v3/repos/#list-tags).\n\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.",
  14602. "documentationUrl": "https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository",
  14603. "enabledForApps": true,
  14604. "method": "GET",
  14605. "name": "List releases for a repository",
  14606. "params": [
  14607. {
  14608. "name": "owner",
  14609. "type": "string",
  14610. "required": true,
  14611. "description": "",
  14612. "location": "url"
  14613. },
  14614. {
  14615. "name": "repo",
  14616. "type": "string",
  14617. "required": true,
  14618. "description": "",
  14619. "location": "url"
  14620. },
  14621. {
  14622. "name": "per_page",
  14623. "type": "integer",
  14624. "required": false,
  14625. "description": "Results per page (max 100)",
  14626. "default": 30,
  14627. "location": "query"
  14628. },
  14629. {
  14630. "name": "page",
  14631. "type": "integer",
  14632. "required": false,
  14633. "description": "Page number of the results to fetch.",
  14634. "default": 1,
  14635. "location": "query"
  14636. }
  14637. ],
  14638. "path": "/repos/:owner/:repo/releases"
  14639. },
  14640. "getShaOfCommitRef": {
  14641. "description": "Users with read access can get the SHA-1 of a commit reference:\n\nTo access the API you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n\n\nTo check if a remote reference's SHA-1 is the same as your local reference's SHA-1, make a `GET` request and provide the current SHA-1 for the local reference as the ETag.\n\nThe SHA-1 of the commit reference.\n\n",
  14642. "documentationUrl": "https://developer.github.com/v3/repos/commits/#get-the-sha-1-of-a-commit-reference",
  14643. "enabledForApps": true,
  14644. "method": "GET",
  14645. "name": "Get the SHA-1 of a commit reference",
  14646. "params": [
  14647. {
  14648. "name": "owner",
  14649. "type": "string",
  14650. "required": true,
  14651. "description": "",
  14652. "location": "url"
  14653. },
  14654. {
  14655. "name": "repo",
  14656. "type": "string",
  14657. "required": true,
  14658. "description": "",
  14659. "location": "url"
  14660. },
  14661. {
  14662. "name": "ref",
  14663. "type": "string",
  14664. "required": true,
  14665. "description": "",
  14666. "location": "url"
  14667. }
  14668. ],
  14669. "path": "/repos/:owner/:repo/commits/:ref"
  14670. },
  14671. "getStatsCodeFrequency": {
  14672. "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n\n",
  14673. "documentationUrl": "https://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week",
  14674. "enabledForApps": true,
  14675. "method": "GET",
  14676. "name": "Get the number of additions and deletions per week",
  14677. "params": [
  14678. {
  14679. "name": "owner",
  14680. "type": "string",
  14681. "required": true,
  14682. "description": "",
  14683. "location": "url"
  14684. },
  14685. {
  14686. "name": "repo",
  14687. "type": "string",
  14688. "required": true,
  14689. "description": "",
  14690. "location": "url"
  14691. }
  14692. ],
  14693. "path": "/repos/:owner/:repo/stats/code_frequency"
  14694. },
  14695. "getStatsCommitActivity": {
  14696. "description": "Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.\n\n",
  14697. "documentationUrl": "https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data",
  14698. "enabledForApps": true,
  14699. "method": "GET",
  14700. "name": "Get the last year of commit activity data",
  14701. "params": [
  14702. {
  14703. "name": "owner",
  14704. "type": "string",
  14705. "required": true,
  14706. "description": "",
  14707. "location": "url"
  14708. },
  14709. {
  14710. "name": "repo",
  14711. "type": "string",
  14712. "required": true,
  14713. "description": "",
  14714. "location": "url"
  14715. }
  14716. ],
  14717. "path": "/repos/:owner/:repo/stats/commit_activity"
  14718. },
  14719. "getStatsContributors": {
  14720. "description": "* `total` \\- The Total number of commits authored by the contributor.\n\nWeekly Hash (`weeks` array):\n\n* `w` \\- Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` \\- Number of additions\n* `d` \\- Number of deletions\n* `c` \\- Number of commits\n\n",
  14721. "documentationUrl": "https://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts",
  14722. "enabledForApps": true,
  14723. "method": "GET",
  14724. "name": "Get contributors list with additions, deletions, and commit counts",
  14725. "params": [
  14726. {
  14727. "name": "owner",
  14728. "type": "string",
  14729. "required": true,
  14730. "description": "",
  14731. "location": "url"
  14732. },
  14733. {
  14734. "name": "repo",
  14735. "type": "string",
  14736. "required": true,
  14737. "description": "",
  14738. "location": "url"
  14739. }
  14740. ],
  14741. "path": "/repos/:owner/:repo/stats/contributors"
  14742. },
  14743. "getStatsParticipation": {
  14744. "description": "Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.\n\nThe array order is oldest week (index 0) to most recent week.\n\n",
  14745. "documentationUrl": "https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else",
  14746. "enabledForApps": true,
  14747. "method": "GET",
  14748. "name": "Get the weekly commit count for the repository owner and everyone else",
  14749. "params": [
  14750. {
  14751. "name": "owner",
  14752. "type": "string",
  14753. "required": true,
  14754. "description": "",
  14755. "location": "url"
  14756. },
  14757. {
  14758. "name": "repo",
  14759. "type": "string",
  14760. "required": true,
  14761. "description": "",
  14762. "location": "url"
  14763. }
  14764. ],
  14765. "path": "/repos/:owner/:repo/stats/participation"
  14766. },
  14767. "getStatsPunchCard": {
  14768. "description": "Each array contains the day number, hour number, and number of commits:\n\n* `0-6`: Sunday - Saturday\n* `0-23`: Hour of day\n* Number of commits\n\nFor example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.",
  14769. "documentationUrl": "https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day",
  14770. "enabledForApps": true,
  14771. "method": "GET",
  14772. "name": "Get the number of commits per hour in each day",
  14773. "params": [
  14774. {
  14775. "name": "owner",
  14776. "type": "string",
  14777. "required": true,
  14778. "description": "",
  14779. "location": "url"
  14780. },
  14781. {
  14782. "name": "repo",
  14783. "type": "string",
  14784. "required": true,
  14785. "description": "",
  14786. "location": "url"
  14787. }
  14788. ],
  14789. "path": "/repos/:owner/:repo/stats/punch_card"
  14790. },
  14791. "getStatuses": {
  14792. "description": "Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.\n\nThis resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`.",
  14793. "documentationUrl": "https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref",
  14794. "enabledForApps": true,
  14795. "method": "GET",
  14796. "name": "List statuses for a specific ref",
  14797. "params": [
  14798. {
  14799. "name": "owner",
  14800. "type": "string",
  14801. "required": true,
  14802. "description": "",
  14803. "location": "url"
  14804. },
  14805. {
  14806. "name": "repo",
  14807. "type": "string",
  14808. "required": true,
  14809. "description": "",
  14810. "location": "url"
  14811. },
  14812. {
  14813. "name": "ref",
  14814. "type": "string",
  14815. "required": true,
  14816. "description": "",
  14817. "location": "url"
  14818. },
  14819. {
  14820. "name": "per_page",
  14821. "type": "integer",
  14822. "required": false,
  14823. "description": "Results per page (max 100)",
  14824. "default": 30,
  14825. "location": "query"
  14826. },
  14827. {
  14828. "name": "page",
  14829. "type": "integer",
  14830. "required": false,
  14831. "description": "Page number of the results to fetch.",
  14832. "default": 1,
  14833. "location": "query"
  14834. }
  14835. ],
  14836. "path": "/repos/:owner/:repo/commits/:ref/statuses"
  14837. },
  14838. "getTags": {
  14839. "description": "",
  14840. "documentationUrl": "https://developer.github.com/v3/repos/#list-tags",
  14841. "enabledForApps": true,
  14842. "method": "GET",
  14843. "name": "List tags",
  14844. "params": [
  14845. {
  14846. "name": "owner",
  14847. "type": "string",
  14848. "required": true,
  14849. "description": "",
  14850. "location": "url"
  14851. },
  14852. {
  14853. "name": "repo",
  14854. "type": "string",
  14855. "required": true,
  14856. "description": "",
  14857. "location": "url"
  14858. },
  14859. {
  14860. "name": "per_page",
  14861. "type": "integer",
  14862. "required": false,
  14863. "description": "Results per page (max 100)",
  14864. "default": 30,
  14865. "location": "query"
  14866. },
  14867. {
  14868. "name": "page",
  14869. "type": "integer",
  14870. "required": false,
  14871. "description": "Page number of the results to fetch.",
  14872. "default": 1,
  14873. "location": "query"
  14874. }
  14875. ],
  14876. "path": "/repos/:owner/:repo/tags"
  14877. },
  14878. "getTeams": {
  14879. "description": "",
  14880. "documentationUrl": "https://developer.github.com/v3/repos/#list-teams",
  14881. "enabledForApps": true,
  14882. "method": "GET",
  14883. "name": "List teams",
  14884. "params": [
  14885. {
  14886. "name": "owner",
  14887. "type": "string",
  14888. "required": true,
  14889. "description": "",
  14890. "location": "url"
  14891. },
  14892. {
  14893. "name": "repo",
  14894. "type": "string",
  14895. "required": true,
  14896. "description": "",
  14897. "location": "url"
  14898. },
  14899. {
  14900. "name": "per_page",
  14901. "type": "integer",
  14902. "required": false,
  14903. "description": "Results per page (max 100)",
  14904. "default": 30,
  14905. "location": "query"
  14906. },
  14907. {
  14908. "name": "page",
  14909. "type": "integer",
  14910. "required": false,
  14911. "description": "Page number of the results to fetch.",
  14912. "default": 1,
  14913. "location": "query"
  14914. }
  14915. ],
  14916. "path": "/repos/:owner/:repo/teams"
  14917. },
  14918. "getTopics": {
  14919. "description": "",
  14920. "documentationUrl": "https://developer.github.com/v3/repos/#list-all-topics-for-a-repository",
  14921. "enabledForApps": true,
  14922. "method": "GET",
  14923. "name": "List all topics for a repository",
  14924. "params": [
  14925. {
  14926. "name": "owner",
  14927. "type": "string",
  14928. "required": true,
  14929. "description": "",
  14930. "location": "url"
  14931. },
  14932. {
  14933. "name": "repo",
  14934. "type": "string",
  14935. "required": true,
  14936. "description": "",
  14937. "location": "url"
  14938. }
  14939. ],
  14940. "path": "/repos/:owner/:repo/topics"
  14941. },
  14942. "getViews": {
  14943. "description": "Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.",
  14944. "documentationUrl": "https://developer.github.com/v3/repos/traffic/#views",
  14945. "enabledForApps": true,
  14946. "method": "GET",
  14947. "name": "Views",
  14948. "params": [
  14949. {
  14950. "name": "owner",
  14951. "type": "string",
  14952. "required": true,
  14953. "description": "",
  14954. "location": "url"
  14955. },
  14956. {
  14957. "name": "repo",
  14958. "type": "string",
  14959. "required": true,
  14960. "description": "",
  14961. "location": "url"
  14962. },
  14963. {
  14964. "name": "per",
  14965. "type": "string",
  14966. "description": "Must be one of: `day`, `week`.",
  14967. "default": "day",
  14968. "required": false,
  14969. "enum": [
  14970. "day",
  14971. "week"
  14972. ],
  14973. "location": "query"
  14974. }
  14975. ],
  14976. "path": "/repos/:owner/:repo/traffic/views"
  14977. },
  14978. "merge": {
  14979. "description": "",
  14980. "documentationUrl": "https://developer.github.com/v3/repos/merging/#perform-a-merge",
  14981. "enabledForApps": true,
  14982. "method": "POST",
  14983. "name": "Perform a merge",
  14984. "params": [
  14985. {
  14986. "name": "owner",
  14987. "type": "string",
  14988. "required": true,
  14989. "description": "",
  14990. "location": "url"
  14991. },
  14992. {
  14993. "name": "repo",
  14994. "type": "string",
  14995. "required": true,
  14996. "description": "",
  14997. "location": "url"
  14998. },
  14999. {
  15000. "name": "base",
  15001. "type": "string",
  15002. "description": "The name of the base branch that the head will be merged into.",
  15003. "required": true,
  15004. "location": "body"
  15005. },
  15006. {
  15007. "name": "head",
  15008. "type": "string",
  15009. "description": "The head to merge. This can be a branch name or a commit SHA1.",
  15010. "required": true,
  15011. "location": "body"
  15012. },
  15013. {
  15014. "name": "commit_message",
  15015. "type": "string",
  15016. "description": "Commit message to use for the merge commit. If omitted, a default message will be used.",
  15017. "required": false,
  15018. "location": "body"
  15019. }
  15020. ],
  15021. "path": "/repos/:owner/:repo/merges"
  15022. },
  15023. "pingHook": {
  15024. "description": "This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook.",
  15025. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#ping-a-hook",
  15026. "enabledForApps": false,
  15027. "method": "POST",
  15028. "name": "Ping a hook",
  15029. "params": [
  15030. {
  15031. "name": "owner",
  15032. "type": "string",
  15033. "required": true,
  15034. "description": "",
  15035. "location": "url"
  15036. },
  15037. {
  15038. "name": "repo",
  15039. "type": "string",
  15040. "required": true,
  15041. "description": "",
  15042. "location": "url"
  15043. },
  15044. {
  15045. "name": "hook_id",
  15046. "type": "string",
  15047. "required": true,
  15048. "description": "",
  15049. "location": "url"
  15050. }
  15051. ],
  15052. "path": "/repos/:owner/:repo/hooks/:hook_id/pings"
  15053. },
  15054. "removeBranchProtection": {
  15055. "description": "",
  15056. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-branch-protection",
  15057. "enabledForApps": true,
  15058. "method": "DELETE",
  15059. "name": "Remove branch protection",
  15060. "params": [
  15061. {
  15062. "name": "owner",
  15063. "type": "string",
  15064. "required": true,
  15065. "description": "",
  15066. "location": "url"
  15067. },
  15068. {
  15069. "name": "repo",
  15070. "type": "string",
  15071. "required": true,
  15072. "description": "",
  15073. "location": "url"
  15074. },
  15075. {
  15076. "name": "branch",
  15077. "type": "string",
  15078. "required": true,
  15079. "description": "",
  15080. "location": "url"
  15081. }
  15082. ],
  15083. "path": "/repos/:owner/:repo/branches/:branch/protection"
  15084. },
  15085. "removeCollaborator": {
  15086. "description": "",
  15087. "documentationUrl": "https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator",
  15088. "enabledForApps": true,
  15089. "method": "DELETE",
  15090. "name": "Remove user as a collaborator",
  15091. "params": [
  15092. {
  15093. "name": "owner",
  15094. "type": "string",
  15095. "required": true,
  15096. "description": "",
  15097. "location": "url"
  15098. },
  15099. {
  15100. "name": "repo",
  15101. "type": "string",
  15102. "required": true,
  15103. "description": "",
  15104. "location": "url"
  15105. },
  15106. {
  15107. "name": "username",
  15108. "type": "string",
  15109. "required": true,
  15110. "description": "",
  15111. "location": "url"
  15112. }
  15113. ],
  15114. "path": "/repos/:owner/:repo/collaborators/:username"
  15115. },
  15116. "removeProtectedBranchAdminEnforcement": {
  15117. "description": "Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
  15118. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch",
  15119. "enabledForApps": true,
  15120. "method": "DELETE",
  15121. "name": "Remove admin enforcement of protected branch",
  15122. "params": [
  15123. {
  15124. "name": "owner",
  15125. "type": "string",
  15126. "required": true,
  15127. "description": "",
  15128. "location": "url"
  15129. },
  15130. {
  15131. "name": "repo",
  15132. "type": "string",
  15133. "required": true,
  15134. "description": "",
  15135. "location": "url"
  15136. },
  15137. {
  15138. "name": "branch",
  15139. "type": "string",
  15140. "required": true,
  15141. "description": "",
  15142. "location": "url"
  15143. }
  15144. ],
  15145. "path": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  15146. },
  15147. "removeProtectedBranchPullRequestReviewEnforcement": {
  15148. "description": "",
  15149. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch",
  15150. "enabledForApps": true,
  15151. "method": "DELETE",
  15152. "name": "Remove pull request review enforcement of protected branch",
  15153. "params": [
  15154. {
  15155. "name": "owner",
  15156. "type": "string",
  15157. "required": true,
  15158. "description": "",
  15159. "location": "url"
  15160. },
  15161. {
  15162. "name": "repo",
  15163. "type": "string",
  15164. "required": true,
  15165. "description": "",
  15166. "location": "url"
  15167. },
  15168. {
  15169. "name": "branch",
  15170. "type": "string",
  15171. "required": true,
  15172. "description": "",
  15173. "location": "url"
  15174. }
  15175. ],
  15176. "path": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  15177. },
  15178. "removeProtectedBranchRequiredSignatures": {
  15179. "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits.",
  15180. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch",
  15181. "enabledForApps": true,
  15182. "method": "DELETE",
  15183. "name": "Remove required signatures of protected branch",
  15184. "params": [
  15185. {
  15186. "name": "owner",
  15187. "type": "string",
  15188. "required": true,
  15189. "description": "",
  15190. "location": "url"
  15191. },
  15192. {
  15193. "name": "repo",
  15194. "type": "string",
  15195. "required": true,
  15196. "description": "",
  15197. "location": "url"
  15198. },
  15199. {
  15200. "name": "branch",
  15201. "type": "string",
  15202. "required": true,
  15203. "description": "",
  15204. "location": "url"
  15205. }
  15206. ],
  15207. "path": "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  15208. },
  15209. "removeProtectedBranchRequiredStatusChecks": {
  15210. "description": "",
  15211. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch",
  15212. "enabledForApps": true,
  15213. "method": "DELETE",
  15214. "name": "Remove required status checks of protected branch",
  15215. "params": [
  15216. {
  15217. "name": "owner",
  15218. "type": "string",
  15219. "required": true,
  15220. "description": "",
  15221. "location": "url"
  15222. },
  15223. {
  15224. "name": "repo",
  15225. "type": "string",
  15226. "required": true,
  15227. "description": "",
  15228. "location": "url"
  15229. },
  15230. {
  15231. "name": "branch",
  15232. "type": "string",
  15233. "required": true,
  15234. "description": "",
  15235. "location": "url"
  15236. }
  15237. ],
  15238. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  15239. },
  15240. "removeProtectedBranchRequiredStatusChecksContexts": {
  15241. "description": "",
  15242. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch",
  15243. "enabledForApps": true,
  15244. "method": "DELETE",
  15245. "name": "Remove required status checks contexts of protected branch",
  15246. "params": [
  15247. {
  15248. "name": "owner",
  15249. "type": "string",
  15250. "required": true,
  15251. "description": "",
  15252. "location": "url"
  15253. },
  15254. {
  15255. "name": "repo",
  15256. "type": "string",
  15257. "required": true,
  15258. "description": "",
  15259. "location": "url"
  15260. },
  15261. {
  15262. "name": "branch",
  15263. "type": "string",
  15264. "required": true,
  15265. "description": "",
  15266. "location": "url"
  15267. }
  15268. ],
  15269. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  15270. },
  15271. "removeProtectedBranchRestrictions": {
  15272. "description": "Disables the ability to restrict who can push to this branch.",
  15273. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch",
  15274. "enabledForApps": true,
  15275. "method": "DELETE",
  15276. "name": "Remove restrictions of protected branch",
  15277. "params": [
  15278. {
  15279. "name": "owner",
  15280. "type": "string",
  15281. "required": true,
  15282. "description": "",
  15283. "location": "url"
  15284. },
  15285. {
  15286. "name": "repo",
  15287. "type": "string",
  15288. "required": true,
  15289. "description": "",
  15290. "location": "url"
  15291. },
  15292. {
  15293. "name": "branch",
  15294. "type": "string",
  15295. "required": true,
  15296. "description": "",
  15297. "location": "url"
  15298. }
  15299. ],
  15300. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  15301. },
  15302. "removeProtectedBranchTeamRestrictions": {
  15303. "description": "Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
  15304. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch",
  15305. "enabledForApps": true,
  15306. "method": "DELETE",
  15307. "name": "Remove team restrictions of protected branch",
  15308. "params": [
  15309. {
  15310. "name": "owner",
  15311. "type": "string",
  15312. "required": true,
  15313. "description": "",
  15314. "location": "url"
  15315. },
  15316. {
  15317. "name": "repo",
  15318. "type": "string",
  15319. "required": true,
  15320. "description": "",
  15321. "location": "url"
  15322. },
  15323. {
  15324. "name": "branch",
  15325. "type": "string",
  15326. "required": true,
  15327. "description": "",
  15328. "location": "url"
  15329. }
  15330. ],
  15331. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  15332. },
  15333. "removeProtectedBranchUserRestrictions": {
  15334. "description": "Removes the ability of a team to push to this branch.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames of the people who should no longer have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
  15335. "documentationUrl": "https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch",
  15336. "enabledForApps": true,
  15337. "method": "DELETE",
  15338. "name": "Remove user restrictions of protected branch",
  15339. "params": [
  15340. {
  15341. "name": "owner",
  15342. "type": "string",
  15343. "required": true,
  15344. "description": "",
  15345. "location": "url"
  15346. },
  15347. {
  15348. "name": "repo",
  15349. "type": "string",
  15350. "required": true,
  15351. "description": "",
  15352. "location": "url"
  15353. },
  15354. {
  15355. "name": "branch",
  15356. "type": "string",
  15357. "required": true,
  15358. "description": "",
  15359. "location": "url"
  15360. }
  15361. ],
  15362. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  15363. },
  15364. "replaceProtectedBranchRequiredStatusChecksContexts": {
  15365. "description": "",
  15366. "documentationUrl": "https://developer.github.com/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch",
  15367. "enabledForApps": true,
  15368. "method": "PUT",
  15369. "name": "Replace required status checks contexts of protected branch",
  15370. "params": [
  15371. {
  15372. "name": "owner",
  15373. "type": "string",
  15374. "required": true,
  15375. "description": "",
  15376. "location": "url"
  15377. },
  15378. {
  15379. "name": "repo",
  15380. "type": "string",
  15381. "required": true,
  15382. "description": "",
  15383. "location": "url"
  15384. },
  15385. {
  15386. "name": "branch",
  15387. "type": "string",
  15388. "required": true,
  15389. "description": "",
  15390. "location": "url"
  15391. }
  15392. ],
  15393. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  15394. },
  15395. "replaceProtectedBranchTeamRestrictions": {
  15396. "description": "Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
  15397. "documentationUrl": "https://developer.github.com/v3/repos/branches/#replace-team-restrictions-of-protected-branch",
  15398. "enabledForApps": true,
  15399. "method": "PUT",
  15400. "name": "Replace team restrictions of protected branch",
  15401. "params": [
  15402. {
  15403. "name": "owner",
  15404. "type": "string",
  15405. "required": true,
  15406. "description": "",
  15407. "location": "url"
  15408. },
  15409. {
  15410. "name": "repo",
  15411. "type": "string",
  15412. "required": true,
  15413. "description": "",
  15414. "location": "url"
  15415. },
  15416. {
  15417. "name": "branch",
  15418. "type": "string",
  15419. "required": true,
  15420. "description": "",
  15421. "location": "url"
  15422. }
  15423. ],
  15424. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  15425. },
  15426. "replaceProtectedBranchUserRestrictions": {
  15427. "description": "Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
  15428. "documentationUrl": "https://developer.github.com/v3/repos/branches/#replace-user-restrictions-of-protected-branch",
  15429. "enabledForApps": true,
  15430. "method": "PUT",
  15431. "name": "Replace user restrictions of protected branch",
  15432. "params": [
  15433. {
  15434. "name": "owner",
  15435. "type": "string",
  15436. "required": true,
  15437. "description": "",
  15438. "location": "url"
  15439. },
  15440. {
  15441. "name": "repo",
  15442. "type": "string",
  15443. "required": true,
  15444. "description": "",
  15445. "location": "url"
  15446. },
  15447. {
  15448. "name": "branch",
  15449. "type": "string",
  15450. "required": true,
  15451. "description": "",
  15452. "location": "url"
  15453. }
  15454. ],
  15455. "path": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  15456. },
  15457. "replaceTopics": {
  15458. "description": "",
  15459. "documentationUrl": "https://developer.github.com/v3/repos/#replace-all-topics-for-a-repository",
  15460. "enabledForApps": true,
  15461. "method": "PUT",
  15462. "name": "Replace all topics for a repository",
  15463. "params": [
  15464. {
  15465. "name": "owner",
  15466. "type": "string",
  15467. "required": true,
  15468. "description": "",
  15469. "location": "url"
  15470. },
  15471. {
  15472. "name": "repo",
  15473. "type": "string",
  15474. "required": true,
  15475. "description": "",
  15476. "location": "url"
  15477. },
  15478. {
  15479. "name": "names",
  15480. "type": "string[]",
  15481. "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository.",
  15482. "required": true,
  15483. "location": "body"
  15484. }
  15485. ],
  15486. "path": "/repos/:owner/:repo/topics"
  15487. },
  15488. "requestPageBuild": {
  15489. "description": "You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.\n\nBuild requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes.",
  15490. "documentationUrl": "https://developer.github.com/v3/repos/pages/#request-a-page-build",
  15491. "enabledForApps": true,
  15492. "method": "POST",
  15493. "name": "Request a page build",
  15494. "params": [
  15495. {
  15496. "name": "owner",
  15497. "type": "string",
  15498. "required": true,
  15499. "description": "",
  15500. "location": "url"
  15501. },
  15502. {
  15503. "name": "repo",
  15504. "type": "string",
  15505. "required": true,
  15506. "description": "",
  15507. "location": "url"
  15508. }
  15509. ],
  15510. "path": "/repos/:owner/:repo/pages/builds"
  15511. },
  15512. "reviewUserPermissionLevel": {
  15513. "description": "Possible values for the `permission` key: `admin`, `write`, `read`, `none`.",
  15514. "documentationUrl": "https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level",
  15515. "enabledForApps": true,
  15516. "method": "GET",
  15517. "name": "Review a user's permission level",
  15518. "params": [
  15519. {
  15520. "name": "owner",
  15521. "type": "string",
  15522. "required": true,
  15523. "description": "",
  15524. "location": "url"
  15525. },
  15526. {
  15527. "name": "repo",
  15528. "type": "string",
  15529. "required": true,
  15530. "description": "",
  15531. "location": "url"
  15532. },
  15533. {
  15534. "name": "username",
  15535. "type": "string",
  15536. "required": true,
  15537. "description": "",
  15538. "location": "url"
  15539. }
  15540. ],
  15541. "path": "/repos/:owner/:repo/collaborators/:username/permission"
  15542. },
  15543. "testHook": {
  15544. "description": "This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.\n\n**Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`",
  15545. "documentationUrl": "https://developer.github.com/v3/repos/hooks/#test-a-push-hook",
  15546. "enabledForApps": false,
  15547. "method": "POST",
  15548. "name": "Test a push hook",
  15549. "params": [
  15550. {
  15551. "name": "owner",
  15552. "type": "string",
  15553. "required": true,
  15554. "description": "",
  15555. "location": "url"
  15556. },
  15557. {
  15558. "name": "repo",
  15559. "type": "string",
  15560. "required": true,
  15561. "description": "",
  15562. "location": "url"
  15563. },
  15564. {
  15565. "name": "hook_id",
  15566. "type": "string",
  15567. "required": true,
  15568. "description": "",
  15569. "location": "url"
  15570. }
  15571. ],
  15572. "path": "/repos/:owner/:repo/hooks/:hook_id/tests"
  15573. },
  15574. "transfer": {
  15575. "description": "A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/).",
  15576. "documentationUrl": "https://developer.github.com/v3/repos/#transfer-a-repository",
  15577. "enabledForApps": false,
  15578. "method": "POST",
  15579. "name": "Transfer a repository",
  15580. "params": [
  15581. {
  15582. "name": "owner",
  15583. "type": "string",
  15584. "required": true,
  15585. "description": "",
  15586. "location": "url"
  15587. },
  15588. {
  15589. "name": "repo",
  15590. "type": "string",
  15591. "required": true,
  15592. "description": "",
  15593. "location": "url"
  15594. },
  15595. {
  15596. "name": "new_owner",
  15597. "type": "string",
  15598. "description": "**Required:** The username or organization name the repository will be transferred to.",
  15599. "required": false,
  15600. "location": "body"
  15601. },
  15602. {
  15603. "name": "team_id",
  15604. "type": "integer[]",
  15605. "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
  15606. "required": false,
  15607. "location": "body"
  15608. }
  15609. ],
  15610. "path": "/repos/:owner/:repo/transfer"
  15611. },
  15612. "updateBranchProtection": {
  15613. "description": "Protecting a branch requires admin or owner permissions to the repository.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.\n\n**Note**: The list of users and teams in total is limited to 100 items.",
  15614. "documentationUrl": "https://developer.github.com/v3/repos/branches/#update-branch-protection",
  15615. "enabledForApps": true,
  15616. "method": "PUT",
  15617. "name": "Update branch protection",
  15618. "params": [
  15619. {
  15620. "name": "owner",
  15621. "type": "string",
  15622. "required": true,
  15623. "description": "",
  15624. "location": "url"
  15625. },
  15626. {
  15627. "name": "repo",
  15628. "type": "string",
  15629. "required": true,
  15630. "description": "",
  15631. "location": "url"
  15632. },
  15633. {
  15634. "name": "branch",
  15635. "type": "string",
  15636. "required": true,
  15637. "description": "",
  15638. "location": "url"
  15639. },
  15640. {
  15641. "name": "required_status_checks",
  15642. "type": "object",
  15643. "description": "Require status checks to pass before merging. Set to `null` to disable.",
  15644. "required": true,
  15645. "allowNull": true,
  15646. "location": "body"
  15647. },
  15648. {
  15649. "name": "required_status_checks.strict",
  15650. "type": "boolean",
  15651. "description": "Require branches to be up to date before merging.",
  15652. "required": true,
  15653. "location": "body"
  15654. },
  15655. {
  15656. "name": "required_status_checks.contexts",
  15657. "type": "string[]",
  15658. "description": "The list of status checks to require in order to merge into this branch",
  15659. "required": true,
  15660. "location": "body"
  15661. },
  15662. {
  15663. "name": "enforce_admins",
  15664. "type": "boolean",
  15665. "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
  15666. "required": true,
  15667. "allowNull": true,
  15668. "location": "body"
  15669. },
  15670. {
  15671. "name": "required_pull_request_reviews",
  15672. "type": "object",
  15673. "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
  15674. "required": true,
  15675. "allowNull": true,
  15676. "location": "body"
  15677. },
  15678. {
  15679. "name": "required_pull_request_reviews.dismissal_restrictions",
  15680. "type": "object",
  15681. "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
  15682. "required": false,
  15683. "location": "body"
  15684. },
  15685. {
  15686. "name": "required_pull_request_reviews.dismissal_restrictions.users",
  15687. "type": "string[]",
  15688. "description": "The list of user `login`s with dismissal access",
  15689. "required": false,
  15690. "location": "body"
  15691. },
  15692. {
  15693. "name": "required_pull_request_reviews.dismissal_restrictions.teams",
  15694. "type": "string[]",
  15695. "description": "The list of team `slug`s with dismissal access",
  15696. "required": false,
  15697. "location": "body"
  15698. },
  15699. {
  15700. "name": "required_pull_request_reviews.dismiss_stale_reviews",
  15701. "type": "boolean",
  15702. "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
  15703. "required": false,
  15704. "location": "body"
  15705. },
  15706. {
  15707. "name": "required_pull_request_reviews.require_code_owner_reviews",
  15708. "type": "boolean",
  15709. "description": "Blocks merging pull requests until code owners review them.",
  15710. "required": false,
  15711. "location": "body"
  15712. },
  15713. {
  15714. "name": "required_pull_request_reviews.required_approving_review_count",
  15715. "type": "integer",
  15716. "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
  15717. "required": false,
  15718. "location": "body"
  15719. },
  15720. {
  15721. "name": "restrictions",
  15722. "type": "object",
  15723. "description": "Restrict who can push to this branch. Team and user `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
  15724. "required": true,
  15725. "allowNull": true,
  15726. "location": "body"
  15727. },
  15728. {
  15729. "name": "restrictions.users",
  15730. "type": "string[]",
  15731. "description": "The list of user `login`s with push access",
  15732. "required": false,
  15733. "location": "body"
  15734. },
  15735. {
  15736. "name": "restrictions.teams",
  15737. "type": "string[]",
  15738. "description": "The list of team `slug`s with push access",
  15739. "required": false,
  15740. "location": "body"
  15741. }
  15742. ],
  15743. "path": "/repos/:owner/:repo/branches/:branch/protection"
  15744. },
  15745. "updateCommitComment": {
  15746. "description": "",
  15747. "documentationUrl": "https://developer.github.com/v3/repos/comments/#update-a-commit-comment",
  15748. "enabledForApps": true,
  15749. "method": "PATCH",
  15750. "name": "Update a commit comment",
  15751. "params": [
  15752. {
  15753. "name": "owner",
  15754. "type": "string",
  15755. "required": true,
  15756. "description": "",
  15757. "location": "url"
  15758. },
  15759. {
  15760. "name": "repo",
  15761. "type": "string",
  15762. "required": true,
  15763. "description": "",
  15764. "location": "url"
  15765. },
  15766. {
  15767. "name": "comment_id",
  15768. "type": "string",
  15769. "required": true,
  15770. "description": "",
  15771. "location": "url"
  15772. },
  15773. {
  15774. "name": "body",
  15775. "type": "string",
  15776. "description": "The contents of the comment",
  15777. "required": true,
  15778. "location": "body"
  15779. }
  15780. ],
  15781. "path": "/repos/:owner/:repo/comments/:comment_id"
  15782. },
  15783. "updateFile": {
  15784. "description": "This method updates a file in a repository\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.\n\nBoth the `author` and `committer` parameters have the same keys:\n\n| name | type | description |\n| ----- | ------ | ---------------------------------------------------- |\n| name | string | The name of the author (or committer) of the commit |\n| email | string | The email of the author (or committer) of the commit |",
  15785. "documentationUrl": "https://developer.github.com/v3/repos/contents/#update-a-file",
  15786. "enabledForApps": true,
  15787. "method": "PUT",
  15788. "name": "Update a file",
  15789. "params": [
  15790. {
  15791. "name": "owner",
  15792. "type": "string",
  15793. "required": true,
  15794. "description": "",
  15795. "location": "url"
  15796. },
  15797. {
  15798. "name": "repo",
  15799. "type": "string",
  15800. "required": true,
  15801. "description": "",
  15802. "location": "url"
  15803. },
  15804. {
  15805. "name": "path",
  15806. "type": "string",
  15807. "description": "The content path.",
  15808. "required": true,
  15809. "location": "url"
  15810. },
  15811. {
  15812. "name": "message",
  15813. "type": "string",
  15814. "description": "The commit message.",
  15815. "required": true,
  15816. "location": "body"
  15817. },
  15818. {
  15819. "name": "content",
  15820. "type": "string",
  15821. "description": "The updated file content, Base64 encoded.",
  15822. "required": true,
  15823. "location": "body"
  15824. },
  15825. {
  15826. "name": "sha",
  15827. "type": "string",
  15828. "description": "The blob SHA of the file being replaced.",
  15829. "required": true,
  15830. "location": "body"
  15831. },
  15832. {
  15833. "name": "branch",
  15834. "type": "string",
  15835. "description": "The branch name.",
  15836. "default": "the repository’s default branch (usually `master`)",
  15837. "required": false,
  15838. "location": "body"
  15839. },
  15840. {
  15841. "name": "committer",
  15842. "type": "object",
  15843. "description": "object containing information about the committer.",
  15844. "location": "body"
  15845. },
  15846. {
  15847. "name": "author",
  15848. "type": "object",
  15849. "description": "object containing information about the author.",
  15850. "location": "body"
  15851. }
  15852. ],
  15853. "path": "/repos/:owner/:repo/contents/:path"
  15854. },
  15855. "updateInvite": {
  15856. "description": "",
  15857. "documentationUrl": "https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation",
  15858. "enabledForApps": true,
  15859. "method": "PATCH",
  15860. "name": "Update a repository invitation",
  15861. "params": [
  15862. {
  15863. "name": "owner",
  15864. "type": "string",
  15865. "required": true,
  15866. "description": "",
  15867. "location": "url"
  15868. },
  15869. {
  15870. "name": "repo",
  15871. "type": "string",
  15872. "required": true,
  15873. "description": "",
  15874. "location": "url"
  15875. },
  15876. {
  15877. "name": "invitation_id",
  15878. "type": "string",
  15879. "required": true,
  15880. "description": "",
  15881. "location": "url"
  15882. },
  15883. {
  15884. "name": "permissions",
  15885. "type": "string",
  15886. "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.",
  15887. "required": false,
  15888. "enum": [
  15889. "read",
  15890. "write",
  15891. "admin"
  15892. ],
  15893. "location": "body"
  15894. }
  15895. ],
  15896. "path": "/repos/:owner/:repo/invitations/:invitation_id"
  15897. },
  15898. "updateProtectedBranchPullRequestReviewEnforcement": {
  15899. "description": "Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.",
  15900. "documentationUrl": "https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch",
  15901. "enabledForApps": true,
  15902. "method": "PATCH",
  15903. "name": "Update pull request review enforcement of protected branch",
  15904. "params": [
  15905. {
  15906. "name": "owner",
  15907. "type": "string",
  15908. "required": true,
  15909. "description": "",
  15910. "location": "url"
  15911. },
  15912. {
  15913. "name": "repo",
  15914. "type": "string",
  15915. "required": true,
  15916. "description": "",
  15917. "location": "url"
  15918. },
  15919. {
  15920. "name": "branch",
  15921. "type": "string",
  15922. "required": true,
  15923. "description": "",
  15924. "location": "url"
  15925. },
  15926. {
  15927. "name": "dismissal_restrictions",
  15928. "type": "object",
  15929. "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
  15930. "required": false,
  15931. "location": "body"
  15932. },
  15933. {
  15934. "name": "dismissal_restrictions.users",
  15935. "type": "string[]",
  15936. "description": "The list of user `login`s with dismissal access",
  15937. "required": false,
  15938. "location": "body"
  15939. },
  15940. {
  15941. "name": "dismissal_restrictions.teams",
  15942. "type": "string[]",
  15943. "description": "The list of team `slug`s with dismissal access",
  15944. "required": false,
  15945. "location": "body"
  15946. },
  15947. {
  15948. "name": "dismiss_stale_reviews",
  15949. "type": "boolean",
  15950. "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
  15951. "required": false,
  15952. "location": "body"
  15953. },
  15954. {
  15955. "name": "require_code_owner_reviews",
  15956. "type": "boolean",
  15957. "description": "Blocks merging pull requests until code owners have reviewed.",
  15958. "required": false,
  15959. "location": "body"
  15960. },
  15961. {
  15962. "name": "required_approving_review_count",
  15963. "type": "integer",
  15964. "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
  15965. "required": false,
  15966. "location": "body"
  15967. }
  15968. ],
  15969. "path": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  15970. },
  15971. "updateProtectedBranchRequiredStatusChecks": {
  15972. "description": "Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.",
  15973. "documentationUrl": "https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch",
  15974. "enabledForApps": true,
  15975. "method": "PATCH",
  15976. "name": "Update required status checks of protected branch",
  15977. "params": [
  15978. {
  15979. "name": "owner",
  15980. "type": "string",
  15981. "required": true,
  15982. "description": "",
  15983. "location": "url"
  15984. },
  15985. {
  15986. "name": "repo",
  15987. "type": "string",
  15988. "required": true,
  15989. "description": "",
  15990. "location": "url"
  15991. },
  15992. {
  15993. "name": "branch",
  15994. "type": "string",
  15995. "required": true,
  15996. "description": "",
  15997. "location": "url"
  15998. },
  15999. {
  16000. "name": "strict",
  16001. "type": "boolean",
  16002. "description": "Require branches to be up to date before merging.",
  16003. "required": false,
  16004. "location": "body"
  16005. },
  16006. {
  16007. "name": "contexts",
  16008. "type": "string[]",
  16009. "description": "The list of status checks to require in order to merge into this branch",
  16010. "required": false,
  16011. "location": "body"
  16012. }
  16013. ],
  16014. "path": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  16015. },
  16016. "uploadAsset": {
  16017. "description": "This endpoint makes use of [a Hypermedia relation](https://developer.github.com/v3/#hypermedia) to determine which URL to access. This endpoint is provided by a URI template in [the release's API response](#get-a-single-release). You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.\n\nThe asset data is expected in its raw binary form, rather than JSON. Everything else about the endpoint is the same as the rest of the API. For example, you'll still need to pass your authentication to be able to upload an asset.\n\nSend the raw binary content of the asset as the request body.\n\nThis may leave an empty asset with a state of `\"new\"`. It can be safely deleted.",
  16018. "documentationUrl": "https://developer.github.com/v3/repos/releases/#upload-a-release-asset",
  16019. "enabledForApps": true,
  16020. "isOverride": true,
  16021. "method": "POST",
  16022. "name": "Upload a release asset",
  16023. "params": [
  16024. {
  16025. "name": "url",
  16026. "type": "string",
  16027. "required": true,
  16028. "description": "",
  16029. "location": "url"
  16030. },
  16031. {
  16032. "name": "Content-Length",
  16033. "type": "integer",
  16034. "description": "The content size of the asset in bytes",
  16035. "required": true,
  16036. "location": "headers"
  16037. },
  16038. {
  16039. "name": "Content-Type",
  16040. "type": "string",
  16041. "description": "The content type of the asset. This should be set in the Header. Example: `\"application/zip\"`. For a list of acceptable types, refer this list of [media types](https://www.iana.org/assignments/media-types/media-types.xhtml).",
  16042. "required": true,
  16043. "location": "headers"
  16044. },
  16045. {
  16046. "name": "name",
  16047. "type": "string",
  16048. "description": "The file name of the asset. This should be set in a URI query parameter.",
  16049. "required": true,
  16050. "location": "query"
  16051. },
  16052. {
  16053. "name": "label",
  16054. "type": "string",
  16055. "description": "An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter.",
  16056. "required": false,
  16057. "location": "query"
  16058. }
  16059. ],
  16060. "path": ":url"
  16061. }
  16062. },
  16063. "search": {
  16064. "code": {
  16065. "description": "Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\n**Note:** You must [authenticate](https://developer.github.com/v3/#authentication) to search for code across all public repositories.\n\n**Considerations for code search**\n\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:\n\n* Only the _default branch_ is considered. In most cases, this will be the `master` branch.\n* Only files smaller than 384 KB are searchable.\n* You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is.\n\nThe `q` search term can also contain any combination of the supported code search qualifiers as described by the in-browser [code search documentation](https://help.github.com/articles/searching-code/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):\n\n* [`in`](https://help.github.com/articles/searching-code#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to the file contents (`file`), the file path (`path`), or both.\n* [`language`](https://help.github.com/articles/searching-code#search-by-language) Searches code based on the language it's written in.\n* [`fork`](https://help.github.com/articles/searching-code#search-by-the-number-of-forks-the-parent-repository-has) Specifies that code from forked repositories should be searched (`true`). Repository forks will not be searchable unless the fork has more stars than the parent repository.\n* [`size`](https://help.github.com/articles/searching-code#search-by-the-size-of-the-parent-repository) Finds files that match a certain size (in bytes).\n* [`path`](https://help.github.com/articles/searching-code#search-by-the-location-of-a-file-within-the-repository) Specifies the path prefix that the resulting file must be under.\n* [`filename`](https://help.github.com/articles/searching-code#search-by-filename) Matches files by a substring of the filename.\n* [`extension`](https://help.github.com/articles/searching-code#search-by-the-file-extension) Matches files with a certain extension after a dot.\n* [`user` or `repo`](https://help.github.com/articles/searching-code#search-within-a-users-or-organizations-repositories) Limits searches to a specific user or repository.\n\nSuppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this:\n\nHere, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository.\n\n**Highlighting code search results**\n\nYou might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:\n\nThis produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.\n\nWhen searching for code, you can get text match metadata for the file **content** and file **path** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).\n\nHere's an example response:",
  16066. "documentationUrl": "https://developer.github.com/v3/search/#search-code",
  16067. "enabledForApps": true,
  16068. "method": "GET",
  16069. "name": "Search code",
  16070. "params": [
  16071. {
  16072. "name": "q",
  16073. "type": "string",
  16074. "description": "The search terms.",
  16075. "required": true,
  16076. "location": "query"
  16077. },
  16078. {
  16079. "name": "sort",
  16080. "type": "string",
  16081. "description": "The sort field. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure.",
  16082. "default": "results are sorted by best match.",
  16083. "required": false,
  16084. "enum": [
  16085. "indexed"
  16086. ],
  16087. "location": "query"
  16088. },
  16089. {
  16090. "name": "order",
  16091. "type": "string",
  16092. "description": "The sort order if `sort` parameter is provided. One of `asc` or `desc`.",
  16093. "default": "desc",
  16094. "required": false,
  16095. "enum": [
  16096. "asc",
  16097. "desc"
  16098. ],
  16099. "location": "query"
  16100. },
  16101. {
  16102. "name": "per_page",
  16103. "type": "integer",
  16104. "required": false,
  16105. "description": "Results per page (max 100)",
  16106. "default": 30,
  16107. "location": "query"
  16108. },
  16109. {
  16110. "name": "page",
  16111. "type": "integer",
  16112. "required": false,
  16113. "description": "Page number of the results to fetch.",
  16114. "default": 1,
  16115. "location": "query"
  16116. }
  16117. ],
  16118. "path": "/search/code"
  16119. },
  16120. "commits": {
  16121. "description": "Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\n**Considerations for commit search**\n\nOnly the _default branch_ is considered. In most cases, this will be the `master` branch.\n\nThe `q` search term can also contain any combination of the supported commit search qualifiers as described by the in-browser [commit search documentation](https://help.github.com/articles/searching-commits/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):\n\n* [`author`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits authored by a user (based on email settings).\n* [`committer`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits committed by a user (based on email settings).\n* [`author-name`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by author name.\n* [`committer-name`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by committer name.\n* [`author-email`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by author email.\n* [`committer-email`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by committer email.\n* [`author-date`](https://help.github.com/articles/searching-commits#search-by-authored-or-committed-date) Matches commits by author date range.\n* [`committer-date`](https://help.github.com/articles/searching-commits/#search-by-authored-or-committed-date) Matches commits by committer date range.\n* [`merge`](https://help.github.com/articles/searching-commits#filter-merge-commits) `true` filters to merge commits, `false` filters out merge commits.\n* [`hash`](https://help.github.com/articles/searching-commits#search-by-hash) Matches commits by hash.\n* [`parent`](https://help.github.com/articles/searching-commits#search-by-parent) Matches commits that have a particular parent.\n* [`tree`](https://help.github.com/articles/searching-commits#search-by-tree) Matches commits by tree hash.\n* [`is`](https://help.github.com/articles/searching-commits#filter-to-public-or-private-repositories) Matches `public` or `private` repositories.\n* [`user`, `org`, or `repo`](https://help.github.com/articles/searching-commits#search-within-a-users-or-organizations-repositories) Limits searches to a specific user, organization, or repository.\n\nSuppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:\n\n**Highlighting code search results**\n\nWhen searching for commits, you can get text match metadata for the **message** field. See the section on [text match metadata](#text-match-metadata) for full details.",
  16122. "documentationUrl": "https://developer.github.com/v3/search/#search-commits",
  16123. "enabledForApps": true,
  16124. "method": "GET",
  16125. "name": "Search commits",
  16126. "params": [
  16127. {
  16128. "name": "q",
  16129. "type": "string",
  16130. "description": "The search terms.",
  16131. "required": true,
  16132. "location": "query"
  16133. },
  16134. {
  16135. "name": "sort",
  16136. "type": "string",
  16137. "description": "The sort field. Can be `author-date` or `committer-date`.",
  16138. "default": "results are sorted by best match.",
  16139. "required": false,
  16140. "enum": [
  16141. "author-date",
  16142. "committer-date"
  16143. ],
  16144. "location": "query"
  16145. },
  16146. {
  16147. "name": "order",
  16148. "type": "string",
  16149. "description": "The sort order if `sort` parameter is provided. One of `asc` or `desc`.",
  16150. "default": "desc",
  16151. "required": false,
  16152. "enum": [
  16153. "asc",
  16154. "desc"
  16155. ],
  16156. "location": "query"
  16157. },
  16158. {
  16159. "name": "per_page",
  16160. "type": "integer",
  16161. "required": false,
  16162. "description": "Results per page (max 100)",
  16163. "default": 30,
  16164. "location": "query"
  16165. },
  16166. {
  16167. "name": "page",
  16168. "type": "integer",
  16169. "required": false,
  16170. "description": "Page number of the results to fetch.",
  16171. "default": 1,
  16172. "location": "query"
  16173. }
  16174. ],
  16175. "path": "/search/commits"
  16176. },
  16177. "issues": {
  16178. "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\nThe `q` search term can also contain any combination of the supported issue search qualifiers as described by the in-browser [issue search documentation](https://help.github.com/articles/searching-issues/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):\n\n* [`type`](https://help.github.com/articles/searching-issues#search-issues-or-pull-requests) With this qualifier you can restrict the search to issues (`issue`) or pull request (`pr`) only.\n* [`in`](https://help.github.com/articles/searching-issues#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to just the title (`title`), body (`body`), comments (`comments`), or any combination of these.\n* [`author`](https://help.github.com/articles/searching-issues#search-by-the-author-of-an-issue-or-pull-request) Finds issues or pull requests created by a certain user.\n* [`assignee`](https://help.github.com/articles/searching-issues#search-by-the-assignee-of-an-issue-or-pull-request) Finds issues or pull requests that are assigned to a certain user.\n* [`mentions`](https://help.github.com/articles/searching-issues#search-by-a-mentioned-user-within-an-issue-or-pull-request) Finds issues or pull requests that mention a certain user.\n* [`commenter`](https://help.github.com/articles/searching-issues#search-by-a-commenter-within-an-issue-or-pull-request) Finds issues or pull requests that a certain user commented on.\n* [`involves`](https://help.github.com/articles/searching-issues#search-by-a-user-thats-involved-within-an-issue-or-pull-request) Finds issues or pull requests that were either created by a certain user, assigned to that user, mention that user, or were commented on by that user.\n* [`team`](https://help.github.com/articles/searching-issues/#search-by-a-team-thats-mentioned-within-an-issue-or-pull-request) For organizations you're a member of, finds issues or pull requests that @mention a team within the organization.\n* [`state`](https://help.github.com/articles/searching-issues#search-based-on-whether-an-issue-or-pull-request-is-open) Filter issues or pull requests based on whether they're open or closed.\n* [`labels`](https://help.github.com/articles/searching-issues#search-by-the-labels-on-an-issue) Filters issues or pull requests based on their labels.\n* [`no`](https://help.github.com/articles/searching-issues#search-by-missing-metadata-on-an-issue-or-pull-request) Filters items missing certain metadata, such as `label`, `milestone`, or `assignee`\n* [`language`](https://help.github.com/articles/searching-issues#search-by-the-main-language-of-a-repository) Searches for issues or pull requests within repositories that match a certain language.\n* [`is`](https://help.github.com/articles/searching-issues#search-based-on-the-state-of-an-issue-or-pull-request) Searches for items within repositories that match a certain state, such as `open`, `closed`, or `merged`\n* [`created` or `updated`](https://help.github.com/articles/searching-issues#search-based-on-when-an-issue-or-pull-request-was-created-or-last-updated) Filters issues or pull requests based on date of creation, or when they were last updated.\n* [`merged`](https://help.github.com/articles/searching-issues#search-based-on-when-a-pull-request-was-merged) Filters pull requests based on the date when they were merged.\n* [`status`](https://help.github.com/articles/searching-issues#search-based-on-commit-status) Filters pull requests based on the commit status.\n* [`head` or `base`](https://help.github.com/articles/searching-issues#search-based-on-branch-names) Filters pull requests based on the branch that they came from or that they are modifying.\n* [`closed`](https://help.github.com/articles/searching-issues#search-based-on-when-an-issue-or-pull-request-was-closed) Filters issues or pull requests based on the date when they were closed.\n* [`comments`](https://help.github.com/articles/searching-issues#search-by-the-number-of-comments-an-issue-or-pull-request-has) Filters issues or pull requests based on the quantity of comments.\n* [`user` or `repo`](https://help.github.com/articles/searching-issues#search-within-a-users-or-organizations-repositories) Limits searches to a specific user or repository.\n* [`project`](https://help.github.com/articles/searching-issues/#search-by-project-board) Limits searches to a specific project board in a repository or organization.\n* [`archived`](https://help.github.com/articles/searching-issues/#search-within-archived-repositories) Filters issues or pull requests based on whether they are in an archived repository.\n\nIf you know the specific SHA hash of a commit, you can use also [use it to search for pull requests](https://help.github.com/articles/searching-issues#search-by-the-commit-shas-within-a-pull-request) that contain that SHA. Note that the SHA syntax must be at least seven characters.\n\nLet's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.\n\nIn this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results.\n\n**Highlighting issue search results**\n\nYou might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:\n\nThis produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.\n\nWhen searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).\n\nHere's an example response:",
  16179. "documentationUrl": "https://developer.github.com/v3/search/#search-issues",
  16180. "enabledForApps": true,
  16181. "method": "GET",
  16182. "name": "Search issues",
  16183. "params": [
  16184. {
  16185. "name": "q",
  16186. "type": "string",
  16187. "description": "The search terms.",
  16188. "required": true,
  16189. "location": "query"
  16190. },
  16191. {
  16192. "name": "sort",
  16193. "type": "string",
  16194. "description": "The sort field. Can be `comments`, `created`, or `updated`.",
  16195. "default": "results are sorted by best match.",
  16196. "required": false,
  16197. "enum": [
  16198. "comments",
  16199. "created",
  16200. "updated"
  16201. ],
  16202. "location": "query"
  16203. },
  16204. {
  16205. "name": "order",
  16206. "type": "string",
  16207. "description": "The sort order if `sort` parameter is provided. One of `asc` or `desc`.",
  16208. "default": "desc",
  16209. "required": false,
  16210. "enum": [
  16211. "asc",
  16212. "desc"
  16213. ],
  16214. "location": "query"
  16215. },
  16216. {
  16217. "name": "per_page",
  16218. "type": "integer",
  16219. "required": false,
  16220. "description": "Results per page (max 100)",
  16221. "default": 30,
  16222. "location": "query"
  16223. },
  16224. {
  16225. "name": "page",
  16226. "type": "integer",
  16227. "required": false,
  16228. "description": "Page number of the results to fetch.",
  16229. "default": 1,
  16230. "location": "query"
  16231. }
  16232. ],
  16233. "path": "/search/issues"
  16234. },
  16235. "labels": {
  16236. "description": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\nSuppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:\n\nThe labels that best match for the query appear first in the search results.\n\n**Highlighting label search results**\n\nYou might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:\n\nThis produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.\n\nWhen searching for labels, you can get text match metadata for the label **name** and **description** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).",
  16237. "documentationUrl": "https://developer.github.com/v3/search/#search-labels",
  16238. "enabledForApps": true,
  16239. "method": "GET",
  16240. "name": "Search labels",
  16241. "params": [
  16242. {
  16243. "name": "repository_id",
  16244. "type": "integer",
  16245. "description": "The id of the repository.",
  16246. "required": true,
  16247. "location": "query"
  16248. },
  16249. {
  16250. "name": "q",
  16251. "type": "string",
  16252. "description": "The search keywords.",
  16253. "required": true,
  16254. "location": "query"
  16255. },
  16256. {
  16257. "name": "sort",
  16258. "type": "string",
  16259. "description": "The sort field. Can be one of `created` or `updated`.",
  16260. "default": "results are sorted by best match.",
  16261. "required": false,
  16262. "enum": [
  16263. "created",
  16264. "updated"
  16265. ],
  16266. "location": "query"
  16267. },
  16268. {
  16269. "name": "order",
  16270. "type": "string",
  16271. "description": "The sort order if the sort parameter is provided. Can be one of `asc` or `desc`.",
  16272. "default": "desc",
  16273. "required": false,
  16274. "enum": [
  16275. "asc",
  16276. "desc"
  16277. ],
  16278. "location": "query"
  16279. }
  16280. ],
  16281. "path": "/search/labels"
  16282. },
  16283. "repos": {
  16284. "description": "Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\nThe `q` search term can also contain any combination of the supported repository search qualifiers as described by the in-browser [repository search documentation](https://help.github.com/articles/searching-repositories/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):\n\n* [`created` or `pushed`](https://help.github.com/articles/searching-repositories#search-based-on-when-a-repository-was-created-or-last-updated) Filters repositories based on date of creation, or when they were last updated.\n* [`fork`](https://help.github.com/articles/searching-repositories#search-based-on-the-number-of-forks-the-parent-repository-has) Filters whether forked repositories should be included (`true`) or only forked repositories should be returned (`only`).\n* [`forks`](https://help.github.com/articles/searching-repositories#search-based-on-the-number-of-forks-the-parent-repository-has) Filters repositories based on the number of forks.\n* [`in`](https://help.github.com/articles/searching-repositories#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to just the repository name, description, readme, or any combination of these.\n* [`language`](https://help.github.com/articles/searching-repositories#search-based-on-the-main-language-of-a-repository) Searches repositories based on the language they're written in.\n* [`license`](https://help.github.com/articles/searching-repositories#search-by-license) Filters repositories by license or license family, using the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type).\n* [`repo` or `user`](https://help.github.com/articles/searching-repositories#search-within-a-users-or-organizations-repositories) Limits searches to a specific repository or user.\n* [`size`](https://help.github.com/articles/searching-repositories#search-based-on-the-size-of-a-repository) Finds repositories that match a certain size (in kilobytes).\n* [`stars`](https://help.github.com/articles/searching-repositories#search-based-on-the-number-of-stars-a-repository-has) Searches repositories based on the number of stars.\n* [`topic`](https://help.github.com/articles/classifying-your-repository-with-topics/) Filters repositories based on the specified topic.\n* [`archived`](https://help.github.com/articles/searching-repositories/#search-based-on-whether-a-repository-is-archived) Filters whether archived repositories should be included (`true`) or not (`false`).\n\nSuppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.\n\nYou can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example:\n\nIn this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results.\n\n**Highlighting repository search results**\n\nYou might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:\n\nThis produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.\n\nWhen searching for repositories, you can get text match metadata for the **name** and **description** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).\n\nHere's an example response:",
  16285. "documentationUrl": "https://developer.github.com/v3/search/#search-repositories",
  16286. "enabledForApps": true,
  16287. "method": "GET",
  16288. "name": "Search repositories",
  16289. "params": [
  16290. {
  16291. "name": "q",
  16292. "type": "string",
  16293. "description": "The search keywords, as well as any qualifiers.",
  16294. "required": true,
  16295. "location": "query"
  16296. },
  16297. {
  16298. "name": "sort",
  16299. "type": "string",
  16300. "description": "The sort field. One of `stars`, `forks`, or `updated`.",
  16301. "default": "results are sorted by best match.",
  16302. "required": false,
  16303. "enum": [
  16304. "stars",
  16305. "forks",
  16306. "updated"
  16307. ],
  16308. "location": "query"
  16309. },
  16310. {
  16311. "name": "order",
  16312. "type": "string",
  16313. "description": "The sort order if `sort` parameter is provided. One of `asc` or `desc`.",
  16314. "default": "desc",
  16315. "required": false,
  16316. "enum": [
  16317. "asc",
  16318. "desc"
  16319. ],
  16320. "location": "query"
  16321. },
  16322. {
  16323. "name": "per_page",
  16324. "type": "integer",
  16325. "required": false,
  16326. "description": "Results per page (max 100)",
  16327. "default": 30,
  16328. "location": "query"
  16329. },
  16330. {
  16331. "name": "page",
  16332. "type": "integer",
  16333. "required": false,
  16334. "description": "Page number of the results to fetch.",
  16335. "default": 1,
  16336. "location": "query"
  16337. }
  16338. ],
  16339. "path": "/search/repositories"
  16340. },
  16341. "topics": {
  16342. "description": "Find topics via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\nResults are sorted by best match by default.\n\nThe `q` search term can also contain any combination of the supported topic search qualifiers as described by the in-browser [topic search documentation](https://help.github.com/articles/searching-topics/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):\n\n* `is:curated` Finds topics that have extra information, e.g., a description, display name, or logo, because they have an entry in the [`github/explore` repository](https://github.com/github/explore).\n* `is:featured` Finds topics listed on [https://github.com/topics](https://github.com/topics). Any featured topic will also be curated.\n* `is:not-featured` Finds topics not listed on [https://github.com/topics](https://github.com/topics).\n* `is:not-curated` Finds topics that have no extra information because they haven't been added to the [`github/explore` repository](https://github.com/github/explore).\n* `repositories:` Finds topics with some number of repositories using them, e.g., `repositories:>1000`.\n\nSuppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this:\n\nIn this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.\n\n**Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/v3/#link-header) indicating pagination is not included in the response.\n\n**Highlighting topic search results**\n\nYou might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your Accept header. For example, via cURL, the above query would look like this:\n\nThis produces the same JSON payload as above, with an extra key called `text_matches`, which is an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.\n\nWhen searching for topics, you can get text match metadata for the topic's **short_description**, **description**, **name**, or **display_name** field. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).",
  16343. "documentationUrl": "https://developer.github.com/v3/search/#search-topics",
  16344. "enabledForApps": true,
  16345. "method": "GET",
  16346. "name": "Search topics",
  16347. "params": [
  16348. {
  16349. "name": "q",
  16350. "type": "string",
  16351. "description": "The search terms.",
  16352. "required": true,
  16353. "location": "query"
  16354. }
  16355. ],
  16356. "path": "/search/topics"
  16357. },
  16358. "users": {
  16359. "description": "Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).\n\nThe `q` search term can also contain any combination of the supported user search qualifiers as described by the in-browser [user search documentation](https://help.github.com/articles/searching-users/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):\n\n* [`type`](https://help.github.com/articles/searching-users#search-for-users-or-organizations) With this qualifier you can restrict the search to just personal accounts (`user`) or just organization accounts (`org`).\n* [`in`](https://help.github.com/articles/searching-users#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to just the username (`login`), public email (`email`), full name (`fullname`), or any combination of these.\n* [`repos`](https://help.github.com/articles/searching-users#search-based-on-the-number-of-repositories-a-user-has) Filters users based on the number of repositories they have.\n* [`location`](https://help.github.com/articles/searching-users#search-based-on-the-location-where-a-user-resides) Filter users by the location indicated in their profile.\n* [`language`](https://help.github.com/articles/searching-users#search-based-on-the-languages-of-a-users-repositories) Search for users that have repositories that match a certain language.\n* [`created`](https://help.github.com/articles/searching-users#search-based-on-when-a-user-joined-github) Filter users based on when they joined.\n* [`followers`](https://help.github.com/articles/searching-users#search-based-on-the-number-of-followers-a-user-has) Filter users based on the number of followers they have.\n\nImagine you're looking for a list of popular users. You might try out this query:\n\nHere, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers.\n\n**Highlighting user search results**\n\nYou might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:\n\nThis produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.\n\nWhen searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).",
  16360. "documentationUrl": "https://developer.github.com/v3/search/#search-users",
  16361. "enabledForApps": true,
  16362. "method": "GET",
  16363. "name": "Search users",
  16364. "params": [
  16365. {
  16366. "name": "q",
  16367. "type": "string",
  16368. "description": "The search terms.",
  16369. "required": true,
  16370. "location": "query"
  16371. },
  16372. {
  16373. "name": "sort",
  16374. "type": "string",
  16375. "description": "The sort field. Can be `followers`, `repositories`, or `joined`.",
  16376. "default": "results are sorted by best match.",
  16377. "required": false,
  16378. "enum": [
  16379. "followers",
  16380. "repositories",
  16381. "joined"
  16382. ],
  16383. "location": "query"
  16384. },
  16385. {
  16386. "name": "order",
  16387. "type": "string",
  16388. "description": "The sort order if `sort` parameter is provided. One of `asc` or `desc`.",
  16389. "default": "desc",
  16390. "required": false,
  16391. "enum": [
  16392. "asc",
  16393. "desc"
  16394. ],
  16395. "location": "query"
  16396. },
  16397. {
  16398. "name": "per_page",
  16399. "type": "integer",
  16400. "required": false,
  16401. "description": "Results per page (max 100)",
  16402. "default": 30,
  16403. "location": "query"
  16404. },
  16405. {
  16406. "name": "page",
  16407. "type": "integer",
  16408. "required": false,
  16409. "description": "Page number of the results to fetch.",
  16410. "default": 1,
  16411. "location": "query"
  16412. }
  16413. ],
  16414. "path": "/search/users"
  16415. }
  16416. },
  16417. "users": {
  16418. "acceptRepoInvite": {
  16419. "description": "",
  16420. "documentationUrl": "https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation",
  16421. "enabledForApps": false,
  16422. "method": "PATCH",
  16423. "name": "Accept a repository invitation",
  16424. "params": [
  16425. {
  16426. "name": "invitation_id",
  16427. "type": "string",
  16428. "required": true,
  16429. "description": "",
  16430. "location": "url"
  16431. }
  16432. ],
  16433. "path": "/user/repository_invitations/:invitation_id"
  16434. },
  16435. "addEmails": {
  16436. "description": "You can post a single email address or an array of addresses:",
  16437. "documentationUrl": "https://developer.github.com/v3/users/emails/#add-email-addresses",
  16438. "enabledForApps": false,
  16439. "method": "POST",
  16440. "name": "Add email address(es)",
  16441. "params": [],
  16442. "path": "/user/emails"
  16443. },
  16444. "addRepoToInstallation": {
  16445. "description": "Add a single repository to an installation.\n\nThe authenticated user must have admin access to the repository.",
  16446. "documentationUrl": "https://developer.github.com/v3/apps/installations/#add-repository-to-installation",
  16447. "enabledForApps": false,
  16448. "method": "PUT",
  16449. "name": "Add repository to installation",
  16450. "params": [
  16451. {
  16452. "name": "installation_id",
  16453. "type": "string",
  16454. "required": true,
  16455. "description": "",
  16456. "location": "url"
  16457. },
  16458. {
  16459. "name": "repository_id",
  16460. "type": "string",
  16461. "required": true,
  16462. "description": "",
  16463. "location": "url"
  16464. }
  16465. ],
  16466. "path": "/user/installations/:installation_id/repositories/:repository_id"
  16467. },
  16468. "blockUser": {
  16469. "description": "",
  16470. "documentationUrl": "https://developer.github.com/v3/users/blocking/#block-a-user",
  16471. "enabledForApps": false,
  16472. "method": "PUT",
  16473. "name": "Block a user",
  16474. "params": [
  16475. {
  16476. "name": "username",
  16477. "type": "string",
  16478. "required": true,
  16479. "description": "",
  16480. "location": "url"
  16481. }
  16482. ],
  16483. "path": "/user/blocks/:username"
  16484. },
  16485. "checkBlockedUser": {
  16486. "description": "If the user is blocked:\n\nIf the user is not blocked:",
  16487. "documentationUrl": "https://developer.github.com/v3/users/blocking/#check-whether-youve-blocked-a-user",
  16488. "enabledForApps": false,
  16489. "method": "GET",
  16490. "name": "Check whether you've blocked a user",
  16491. "params": [
  16492. {
  16493. "name": "username",
  16494. "type": "string",
  16495. "required": true,
  16496. "description": "",
  16497. "location": "url"
  16498. }
  16499. ],
  16500. "path": "/user/blocks/:username"
  16501. },
  16502. "checkFollowing": {
  16503. "description": "",
  16504. "documentationUrl": "https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user",
  16505. "enabledForApps": false,
  16506. "method": "GET",
  16507. "name": "Check if you are following a user",
  16508. "params": [
  16509. {
  16510. "name": "username",
  16511. "type": "string",
  16512. "required": true,
  16513. "description": "",
  16514. "location": "url"
  16515. }
  16516. ],
  16517. "path": "/user/following/:username"
  16518. },
  16519. "checkIfOneFollowersOther": {
  16520. "description": "",
  16521. "documentationUrl": "https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another",
  16522. "enabledForApps": true,
  16523. "method": "GET",
  16524. "name": "Check if one user follows another",
  16525. "params": [
  16526. {
  16527. "name": "username",
  16528. "type": "string",
  16529. "required": true,
  16530. "description": "",
  16531. "location": "url"
  16532. },
  16533. {
  16534. "name": "target_user",
  16535. "type": "string",
  16536. "required": true,
  16537. "description": "",
  16538. "location": "url"
  16539. }
  16540. ],
  16541. "path": "/users/:username/following/:target_user"
  16542. },
  16543. "createGpgKey": {
  16544. "description": "Creates a GPG key. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  16545. "documentationUrl": "https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key",
  16546. "enabledForApps": false,
  16547. "method": "POST",
  16548. "name": "Create a GPG key",
  16549. "params": [],
  16550. "path": "/user/gpg_keys"
  16551. },
  16552. "createKey": {
  16553. "description": "Creates a public key. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  16554. "documentationUrl": "https://developer.github.com/v3/users/keys/#create-a-public-key",
  16555. "enabledForApps": false,
  16556. "method": "POST",
  16557. "name": "Create a public key",
  16558. "params": [],
  16559. "path": "/user/keys"
  16560. },
  16561. "declineRepoInvite": {
  16562. "description": "",
  16563. "documentationUrl": "https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation",
  16564. "enabledForApps": false,
  16565. "method": "DELETE",
  16566. "name": "Decline a repository invitation",
  16567. "params": [
  16568. {
  16569. "name": "invitation_id",
  16570. "type": "string",
  16571. "required": true,
  16572. "description": "",
  16573. "location": "url"
  16574. }
  16575. ],
  16576. "path": "/user/repository_invitations/:invitation_id"
  16577. },
  16578. "deleteEmails": {
  16579. "description": "You can include a single email address or an array of addresses:",
  16580. "documentationUrl": "https://developer.github.com/v3/users/emails/#delete-email-addresses",
  16581. "enabledForApps": false,
  16582. "method": "DELETE",
  16583. "name": "Delete email address(es)",
  16584. "params": [],
  16585. "path": "/user/emails"
  16586. },
  16587. "deleteGpgKey": {
  16588. "description": "Removes a GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  16589. "documentationUrl": "https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key",
  16590. "enabledForApps": false,
  16591. "method": "DELETE",
  16592. "name": "Delete a GPG key",
  16593. "params": [
  16594. {
  16595. "name": "gpg_key_id",
  16596. "type": "string",
  16597. "required": true,
  16598. "description": "",
  16599. "location": "url"
  16600. }
  16601. ],
  16602. "path": "/user/gpg_keys/:gpg_key_id"
  16603. },
  16604. "deleteKey": {
  16605. "description": "Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  16606. "documentationUrl": "https://developer.github.com/v3/users/keys/#delete-a-public-key",
  16607. "enabledForApps": false,
  16608. "method": "DELETE",
  16609. "name": "Delete a public key",
  16610. "params": [
  16611. {
  16612. "name": "key_id",
  16613. "type": "string",
  16614. "required": true,
  16615. "description": "",
  16616. "location": "url"
  16617. }
  16618. ],
  16619. "path": "/user/keys/:key_id"
  16620. },
  16621. "editOrgMembership": {
  16622. "description": "",
  16623. "documentationUrl": "https://developer.github.com/v3/orgs/members/#edit-your-organization-membership",
  16624. "enabledForApps": false,
  16625. "method": "PATCH",
  16626. "name": "Edit your organization membership",
  16627. "params": [
  16628. {
  16629. "name": "org",
  16630. "type": "string",
  16631. "required": true,
  16632. "description": "",
  16633. "location": "url"
  16634. },
  16635. {
  16636. "name": "state",
  16637. "type": "string",
  16638. "description": "The state that the membership should be in. Only `\"active\"` will be accepted.",
  16639. "required": true,
  16640. "enum": [
  16641. "active"
  16642. ],
  16643. "location": "body"
  16644. }
  16645. ],
  16646. "path": "/user/memberships/orgs/:org"
  16647. },
  16648. "followUser": {
  16649. "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"\n\nFollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
  16650. "documentationUrl": "https://developer.github.com/v3/users/followers/#follow-a-user",
  16651. "enabledForApps": false,
  16652. "method": "PUT",
  16653. "name": "Follow a user",
  16654. "params": [
  16655. {
  16656. "name": "username",
  16657. "type": "string",
  16658. "required": true,
  16659. "description": "",
  16660. "location": "url"
  16661. }
  16662. ],
  16663. "path": "/user/following/:username"
  16664. },
  16665. "get": {
  16666. "description": "Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope.\n\nLists public profile information when authenticated through OAuth without the `user` scope.",
  16667. "documentationUrl": "https://developer.github.com/v3/users/#get-the-authenticated-user",
  16668. "enabledForApps": false,
  16669. "method": "GET",
  16670. "name": "Get the authenticated user",
  16671. "params": [],
  16672. "path": "/user"
  16673. },
  16674. "getAll": {
  16675. "description": "Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of users.",
  16676. "documentationUrl": "https://developer.github.com/v3/users/#get-all-users",
  16677. "enabledForApps": true,
  16678. "method": "GET",
  16679. "name": "Get all users",
  16680. "params": [
  16681. {
  16682. "name": "since",
  16683. "type": "string",
  16684. "description": "The integer ID of the last User that you've seen.",
  16685. "required": false,
  16686. "location": "query"
  16687. },
  16688. {
  16689. "name": "per_page",
  16690. "type": "integer",
  16691. "required": false,
  16692. "description": "Results per page (max 100)",
  16693. "default": 30,
  16694. "location": "query"
  16695. },
  16696. {
  16697. "name": "page",
  16698. "type": "integer",
  16699. "required": false,
  16700. "description": "Page number of the results to fetch.",
  16701. "default": 1,
  16702. "location": "query"
  16703. }
  16704. ],
  16705. "path": "/users"
  16706. },
  16707. "getBlockedUsers": {
  16708. "description": "List the users you've blocked on your personal account.",
  16709. "documentationUrl": "https://developer.github.com/v3/users/blocking/#list-blocked-users",
  16710. "enabledForApps": false,
  16711. "method": "GET",
  16712. "name": "List blocked users",
  16713. "params": [],
  16714. "path": "/user/blocks"
  16715. },
  16716. "getContextForUser": {
  16717. "description": "Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\nThe `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:",
  16718. "documentationUrl": "https://developer.github.com/v3/users/#get-contextual-information-about-a-user",
  16719. "enabledForApps": false,
  16720. "method": "GET",
  16721. "name": "Get contextual information about a user",
  16722. "params": [
  16723. {
  16724. "name": "username",
  16725. "type": "string",
  16726. "required": true,
  16727. "description": "",
  16728. "location": "url"
  16729. },
  16730. {
  16731. "name": "subject_type",
  16732. "type": "string",
  16733. "description": "Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`.",
  16734. "required": false,
  16735. "enum": [
  16736. "organization",
  16737. "repository",
  16738. "issue",
  16739. "pull_request"
  16740. ],
  16741. "location": "query"
  16742. },
  16743. {
  16744. "name": "subject_id",
  16745. "type": "string",
  16746. "description": "Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`.",
  16747. "required": false,
  16748. "location": "query"
  16749. }
  16750. ],
  16751. "path": "/users/:username/hovercard"
  16752. },
  16753. "getEmails": {
  16754. "description": "Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope.",
  16755. "documentationUrl": "https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user",
  16756. "enabledForApps": false,
  16757. "method": "GET",
  16758. "name": "List email addresses for a user",
  16759. "params": [
  16760. {
  16761. "name": "per_page",
  16762. "type": "integer",
  16763. "required": false,
  16764. "description": "Results per page (max 100)",
  16765. "default": 30,
  16766. "location": "query"
  16767. },
  16768. {
  16769. "name": "page",
  16770. "type": "integer",
  16771. "required": false,
  16772. "description": "Page number of the results to fetch.",
  16773. "default": 1,
  16774. "location": "query"
  16775. }
  16776. ],
  16777. "path": "/user/emails"
  16778. },
  16779. "getFollowers": {
  16780. "description": "",
  16781. "documentationUrl": "https://developer.github.com/v3/users/followers/#list-followers-of-a-user",
  16782. "enabledForApps": true,
  16783. "method": "GET",
  16784. "name": "List the authenticated user's followers",
  16785. "params": [
  16786. {
  16787. "name": "per_page",
  16788. "type": "integer",
  16789. "required": false,
  16790. "description": "Results per page (max 100)",
  16791. "default": 30,
  16792. "location": "query"
  16793. },
  16794. {
  16795. "name": "page",
  16796. "type": "integer",
  16797. "required": false,
  16798. "description": "Page number of the results to fetch.",
  16799. "default": 1,
  16800. "location": "query"
  16801. }
  16802. ],
  16803. "path": "/user/followers"
  16804. },
  16805. "getFollowersForUser": {
  16806. "description": "",
  16807. "documentationUrl": "https://developer.github.com/v3/users/followers/#list-followers-of-a-user",
  16808. "enabledForApps": true,
  16809. "method": "GET",
  16810. "name": "List a user's followers",
  16811. "params": [
  16812. {
  16813. "name": "username",
  16814. "type": "string",
  16815. "required": true,
  16816. "description": "",
  16817. "location": "url"
  16818. },
  16819. {
  16820. "name": "per_page",
  16821. "type": "integer",
  16822. "required": false,
  16823. "description": "Results per page (max 100)",
  16824. "default": 30,
  16825. "location": "query"
  16826. },
  16827. {
  16828. "name": "page",
  16829. "type": "integer",
  16830. "required": false,
  16831. "description": "Page number of the results to fetch.",
  16832. "default": 1,
  16833. "location": "query"
  16834. }
  16835. ],
  16836. "path": "/users/:username/followers"
  16837. },
  16838. "getFollowing": {
  16839. "description": "",
  16840. "documentationUrl": "https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user",
  16841. "enabledForApps": true,
  16842. "method": "GET",
  16843. "name": "List who the authenticated user is following",
  16844. "params": [
  16845. {
  16846. "name": "per_page",
  16847. "type": "integer",
  16848. "required": false,
  16849. "description": "Results per page (max 100)",
  16850. "default": 30,
  16851. "location": "query"
  16852. },
  16853. {
  16854. "name": "page",
  16855. "type": "integer",
  16856. "required": false,
  16857. "description": "Page number of the results to fetch.",
  16858. "default": 1,
  16859. "location": "query"
  16860. }
  16861. ],
  16862. "path": "/user/following"
  16863. },
  16864. "getFollowingForUser": {
  16865. "description": "",
  16866. "documentationUrl": "https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user",
  16867. "enabledForApps": true,
  16868. "method": "GET",
  16869. "name": "List who a user is following",
  16870. "params": [
  16871. {
  16872. "name": "username",
  16873. "type": "string",
  16874. "required": true,
  16875. "description": "",
  16876. "location": "url"
  16877. },
  16878. {
  16879. "name": "per_page",
  16880. "type": "integer",
  16881. "required": false,
  16882. "description": "Results per page (max 100)",
  16883. "default": 30,
  16884. "location": "query"
  16885. },
  16886. {
  16887. "name": "page",
  16888. "type": "integer",
  16889. "required": false,
  16890. "description": "Page number of the results to fetch.",
  16891. "default": 1,
  16892. "location": "query"
  16893. }
  16894. ],
  16895. "path": "/users/:username/following"
  16896. },
  16897. "getForUser": {
  16898. "description": "Provides publicly available information about someone with a GitHub account.\n\nThe `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://developer.github.com/v3/#authentication).\n\nThe Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"[Emails API](https://developer.github.com/v3/users/emails/)\".",
  16899. "documentationUrl": "https://developer.github.com/v3/users/#get-a-single-user",
  16900. "enabledForApps": true,
  16901. "method": "GET",
  16902. "name": "Get a single user",
  16903. "params": [
  16904. {
  16905. "name": "username",
  16906. "type": "string",
  16907. "required": true,
  16908. "description": "",
  16909. "location": "url"
  16910. }
  16911. ],
  16912. "path": "/users/:username"
  16913. },
  16914. "getGpgKey": {
  16915. "description": "View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  16916. "documentationUrl": "https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key",
  16917. "enabledForApps": false,
  16918. "method": "GET",
  16919. "name": "Get a single GPG key",
  16920. "params": [
  16921. {
  16922. "name": "gpg_key_id",
  16923. "type": "string",
  16924. "required": true,
  16925. "description": "",
  16926. "location": "url"
  16927. }
  16928. ],
  16929. "path": "/user/gpg_keys/:gpg_key_id"
  16930. },
  16931. "getGpgKeys": {
  16932. "description": "Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  16933. "documentationUrl": "https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys",
  16934. "enabledForApps": false,
  16935. "method": "GET",
  16936. "name": "List your GPG keys",
  16937. "params": [
  16938. {
  16939. "name": "per_page",
  16940. "type": "integer",
  16941. "required": false,
  16942. "description": "Results per page (max 100)",
  16943. "default": 30,
  16944. "location": "query"
  16945. },
  16946. {
  16947. "name": "page",
  16948. "type": "integer",
  16949. "required": false,
  16950. "description": "Page number of the results to fetch.",
  16951. "default": 1,
  16952. "location": "query"
  16953. }
  16954. ],
  16955. "path": "/user/gpg_keys"
  16956. },
  16957. "getGpgKeysForUser": {
  16958. "description": "Lists the GPG keys for a user. This information is accessible by anyone.",
  16959. "documentationUrl": "https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-a-user",
  16960. "enabledForApps": true,
  16961. "method": "GET",
  16962. "name": "List GPG keys for a user",
  16963. "params": [
  16964. {
  16965. "name": "username",
  16966. "type": "string",
  16967. "required": true,
  16968. "description": "",
  16969. "location": "url"
  16970. },
  16971. {
  16972. "name": "per_page",
  16973. "type": "integer",
  16974. "required": false,
  16975. "description": "Results per page (max 100)",
  16976. "default": 30,
  16977. "location": "query"
  16978. },
  16979. {
  16980. "name": "page",
  16981. "type": "integer",
  16982. "required": false,
  16983. "description": "Page number of the results to fetch.",
  16984. "default": 1,
  16985. "location": "query"
  16986. }
  16987. ],
  16988. "path": "/users/:username/gpg_keys"
  16989. },
  16990. "getInstallationRepos": {
  16991. "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.\n\nThe access the user has to each repository is included in the hash under the `permissions` key.",
  16992. "documentationUrl": "https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation",
  16993. "enabledForApps": false,
  16994. "method": "GET",
  16995. "name": "List repositories accessible to the user for an installation",
  16996. "params": [
  16997. {
  16998. "name": "installation_id",
  16999. "type": "string",
  17000. "required": true,
  17001. "description": "",
  17002. "location": "url"
  17003. },
  17004. {
  17005. "name": "per_page",
  17006. "type": "integer",
  17007. "required": false,
  17008. "description": "Results per page (max 100)",
  17009. "default": 30,
  17010. "location": "query"
  17011. },
  17012. {
  17013. "name": "page",
  17014. "type": "integer",
  17015. "required": false,
  17016. "description": "Page number of the results to fetch.",
  17017. "default": 1,
  17018. "location": "query"
  17019. }
  17020. ],
  17021. "path": "/user/installations/:installation_id/repositories"
  17022. },
  17023. "getInstallations": {
  17024. "description": "Lists installations in a repository that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe permissions the installation has are included under the `permissions` key.",
  17025. "documentationUrl": "https://developer.github.com/v3/apps/#list-installations-for-user",
  17026. "enabledForApps": false,
  17027. "method": "GET",
  17028. "name": "List installations for user",
  17029. "params": [
  17030. {
  17031. "name": "per_page",
  17032. "type": "integer",
  17033. "required": false,
  17034. "description": "Results per page (max 100)",
  17035. "default": 30,
  17036. "location": "query"
  17037. },
  17038. {
  17039. "name": "page",
  17040. "type": "integer",
  17041. "required": false,
  17042. "description": "Page number of the results to fetch.",
  17043. "default": 1,
  17044. "location": "query"
  17045. }
  17046. ],
  17047. "path": "/user/installations"
  17048. },
  17049. "getKey": {
  17050. "description": "View extended details for a single public key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  17051. "documentationUrl": "https://developer.github.com/v3/users/keys/#get-a-single-public-key",
  17052. "enabledForApps": false,
  17053. "method": "GET",
  17054. "name": "Get a single public key",
  17055. "params": [
  17056. {
  17057. "name": "key_id",
  17058. "type": "string",
  17059. "required": true,
  17060. "description": "",
  17061. "location": "url"
  17062. }
  17063. ],
  17064. "path": "/user/keys/:key_id"
  17065. },
  17066. "getKeys": {
  17067. "description": "Lists the current user's keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
  17068. "documentationUrl": "https://developer.github.com/v3/users/keys/#list-your-public-keys",
  17069. "enabledForApps": false,
  17070. "method": "GET",
  17071. "name": "List your public keys",
  17072. "params": [
  17073. {
  17074. "name": "per_page",
  17075. "type": "integer",
  17076. "required": false,
  17077. "description": "Results per page (max 100)",
  17078. "default": 30,
  17079. "location": "query"
  17080. },
  17081. {
  17082. "name": "page",
  17083. "type": "integer",
  17084. "required": false,
  17085. "description": "Page number of the results to fetch.",
  17086. "default": 1,
  17087. "location": "query"
  17088. }
  17089. ],
  17090. "path": "/user/keys"
  17091. },
  17092. "getKeysForUser": {
  17093. "description": "Lists the _verified_ public keys for a user. This is accessible by anyone.",
  17094. "documentationUrl": "https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user",
  17095. "enabledForApps": true,
  17096. "method": "GET",
  17097. "name": "List public keys for a user",
  17098. "params": [
  17099. {
  17100. "name": "username",
  17101. "type": "string",
  17102. "required": true,
  17103. "description": "",
  17104. "location": "url"
  17105. },
  17106. {
  17107. "name": "per_page",
  17108. "type": "integer",
  17109. "required": false,
  17110. "description": "Results per page (max 100)",
  17111. "default": 30,
  17112. "location": "query"
  17113. },
  17114. {
  17115. "name": "page",
  17116. "type": "integer",
  17117. "required": false,
  17118. "description": "Page number of the results to fetch.",
  17119. "default": 1,
  17120. "location": "query"
  17121. }
  17122. ],
  17123. "path": "/users/:username/keys"
  17124. },
  17125. "getMarketplacePurchases": {
  17126. "description": "Returns only active subscriptions. You need to authenticate this call with the user's OAuth token.",
  17127. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#get-a-users-marketplace-purchases",
  17128. "enabledForApps": false,
  17129. "method": "GET",
  17130. "name": "Get a user's Marketplace purchases",
  17131. "params": [
  17132. {
  17133. "name": "per_page",
  17134. "type": "integer",
  17135. "required": false,
  17136. "description": "Results per page (max 100)",
  17137. "default": 30,
  17138. "location": "query"
  17139. },
  17140. {
  17141. "name": "page",
  17142. "type": "integer",
  17143. "required": false,
  17144. "description": "Page number of the results to fetch.",
  17145. "default": 1,
  17146. "location": "query"
  17147. }
  17148. ],
  17149. "path": "/user/marketplace_purchases"
  17150. },
  17151. "getMarketplaceStubbedPurchases": {
  17152. "description": "Returns only active subscriptions. You need to authenticate this call with the user's OAuth token.",
  17153. "documentationUrl": "https://developer.github.com/v3/apps/marketplace/#get-a-users-marketplace-purchases",
  17154. "enabledForApps": false,
  17155. "method": "GET",
  17156. "name": "Get a user's Marketplace purchases (stubbed)",
  17157. "params": [
  17158. {
  17159. "name": "per_page",
  17160. "type": "integer",
  17161. "required": false,
  17162. "description": "Results per page (max 100)",
  17163. "default": 30,
  17164. "location": "query"
  17165. },
  17166. {
  17167. "name": "page",
  17168. "type": "integer",
  17169. "required": false,
  17170. "description": "Page number of the results to fetch.",
  17171. "default": 1,
  17172. "location": "query"
  17173. }
  17174. ],
  17175. "path": "/user/marketplace_purchases/stubbed"
  17176. },
  17177. "getOrgMembership": {
  17178. "description": "",
  17179. "documentationUrl": "https://developer.github.com/v3/orgs/members/#get-your-organization-membership",
  17180. "enabledForApps": false,
  17181. "method": "GET",
  17182. "name": "Get your organization membership",
  17183. "params": [
  17184. {
  17185. "name": "org",
  17186. "type": "string",
  17187. "required": true,
  17188. "description": "",
  17189. "location": "url"
  17190. }
  17191. ],
  17192. "path": "/user/memberships/orgs/:org"
  17193. },
  17194. "getOrgMemberships": {
  17195. "description": "",
  17196. "documentationUrl": "https://developer.github.com/v3/orgs/members/#list-your-organization-memberships",
  17197. "enabledForApps": false,
  17198. "method": "GET",
  17199. "name": "List your organization memberships",
  17200. "params": [
  17201. {
  17202. "name": "state",
  17203. "type": "string",
  17204. "description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships.",
  17205. "required": false,
  17206. "enum": [
  17207. "active",
  17208. "pending"
  17209. ],
  17210. "location": "query"
  17211. },
  17212. {
  17213. "name": "per_page",
  17214. "type": "integer",
  17215. "required": false,
  17216. "description": "Results per page (max 100)",
  17217. "default": 30,
  17218. "location": "query"
  17219. },
  17220. {
  17221. "name": "page",
  17222. "type": "integer",
  17223. "required": false,
  17224. "description": "Page number of the results to fetch.",
  17225. "default": 1,
  17226. "location": "query"
  17227. }
  17228. ],
  17229. "path": "/user/memberships/orgs"
  17230. },
  17231. "getOrgs": {
  17232. "description": "List organizations for the authenticated user.\n\n**OAuth scope requirements**\n\nThis only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.",
  17233. "documentationUrl": "https://developer.github.com/v3/orgs/#list-your-organizations",
  17234. "enabledForApps": false,
  17235. "method": "GET",
  17236. "name": "List your organizations",
  17237. "params": [
  17238. {
  17239. "name": "per_page",
  17240. "type": "integer",
  17241. "required": false,
  17242. "description": "Results per page (max 100)",
  17243. "default": 30,
  17244. "location": "query"
  17245. },
  17246. {
  17247. "name": "page",
  17248. "type": "integer",
  17249. "required": false,
  17250. "description": "Page number of the results to fetch.",
  17251. "default": 1,
  17252. "location": "query"
  17253. }
  17254. ],
  17255. "path": "/user/orgs"
  17256. },
  17257. "getPublicEmails": {
  17258. "description": "Lists your publicly visible email address, which you can set with the [Toggle primary email visibility](#toggle-primary-email-visibility) endpoint. This endpoint is accessible with the `user:email` scope.",
  17259. "documentationUrl": "https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user",
  17260. "enabledForApps": false,
  17261. "method": "GET",
  17262. "name": "List public email addresses for a user",
  17263. "params": [
  17264. {
  17265. "name": "per_page",
  17266. "type": "integer",
  17267. "required": false,
  17268. "description": "Results per page (max 100)",
  17269. "default": 30,
  17270. "location": "query"
  17271. },
  17272. {
  17273. "name": "page",
  17274. "type": "integer",
  17275. "required": false,
  17276. "description": "Page number of the results to fetch.",
  17277. "default": 1,
  17278. "location": "query"
  17279. }
  17280. ],
  17281. "path": "/user/public_emails"
  17282. },
  17283. "getRepoInvites": {
  17284. "description": "When authenticating as a user, this endpoint will list all currently open repository invitations for that user.\n\n",
  17285. "documentationUrl": "https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations",
  17286. "enabledForApps": false,
  17287. "method": "GET",
  17288. "name": "List a user's repository invitations",
  17289. "params": [
  17290. {
  17291. "name": "per_page",
  17292. "type": "integer",
  17293. "required": false,
  17294. "description": "Results per page (max 100)",
  17295. "default": 30,
  17296. "location": "query"
  17297. },
  17298. {
  17299. "name": "page",
  17300. "type": "integer",
  17301. "required": false,
  17302. "description": "Page number of the results to fetch.",
  17303. "default": 1,
  17304. "location": "query"
  17305. }
  17306. ],
  17307. "path": "/user/repository_invitations"
  17308. },
  17309. "getTeams": {
  17310. "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/apps/building-oauth-apps/).",
  17311. "documentationUrl": "https://developer.github.com/v3/teams/#list-user-teams",
  17312. "enabledForApps": false,
  17313. "method": "GET",
  17314. "name": "List user teams",
  17315. "params": [
  17316. {
  17317. "name": "per_page",
  17318. "type": "integer",
  17319. "required": false,
  17320. "description": "Results per page (max 100)",
  17321. "default": 30,
  17322. "location": "query"
  17323. },
  17324. {
  17325. "name": "page",
  17326. "type": "integer",
  17327. "required": false,
  17328. "description": "Page number of the results to fetch.",
  17329. "default": 1,
  17330. "location": "query"
  17331. }
  17332. ],
  17333. "path": "/user/teams"
  17334. },
  17335. "removeRepoFromInstallation": {
  17336. "description": "Remove a single repository from an installation.\n\nThe authenticated user must have admin access to the repository.",
  17337. "documentationUrl": "https://developer.github.com/v3/apps/installations/#remove-repository-from-installation",
  17338. "enabledForApps": false,
  17339. "method": "DELETE",
  17340. "name": "Remove repository from installation",
  17341. "params": [
  17342. {
  17343. "name": "installation_id",
  17344. "type": "string",
  17345. "required": true,
  17346. "description": "",
  17347. "location": "url"
  17348. },
  17349. {
  17350. "name": "repository_id",
  17351. "type": "string",
  17352. "required": true,
  17353. "description": "",
  17354. "location": "url"
  17355. }
  17356. ],
  17357. "path": "/user/installations/:installation_id/repositories/:repository_id"
  17358. },
  17359. "togglePrimaryEmailVisibility": {
  17360. "description": "Sets the visibility for your primary email addresses.",
  17361. "documentationUrl": "https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility",
  17362. "enabledForApps": false,
  17363. "method": "PATCH",
  17364. "name": "Toggle primary email visibility",
  17365. "params": [
  17366. {
  17367. "name": "email",
  17368. "type": "string",
  17369. "description": "Specify the _primary_ email address that needs a visibility change.",
  17370. "required": true,
  17371. "location": "body"
  17372. },
  17373. {
  17374. "name": "visibility",
  17375. "type": "string",
  17376. "description": "Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly.",
  17377. "required": true,
  17378. "location": "body"
  17379. }
  17380. ],
  17381. "path": "/user/email/visibility"
  17382. },
  17383. "unblockUser": {
  17384. "description": "",
  17385. "documentationUrl": "https://developer.github.com/v3/users/blocking/#unblock-a-user",
  17386. "enabledForApps": false,
  17387. "method": "DELETE",
  17388. "name": "Unblock a user",
  17389. "params": [
  17390. {
  17391. "name": "username",
  17392. "type": "string",
  17393. "required": true,
  17394. "description": "",
  17395. "location": "url"
  17396. }
  17397. ],
  17398. "path": "/user/blocks/:username"
  17399. },
  17400. "unfollowUser": {
  17401. "description": "Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
  17402. "documentationUrl": "https://developer.github.com/v3/users/followers/#unfollow-a-user",
  17403. "enabledForApps": false,
  17404. "method": "DELETE",
  17405. "name": "Unfollow a user",
  17406. "params": [
  17407. {
  17408. "name": "username",
  17409. "type": "string",
  17410. "required": true,
  17411. "description": "",
  17412. "location": "url"
  17413. }
  17414. ],
  17415. "path": "/user/following/:username"
  17416. },
  17417. "update": {
  17418. "description": "**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.",
  17419. "documentationUrl": "https://developer.github.com/v3/users/#update-the-authenticated-user",
  17420. "enabledForApps": false,
  17421. "method": "PATCH",
  17422. "name": "Update the authenticated user",
  17423. "params": [
  17424. {
  17425. "name": "name",
  17426. "type": "string",
  17427. "description": "The new name of the user.",
  17428. "required": false,
  17429. "location": "body"
  17430. },
  17431. {
  17432. "name": "email",
  17433. "type": "string",
  17434. "description": "The publicly visible email address of the user.",
  17435. "required": false,
  17436. "location": "body"
  17437. },
  17438. {
  17439. "name": "blog",
  17440. "type": "string",
  17441. "description": "The new blog URL of the user.",
  17442. "required": false,
  17443. "location": "body"
  17444. },
  17445. {
  17446. "name": "company",
  17447. "type": "string",
  17448. "description": "The new company of the user.",
  17449. "required": false,
  17450. "location": "body"
  17451. },
  17452. {
  17453. "name": "location",
  17454. "type": "string",
  17455. "description": "The new location of the user.",
  17456. "required": false,
  17457. "location": "body"
  17458. },
  17459. {
  17460. "name": "hireable",
  17461. "type": "boolean",
  17462. "description": "The new hiring availability of the user.",
  17463. "required": false,
  17464. "location": "body"
  17465. },
  17466. {
  17467. "name": "bio",
  17468. "type": "string",
  17469. "description": "The new short biography of the user.",
  17470. "required": false,
  17471. "location": "body"
  17472. }
  17473. ],
  17474. "path": "/user"
  17475. }
  17476. }
  17477. }