@spotify/backstage-plugin-soundcheck-backend-module-github 0.4.5 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @spotify/backstage-plugin-soundcheck-backend-module-github
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @spotify/backstage-plugin-soundcheck-common@0.11.1
9
+ - @spotify/backstage-plugin-soundcheck-node@0.4.7
10
+
11
+ ## 0.5.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Soundcheck no longer allows unrecognized keys in configurations. This should make it easier to identify misconfigurations but may cause validation errors with existing misconfigured instances.
16
+
17
+ ### Patch Changes
18
+
19
+ - Upgraded Backstage to v1.22.0
20
+ - Updated dependencies
21
+ - Updated dependencies
22
+ - Updated dependencies
23
+ - Updated dependencies
24
+ - @spotify/backstage-plugin-soundcheck-common@0.11.0
25
+ - @spotify/backstage-plugin-soundcheck-node@0.4.6
26
+
3
27
  ## 0.4.5
4
28
 
5
29
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("@spotify/backstage-plugin-soundcheck-common"),Ie=require("@backstage/catalog-model"),be=require("@octokit/request-error"),Oe=require("@octokit/rest"),fe=require("@backstage/integration"),v=require("zod"),Ge=require("@backstage/errors"),ze=require("git-url-parse"),Ae=require("zod-to-json-schema");function xe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var je=xe(ze),Be=xe(Ae),Le=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(Le(t,e,"read from private field"),r?r.call(t):e.get(t)),Ce=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},w;function ve(t){return`Extractor with type '${t}' is not allowed. You may need to update collectors configuration at 'soundcheck.collectors.github'`}class De{constructor(){Ce(this,w,[])}register(e){j(this,w).push(e)}async extract(e,r,s,a){for(const{predicate:o,extractor:l}of j(this,w))if(o(e))return l.extract(e,r,s,a);throw new Error(ve(e.type))}getDataSchema(e){for(const{predicate:r,extractor:s}of j(this,w))if(r(e))return s.getDataSchema(e);throw new Error(ve(e.type))}toString(){return`predicateMux{extractors=${j(this,w).map(e=>e.extractor).join(",")}`}}w=new WeakMap;class Ne{static create(e){const{logger:r,cache:s,branchHelper:a,factories:o}=e,l=new De;for(const u of o!=null?o:[]){const m=u({logger:r,cache:s,branchHelper:a});l.register(m)}return l}}var $e="Branch Protection",Ke="Branch Protection",Ze="object",Ue={url:{type:"string"},enabled:{type:"boolean"},required_status_checks:{title:"Protected Branch Required Status Check",description:"Protected Branch Required Status Check",type:"object",properties:{url:{type:"string"},enforcement_level:{type:"string"},contexts:{type:"array",items:{type:"string"}},checks:{type:"array",items:{type:"object",properties:{context:{type:"string"},app_id:{type:["integer","null"]}},required:["context","app_id"]}},contexts_url:{type:"string"},strict:{type:"boolean"}},required:["contexts","checks"]},enforce_admins:{title:"Protected Branch Admin Enforced",description:"Protected Branch Admin Enforced",type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins"]},enabled:{type:"boolean",examples:[!0]}},required:["url","enabled"]},required_pull_request_reviews:{title:"Protected Branch Pull Request Review",description:"Protected Branch Pull Request Review",type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions"]},dismissal_restrictions:{type:"object",properties:{users:{description:"The list of users with review dismissal access.",type:"array",items:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}},teams:{description:"The list of teams with review dismissal access.",type:"array",items:{title:"Team",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},slug:{type:"string"},description:{type:["string","null"]},privacy:{type:"string"},notification_setting:{type:"string"},permission:{type:"string"},permissions:{type:"object",properties:{pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"},admin:{type:"boolean"}},required:["pull","triage","push","maintain","admin"]},url:{type:"string",format:"uri"},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},members_url:{type:"string"},repositories_url:{type:"string",format:"uri"},parent:{anyOf:[{type:"null"},{title:"Team Simple",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{description:"Unique identifier of the team",type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VGVhbTE="]},url:{description:"URL for the team",type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1"]},members_url:{type:"string",examples:["https://api.github.com/organizations/1/team/1/members{/member}"]},name:{description:"Name of the team",type:"string",examples:["Justice League"]},description:{description:"Description of the team",type:["string","null"],examples:["A great team."]},permission:{description:"Permission that the team will have for its repositories",type:"string",examples:["admin"]},privacy:{description:"The level of privacy this team should have",type:"string",examples:["closed"]},notification_setting:{description:"The notification setting the team has set",type:"string",examples:["notifications_enabled"]},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},repositories_url:{type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1/repos"]},slug:{type:"string",examples:["justice-league"]},ldap_dn:{description:"Distinguished Name (DN) that team maps to within LDAP environment",type:"string",examples:["uid=example,ou=users,dc=github,dc=com"]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug"]}]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug","parent"]}},apps:{description:"The list of apps with review dismissal access.",type:"array",items:{title:"GitHub app",description:"GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",type:"object",properties:{id:{description:"Unique identifier of the GitHub app",type:"integer",examples:[37]},slug:{description:"The slug name of the GitHub app",type:"string",examples:["probot-owners"]},node_id:{type:"string",examples:["MDExOkludGVncmF0aW9uMQ=="]},owner:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},name:{description:"The name of the GitHub app",type:"string",examples:["Probot Owners"]},description:{type:["string","null"],examples:["The description of the app."]},external_url:{type:"string",format:"uri",examples:["https://example.com"]},html_url:{type:"string",format:"uri",examples:["https://github.com/apps/super-ci"]},created_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},updated_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},permissions:{description:"The set of permissions for the GitHub app",type:"object",properties:{issues:{type:"string"},checks:{type:"string"},metadata:{type:"string"},contents:{type:"string"},deployments:{type:"string"}},additionalProperties:{type:"string"},example:{issues:"read",deployments:"write"}},events:{description:"The list of events for the GitHub app",type:"array",items:{type:"string"},examples:["label","deployment"]},installations_count:{description:"The number of installations associated with the GitHub app",type:"integer",examples:[5]},client_id:{type:"string",examples:['"Iv1.25b5d1e65ffc4022"']},client_secret:{type:"string",examples:['"1d4b2097ac622ba702d19de498f005747a8b21d3"']},webhook_secret:{type:["string","null"],examples:['"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b"']},pem:{type:"string",examples:['"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\\n-----END RSA PRIVATE KEY-----\\n"']}},required:["id","node_id","owner","name","description","external_url","html_url","created_at","updated_at","permissions","events"]}},url:{type:"string",examples:['"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions"']},users_url:{type:"string",examples:['"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/users"']},teams_url:{type:"string",examples:['"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/teams"']}}},bypass_pull_request_allowances:{type:"object",description:"Allow specific users, teams, or apps to bypass pull request requirements.",properties:{users:{description:"The list of users allowed to bypass pull request requirements.",type:"array",items:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}},teams:{description:"The list of teams allowed to bypass pull request requirements.",type:"array",items:{title:"Team",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},slug:{type:"string"},description:{type:["string","null"]},privacy:{type:"string"},notification_setting:{type:"string"},permission:{type:"string"},permissions:{type:"object",properties:{pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"},admin:{type:"boolean"}},required:["pull","triage","push","maintain","admin"]},url:{type:"string",format:"uri"},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},members_url:{type:"string"},repositories_url:{type:"string",format:"uri"},parent:{anyOf:[{type:"null"},{title:"Team Simple",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{description:"Unique identifier of the team",type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VGVhbTE="]},url:{description:"URL for the team",type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1"]},members_url:{type:"string",examples:["https://api.github.com/organizations/1/team/1/members{/member}"]},name:{description:"Name of the team",type:"string",examples:["Justice League"]},description:{description:"Description of the team",type:["string","null"],examples:["A great team."]},permission:{description:"Permission that the team will have for its repositories",type:"string",examples:["admin"]},privacy:{description:"The level of privacy this team should have",type:"string",examples:["closed"]},notification_setting:{description:"The notification setting the team has set",type:"string",examples:["notifications_enabled"]},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},repositories_url:{type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1/repos"]},slug:{type:"string",examples:["justice-league"]},ldap_dn:{description:"Distinguished Name (DN) that team maps to within LDAP environment",type:"string",examples:["uid=example,ou=users,dc=github,dc=com"]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug"]}]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug","parent"]}},apps:{description:"The list of apps allowed to bypass pull request requirements.",type:"array",items:{title:"GitHub app",description:"GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",type:"object",properties:{id:{description:"Unique identifier of the GitHub app",type:"integer",examples:[37]},slug:{description:"The slug name of the GitHub app",type:"string",examples:["probot-owners"]},node_id:{type:"string",examples:["MDExOkludGVncmF0aW9uMQ=="]},owner:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},name:{description:"The name of the GitHub app",type:"string",examples:["Probot Owners"]},description:{type:["string","null"],examples:["The description of the app."]},external_url:{type:"string",format:"uri",examples:["https://example.com"]},html_url:{type:"string",format:"uri",examples:["https://github.com/apps/super-ci"]},created_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},updated_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},permissions:{description:"The set of permissions for the GitHub app",type:"object",properties:{issues:{type:"string"},checks:{type:"string"},metadata:{type:"string"},contents:{type:"string"},deployments:{type:"string"}},additionalProperties:{type:"string"},example:{issues:"read",deployments:"write"}},events:{description:"The list of events for the GitHub app",type:"array",items:{type:"string"},examples:["label","deployment"]},installations_count:{description:"The number of installations associated with the GitHub app",type:"integer",examples:[5]},client_id:{type:"string",examples:['"Iv1.25b5d1e65ffc4022"']},client_secret:{type:"string",examples:['"1d4b2097ac622ba702d19de498f005747a8b21d3"']},webhook_secret:{type:["string","null"],examples:['"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b"']},pem:{type:"string",examples:['"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\\n-----END RSA PRIVATE KEY-----\\n"']}},required:["id","node_id","owner","name","description","external_url","html_url","created_at","updated_at","permissions","events"]}}}},dismiss_stale_reviews:{type:"boolean",examples:[!0]},require_code_owner_reviews:{type:"boolean",examples:[!0]},required_approving_review_count:{type:"integer",minimum:0,maximum:6,examples:[2]},require_last_push_approval:{description:"Whether the most recent push must be approved by someone other than the person who pushed it.",type:"boolean",default:!1,examples:[!0]}},required:["dismiss_stale_reviews","require_code_owner_reviews"]},restrictions:{title:"Branch Restriction Policy",description:"Branch Restriction Policy",type:"object",properties:{url:{type:"string",format:"uri"},users_url:{type:"string",format:"uri"},teams_url:{type:"string",format:"uri"},apps_url:{type:"string",format:"uri"},users:{type:"array",items:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}}},teams:{type:"array",items:{type:"object",properties:{id:{type:"integer"},node_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},name:{type:"string"},slug:{type:"string"},description:{type:["string","null"]},privacy:{type:"string"},notification_setting:{type:"string"},permission:{type:"string"},members_url:{type:"string"},repositories_url:{type:"string"},parent:{type:["string","null"]}}}},apps:{type:"array",items:{type:"object",properties:{id:{type:"integer"},slug:{type:"string"},node_id:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},hooks_url:{type:"string"},issues_url:{type:"string"},members_url:{type:"string"},public_members_url:{type:"string"},avatar_url:{type:"string"},description:{type:"string"},gravatar_id:{type:"string",examples:['""']},html_url:{type:"string",examples:['"https://github.com/testorg-ea8ec76d71c3af4b"']},followers_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/followers"']},following_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/following{/other_user}"']},gists_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/gists{/gist_id}"']},starred_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/starred{/owner}{/repo}"']},subscriptions_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/subscriptions"']},organizations_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/orgs"']},received_events_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/received_events"']},type:{type:"string",examples:['"Organization"']},site_admin:{type:"boolean",examples:[!1]}}},name:{type:"string"},description:{type:"string"},external_url:{type:"string"},html_url:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{metadata:{type:"string"},contents:{type:"string"},issues:{type:"string"},single_file:{type:"string"}}},events:{type:"array",items:{type:"string"}}}}}},required:["url","users_url","teams_url","apps_url","users","teams","apps"]},required_linear_history:{type:"object",properties:{enabled:{type:"boolean"}}},allow_force_pushes:{type:"object",properties:{enabled:{type:"boolean"}}},allow_deletions:{type:"object",properties:{enabled:{type:"boolean"}}},block_creations:{type:"object",properties:{enabled:{type:"boolean"}}},required_conversation_resolution:{type:"object",properties:{enabled:{type:"boolean"}}},name:{type:"string",examples:['"branch/with/protection"']},protection_url:{type:"string",examples:['"https://api.github.com/repos/owner-79e94e2d36b3fd06a32bb213/AAA_Public_Repo/branches/branch/with/protection/protection"']},required_signatures:{type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures"]},enabled:{type:"boolean",examples:[!0]}},required:["url","enabled"]},lock_branch:{type:"object",description:"Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.",properties:{enabled:{default:!1,type:"boolean"}}},allow_fork_syncing:{type:"object",description:"Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.",properties:{enabled:{default:!1,type:"boolean"}}}},Ye={title:$e,description:Ke,type:Ze,properties:Ue};function B(t){return t instanceof be.RequestError?t.response?`${t.name} ${t.response.status}: ${JSON.stringify(t.response.data)}`:`${t.name} ${t.status}: ${t.message}`:JSON.stringify(t)}function Je(t){var e,r;return t instanceof be.RequestError&&t.status===403&&(((e=t.response)==null?void 0:e.headers["retry-after"])!==void 0||((r=t.response)==null?void 0:r.headers["x-ratelimit-remaining"])==="0")}function te(t){return"status"in t&&t.status===304}function re(t){return"status"in t&&t.status===404}function L(t,e,r,s){return Je(r)?(e&&t.error(s),!1):(t.error(s),!0)}const se=async(t,e)=>{let r;const s=await t.get(e);return s&&(r={"If-None-Match":s.etag,"If-Modified-Since":s.lastModified}),r};var Qe=Object.defineProperty,Ve=(t,e,r)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fe=(t,e,r)=>(Ve(t,typeof e!="symbol"?e+"":e,r),r),ie=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},T=(t,e,r)=>(ie(t,e,"read from private field"),r?r.call(t):e.get(t)),M=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},d=(t,e,r,s)=>(ie(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Xe=(t,e,r)=>(ie(t,e,"access private method"),r),C,W,D,y,oe,we;const ae=class{constructor(e,r,s){M(this,oe),M(this,C,void 0),M(this,W,void 0),M(this,D,void 0),M(this,y,void 0),d(this,C,e),d(this,W,r),d(this,D,s),d(this,y,!0)}async extract(e,r,s,a){var o,l;const u=`github:branch_protections:${r.owner}:${r.name}`,m=a?void 0:await se(T(this,W),u),c={owner:r.owner,repo:r.name,branch:await Xe(this,oe,we).call(this,e,r,s),headers:m};try{const i=await s.rest.repos.getBranchProtection(c);return d(this,y,!0),await T(this,W).set(u,{etag:(o=i.headers)==null?void 0:o.etag,lastModified:(l=i.headers)==null?void 0:l.date,data:i.data}),i.data}catch(i){if(te(i)){const x=await T(this,W).get(u);return!x||!("data"in x)?void 0:x.data}if(re(i))return d(this,y,!0),{};const h=`[BranchProtections] fact extraction failed with: ${B(i)}. Request parameters: ${JSON.stringify(c)}`;d(this,y,L(T(this,C),T(this,y),i,h));return}}getDataSchema(e){return JSON.stringify(Ye)}};C=new WeakMap,W=new WeakMap,D=new WeakMap,y=new WeakMap,oe=new WeakSet,we=async function(t,e,r){return t.branch?t.branch:T(this,D).getDefaultBranch(e,r)},Fe(ae,"factory",({logger:t,cache:e,branchHelper:r})=>{const s=new ae(t,e,r);return{predicate:a=>a.type==="BranchProtections",extractor:s}});let et=ae;var tt="Full Repository",rt="Full Repository",st="object",it={id:{type:"integer",examples:[1296269]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{type:"string",examples:["Hello-World"]},full_name:{type:"string",examples:["octocat/Hello-World"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"},examples:["octocat","atom","electron","API"]},has_issues:{type:"boolean",examples:[!0]},has_projects:{type:"boolean",examples:[!0]},has_wiki:{type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{type:"boolean",examples:[!0]},has_discussions:{type:"boolean",examples:[!0]},archived:{type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",type:"string",examples:["public"]},pushed_at:{type:"string",format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:"string",format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:"string",format:"date-time",examples:["2011-01-26T19:14:43Z"]},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}},required:["admin","pull","push"]},allow_rebase_merge:{type:"boolean",examples:[!0]},template_repository:{anyOf:[{type:"null"},{title:"Repository",description:"A repository on GitHub.",type:"object",properties:{id:{description:"Unique identifier of the repository",type:"integer",examples:[42]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{description:"The name of the repository.",type:"string",examples:["Team Environment"]},full_name:{type:"string",examples:["octocat/Hello-World"]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},forks:{type:"integer"},permissions:{type:"object",properties:{admin:{type:"boolean"},pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"}},required:["admin","pull","push"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{description:"Whether the repository is private or public.",default:!1,type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{description:"The default branch of the repository.",type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{description:"Whether this repository acts as a template that can be used to generate new repositories.",default:!1,type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"}},has_issues:{description:"Whether issues are enabled.",default:!0,type:"boolean",examples:[!0]},has_projects:{description:"Whether projects are enabled.",default:!0,type:"boolean",examples:[!0]},has_wiki:{description:"Whether the wiki is enabled.",default:!0,type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{description:"Whether downloads are enabled.",default:!0,type:"boolean",examples:[!0]},has_discussions:{description:"Whether discussions are enabled.",default:!1,type:"boolean",examples:[!0]},archived:{description:"Whether the repository is archived.",default:!1,type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",default:"public",type:"string"},pushed_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:14:43Z"]},allow_rebase_merge:{description:"Whether to allow rebase merges for pull requests.",default:!0,type:"boolean",examples:[!0]},template_repository:{type:["object","null"],properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},full_name:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}},private:{type:"boolean"},html_url:{type:"string"},description:{type:"string"},fork:{type:"boolean"},url:{type:"string"},archive_url:{type:"string"},assignees_url:{type:"string"},blobs_url:{type:"string"},branches_url:{type:"string"},collaborators_url:{type:"string"},comments_url:{type:"string"},commits_url:{type:"string"},compare_url:{type:"string"},contents_url:{type:"string"},contributors_url:{type:"string"},deployments_url:{type:"string"},downloads_url:{type:"string"},events_url:{type:"string"},forks_url:{type:"string"},git_commits_url:{type:"string"},git_refs_url:{type:"string"},git_tags_url:{type:"string"},git_url:{type:"string"},issue_comment_url:{type:"string"},issue_events_url:{type:"string"},issues_url:{type:"string"},keys_url:{type:"string"},labels_url:{type:"string"},languages_url:{type:"string"},merges_url:{type:"string"},milestones_url:{type:"string"},notifications_url:{type:"string"},pulls_url:{type:"string"},releases_url:{type:"string"},ssh_url:{type:"string"},stargazers_url:{type:"string"},statuses_url:{type:"string"},subscribers_url:{type:"string"},subscription_url:{type:"string"},tags_url:{type:"string"},teams_url:{type:"string"},trees_url:{type:"string"},clone_url:{type:"string"},mirror_url:{type:"string"},hooks_url:{type:"string"},svn_url:{type:"string"},homepage:{type:"string"},language:{type:"string"},forks_count:{type:"integer"},stargazers_count:{type:"integer"},watchers_count:{type:"integer"},size:{type:"integer"},default_branch:{type:"string"},open_issues_count:{type:"integer"},is_template:{type:"boolean"},topics:{type:"array",items:{type:"string"}},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},has_pages:{type:"boolean"},has_downloads:{type:"boolean"},archived:{type:"boolean"},disabled:{type:"boolean"},visibility:{type:"string"},pushed_at:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}}},allow_rebase_merge:{type:"boolean"},temp_clone_token:{type:"string"},allow_squash_merge:{type:"boolean"},allow_auto_merge:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},allow_update_branch:{type:"boolean"},use_squash_pr_title_as_default:{type:"boolean"},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"}}},temp_clone_token:{type:"string"},allow_squash_merge:{description:"Whether to allow squash merges for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_auto_merge:{description:"Whether to allow Auto-merge to be used on pull requests.",default:!1,type:"boolean",examples:[!1]},delete_branch_on_merge:{description:"Whether to delete head branches when pull requests are merged",default:!1,type:"boolean",examples:[!1]},allow_update_branch:{description:"Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",default:!1,type:"boolean",examples:[!1]},use_squash_pr_title_as_default:{type:"boolean",description:"Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",default:!1,deprecated:!0},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{description:"Whether to allow merge commits for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_forking:{description:"Whether to allow forking this repo",type:"boolean"},web_commit_signoff_required:{description:"Whether to require contributors to sign off on web-based commits",default:!1,type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"},open_issues:{type:"integer"},watchers:{type:"integer"},master_branch:{type:"string"},starred_at:{type:"string",examples:['"2020-07-09T00:17:42Z"']},anonymous_access_enabled:{type:"boolean",description:"Whether anonymous git access is enabled for this repository"}},required:["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at"]}]},temp_clone_token:{type:["string","null"]},allow_squash_merge:{type:"boolean",examples:[!0]},allow_auto_merge:{type:"boolean",examples:[!1]},delete_branch_on_merge:{type:"boolean",examples:[!1]},allow_merge_commit:{type:"boolean",examples:[!0]},allow_update_branch:{type:"boolean",examples:[!0]},use_squash_pr_title_as_default:{type:"boolean",examples:[!1]},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",examples:["PR_TITLE"]},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",examples:["PR_BODY"]},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",examples:["PR_TITLE"]},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",examples:["PR_BODY"]},allow_forking:{type:"boolean",examples:[!0]},web_commit_signoff_required:{type:"boolean",examples:[!1]},subscribers_count:{type:"integer",examples:[42]},network_count:{type:"integer",examples:[0]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},parent:{title:"Repository",description:"A repository on GitHub.",type:"object",properties:{id:{description:"Unique identifier of the repository",type:"integer",examples:[42]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{description:"The name of the repository.",type:"string",examples:["Team Environment"]},full_name:{type:"string",examples:["octocat/Hello-World"]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},forks:{type:"integer"},permissions:{type:"object",properties:{admin:{type:"boolean"},pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"}},required:["admin","pull","push"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{description:"Whether the repository is private or public.",default:!1,type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{description:"The default branch of the repository.",type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{description:"Whether this repository acts as a template that can be used to generate new repositories.",default:!1,type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"}},has_issues:{description:"Whether issues are enabled.",default:!0,type:"boolean",examples:[!0]},has_projects:{description:"Whether projects are enabled.",default:!0,type:"boolean",examples:[!0]},has_wiki:{description:"Whether the wiki is enabled.",default:!0,type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{description:"Whether downloads are enabled.",default:!0,type:"boolean",examples:[!0]},has_discussions:{description:"Whether discussions are enabled.",default:!1,type:"boolean",examples:[!0]},archived:{description:"Whether the repository is archived.",default:!1,type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",default:"public",type:"string"},pushed_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:14:43Z"]},allow_rebase_merge:{description:"Whether to allow rebase merges for pull requests.",default:!0,type:"boolean",examples:[!0]},template_repository:{type:["object","null"],properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},full_name:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}},private:{type:"boolean"},html_url:{type:"string"},description:{type:"string"},fork:{type:"boolean"},url:{type:"string"},archive_url:{type:"string"},assignees_url:{type:"string"},blobs_url:{type:"string"},branches_url:{type:"string"},collaborators_url:{type:"string"},comments_url:{type:"string"},commits_url:{type:"string"},compare_url:{type:"string"},contents_url:{type:"string"},contributors_url:{type:"string"},deployments_url:{type:"string"},downloads_url:{type:"string"},events_url:{type:"string"},forks_url:{type:"string"},git_commits_url:{type:"string"},git_refs_url:{type:"string"},git_tags_url:{type:"string"},git_url:{type:"string"},issue_comment_url:{type:"string"},issue_events_url:{type:"string"},issues_url:{type:"string"},keys_url:{type:"string"},labels_url:{type:"string"},languages_url:{type:"string"},merges_url:{type:"string"},milestones_url:{type:"string"},notifications_url:{type:"string"},pulls_url:{type:"string"},releases_url:{type:"string"},ssh_url:{type:"string"},stargazers_url:{type:"string"},statuses_url:{type:"string"},subscribers_url:{type:"string"},subscription_url:{type:"string"},tags_url:{type:"string"},teams_url:{type:"string"},trees_url:{type:"string"},clone_url:{type:"string"},mirror_url:{type:"string"},hooks_url:{type:"string"},svn_url:{type:"string"},homepage:{type:"string"},language:{type:"string"},forks_count:{type:"integer"},stargazers_count:{type:"integer"},watchers_count:{type:"integer"},size:{type:"integer"},default_branch:{type:"string"},open_issues_count:{type:"integer"},is_template:{type:"boolean"},topics:{type:"array",items:{type:"string"}},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},has_pages:{type:"boolean"},has_downloads:{type:"boolean"},archived:{type:"boolean"},disabled:{type:"boolean"},visibility:{type:"string"},pushed_at:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}}},allow_rebase_merge:{type:"boolean"},temp_clone_token:{type:"string"},allow_squash_merge:{type:"boolean"},allow_auto_merge:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},allow_update_branch:{type:"boolean"},use_squash_pr_title_as_default:{type:"boolean"},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"}}},temp_clone_token:{type:"string"},allow_squash_merge:{description:"Whether to allow squash merges for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_auto_merge:{description:"Whether to allow Auto-merge to be used on pull requests.",default:!1,type:"boolean",examples:[!1]},delete_branch_on_merge:{description:"Whether to delete head branches when pull requests are merged",default:!1,type:"boolean",examples:[!1]},allow_update_branch:{description:"Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",default:!1,type:"boolean",examples:[!1]},use_squash_pr_title_as_default:{type:"boolean",description:"Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",default:!1,deprecated:!0},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{description:"Whether to allow merge commits for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_forking:{description:"Whether to allow forking this repo",type:"boolean"},web_commit_signoff_required:{description:"Whether to require contributors to sign off on web-based commits",default:!1,type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"},open_issues:{type:"integer"},watchers:{type:"integer"},master_branch:{type:"string"},starred_at:{type:"string",examples:['"2020-07-09T00:17:42Z"']},anonymous_access_enabled:{type:"boolean",description:"Whether anonymous git access is enabled for this repository"}},required:["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at"]},source:{title:"Repository",description:"A repository on GitHub.",type:"object",properties:{id:{description:"Unique identifier of the repository",type:"integer",examples:[42]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{description:"The name of the repository.",type:"string",examples:["Team Environment"]},full_name:{type:"string",examples:["octocat/Hello-World"]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},forks:{type:"integer"},permissions:{type:"object",properties:{admin:{type:"boolean"},pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"}},required:["admin","pull","push"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{description:"Whether the repository is private or public.",default:!1,type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{description:"The default branch of the repository.",type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{description:"Whether this repository acts as a template that can be used to generate new repositories.",default:!1,type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"}},has_issues:{description:"Whether issues are enabled.",default:!0,type:"boolean",examples:[!0]},has_projects:{description:"Whether projects are enabled.",default:!0,type:"boolean",examples:[!0]},has_wiki:{description:"Whether the wiki is enabled.",default:!0,type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{description:"Whether downloads are enabled.",default:!0,type:"boolean",examples:[!0]},has_discussions:{description:"Whether discussions are enabled.",default:!1,type:"boolean",examples:[!0]},archived:{description:"Whether the repository is archived.",default:!1,type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",default:"public",type:"string"},pushed_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:14:43Z"]},allow_rebase_merge:{description:"Whether to allow rebase merges for pull requests.",default:!0,type:"boolean",examples:[!0]},template_repository:{type:["object","null"],properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},full_name:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}},private:{type:"boolean"},html_url:{type:"string"},description:{type:"string"},fork:{type:"boolean"},url:{type:"string"},archive_url:{type:"string"},assignees_url:{type:"string"},blobs_url:{type:"string"},branches_url:{type:"string"},collaborators_url:{type:"string"},comments_url:{type:"string"},commits_url:{type:"string"},compare_url:{type:"string"},contents_url:{type:"string"},contributors_url:{type:"string"},deployments_url:{type:"string"},downloads_url:{type:"string"},events_url:{type:"string"},forks_url:{type:"string"},git_commits_url:{type:"string"},git_refs_url:{type:"string"},git_tags_url:{type:"string"},git_url:{type:"string"},issue_comment_url:{type:"string"},issue_events_url:{type:"string"},issues_url:{type:"string"},keys_url:{type:"string"},labels_url:{type:"string"},languages_url:{type:"string"},merges_url:{type:"string"},milestones_url:{type:"string"},notifications_url:{type:"string"},pulls_url:{type:"string"},releases_url:{type:"string"},ssh_url:{type:"string"},stargazers_url:{type:"string"},statuses_url:{type:"string"},subscribers_url:{type:"string"},subscription_url:{type:"string"},tags_url:{type:"string"},teams_url:{type:"string"},trees_url:{type:"string"},clone_url:{type:"string"},mirror_url:{type:"string"},hooks_url:{type:"string"},svn_url:{type:"string"},homepage:{type:"string"},language:{type:"string"},forks_count:{type:"integer"},stargazers_count:{type:"integer"},watchers_count:{type:"integer"},size:{type:"integer"},default_branch:{type:"string"},open_issues_count:{type:"integer"},is_template:{type:"boolean"},topics:{type:"array",items:{type:"string"}},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},has_pages:{type:"boolean"},has_downloads:{type:"boolean"},archived:{type:"boolean"},disabled:{type:"boolean"},visibility:{type:"string"},pushed_at:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}}},allow_rebase_merge:{type:"boolean"},temp_clone_token:{type:"string"},allow_squash_merge:{type:"boolean"},allow_auto_merge:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},allow_update_branch:{type:"boolean"},use_squash_pr_title_as_default:{type:"boolean"},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"}}},temp_clone_token:{type:"string"},allow_squash_merge:{description:"Whether to allow squash merges for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_auto_merge:{description:"Whether to allow Auto-merge to be used on pull requests.",default:!1,type:"boolean",examples:[!1]},delete_branch_on_merge:{description:"Whether to delete head branches when pull requests are merged",default:!1,type:"boolean",examples:[!1]},allow_update_branch:{description:"Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",default:!1,type:"boolean",examples:[!1]},use_squash_pr_title_as_default:{type:"boolean",description:"Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",default:!1,deprecated:!0},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{description:"Whether to allow merge commits for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_forking:{description:"Whether to allow forking this repo",type:"boolean"},web_commit_signoff_required:{description:"Whether to require contributors to sign off on web-based commits",default:!1,type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"},open_issues:{type:"integer"},watchers:{type:"integer"},master_branch:{type:"string"},starred_at:{type:"string",examples:['"2020-07-09T00:17:42Z"']},anonymous_access_enabled:{type:"boolean",description:"Whether anonymous git access is enabled for this repository"}},required:["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at"]},forks:{type:"integer"},master_branch:{type:"string"},open_issues:{type:"integer"},watchers:{type:"integer"},anonymous_access_enabled:{description:"Whether anonymous git access is allowed.",default:!0,type:"boolean"},code_of_conduct:{title:"Code Of Conduct Simple",description:"Code of Conduct Simple",type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/github/docs/community/code_of_conduct"]},key:{type:"string",examples:["citizen_code_of_conduct"]},name:{type:"string",examples:["Citizen Code of Conduct"]},html_url:{type:["string","null"],format:"uri",examples:["https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"]}},required:["url","key","name","html_url"]},security_and_analysis:{type:["object","null"],properties:{advanced_security:{type:"object",properties:{status:{type:"string",enum:["enabled","disabled"]}}},secret_scanning:{type:"object",properties:{status:{type:"string",enum:["enabled","disabled"]}}},secret_scanning_push_protection:{type:"object",properties:{status:{type:"string",enum:["enabled","disabled"]}}}}}},ot=["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","has_discussions","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at","network_count","subscribers_count"],at={title:tt,description:rt,type:st,properties:it,required:ot},lt=Object.defineProperty,pt=(t,e,r)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nt=(t,e,r)=>(pt(t,typeof e!="symbol"?e+"":e,r),r),Te=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},N=(t,e,r)=>(Te(t,e,"read from private field"),r?r.call(t):e.get(t)),le=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},E=(t,e,r,s)=>(Te(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),$,R,b;const pe=class{constructor(e,r){le(this,$,void 0),le(this,R,void 0),le(this,b,void 0),E(this,$,e),E(this,b,!0),E(this,R,r)}async extract(e,r,s,a){var o,l;const u=`github:repository_details:${r.owner}:${r.name}`,m=a?void 0:await se(N(this,R),u),c={owner:r.owner,repo:r.name,headers:m};try{const i=await s.rest.repos.get(c);return await N(this,R).set(u,{etag:(o=i.headers)==null?void 0:o.etag,lastModified:(l=i.headers)==null?void 0:l.date}),E(this,b,!0),i.data}catch(i){if(te(i))return;if(re(i))return E(this,b,!0),{};const h=`[RepositoryDetails] fact extraction failed with: ${B(i)}. Request parameters: ${JSON.stringify(c)}`;E(this,b,L(N(this,$),N(this,b),i,h));return}}getDataSchema(e){return JSON.stringify(at)}};$=new WeakMap,R=new WeakMap,b=new WeakMap,nt(pe,"factory",({logger:t,cache:e})=>{const r=new pe(t,e);return{predicate:s=>s.type==="RepositoryDetails",extractor:r}});let ut=pe;const ct=n.BaseFactExtractorSchema.merge(v.z.object({type:v.z.literal("BranchProtections")})).strict(),mt=n.BaseFactExtractorSchema.merge(v.z.object({type:v.z.literal("RepositoryDetails")})).strict(),gt=n.BaseFactExtractorSchema.merge(v.z.object({type:v.z.literal("RepositoryLanguages")})).strict(),ht=ct.or(mt).or(gt),We=n.buildFactCollectorSchema(ht);var ne=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},K=(t,e,r)=>(ne(t,e,"read from private field"),r?r.call(t):e.get(t)),Z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ue=(t,e,r,s)=>(ne(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),_t=(t,e,r)=>(ne(t,e,"access private method"),r),U,S,Y,ce,Ee;const dt=class Re{constructor(e){Z(this,ce),Z(this,U,void 0),Z(this,S,{}),Z(this,Y,void 0),ue(this,Y,e)}static create(e){return new Re(e)}getConfig(){return K(this,U)}setConfig(e){ue(this,U,e),ue(this,S,_t(this,ce,Ee).call(this,e))}getExtractorConfig(e){return K(this,S)[e]}getExtractorConfigs(){return Object.values(K(this,S))}};U=new WeakMap,S=new WeakMap,Y=new WeakMap,ce=new WeakSet,Ee=function(t){const e=We.safeParse(t);if(!e.success)throw K(this,Y).error("Invalid GithubFactCollector config."),new Ge.InputError(e.error.message);return n.buildExtractorConfigMap(e.data)};let yt=dt;var He=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},J=(t,e,r)=>(He(t,e,"read from private field"),r?r.call(t):e.get(t)),me=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P=(t,e,r,s)=>(He(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Q,I,H;const bt=class Se{constructor(e,r){me(this,Q,void 0),me(this,I,void 0),me(this,H,void 0),P(this,Q,e),P(this,I,r),P(this,H,!0)}static create(e,r){return new Se(e,r)}async getDefaultBranch(e,r){let s=await J(this,I).get(e.full_name);if(s!==void 0)return s;const a={owner:e.owner,repo:e.name};try{s=(await r.rest.repos.get(a)).data.default_branch,P(this,H,!0),await J(this,I).set(e.full_name,s)}catch(o){e.ref?s=e.ref:s="main";const l=`Failed to get default branch name with: ${B(o)}. Request parameters: ${JSON.stringify(a)}. Falling back to using [${s}] as default branch`;P(this,H,L(J(this,Q),J(this,H),o,l))}return s}};Q=new WeakMap,I=new WeakMap,H=new WeakMap;let ft=bt;var xt="Language",vt="Language",wt="object",Tt={type:"integer"},Wt={title:xt,description:vt,type:wt,additionalProperties:Tt},Et=Object.defineProperty,Ht=(t,e,r)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qt=(t,e,r)=>(Ht(t,typeof e!="symbol"?e+"":e,r),r),qe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},V=(t,e,r)=>(qe(t,e,"read from private field"),r?r.call(t):e.get(t)),ge=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},q=(t,e,r,s)=>(qe(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),F,O,f;const he=class{constructor(e,r){ge(this,F,void 0),ge(this,O,void 0),ge(this,f,void 0),q(this,F,e),q(this,f,!0),q(this,O,r)}async extract(e,r,s,a){var o,l;const u=`github:repository_languages:${r.owner}:${r.name}`,m=a?void 0:await se(V(this,O),u),c={owner:r.owner,repo:r.name,headers:m};try{const i=await s.rest.repos.listLanguages(c);return await V(this,O).set(u,{etag:(o=i.headers)==null?void 0:o.etag,lastModified:(l=i.headers)==null?void 0:l.date}),q(this,f,!0),i.data}catch(i){if(te(i))return;if(re(i))return q(this,f,!0),{};const h=`[RepositoryLanguages] fact extraction failed with: ${B(i)}. Request parameters: ${JSON.stringify(c)}`;q(this,f,L(V(this,F),V(this,f),i,h));return}}getDataSchema(e){return JSON.stringify(Wt)}};F=new WeakMap,O=new WeakMap,f=new WeakMap,qt(he,"factory",({logger:t,cache:e})=>{const r=new he(t,e);return{predicate:s=>s.type==="RepositoryLanguages",extractor:r}});let kt=he;var Mt=Object.defineProperty,Rt=(t,e,r)=>e in t?Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,X=(t,e,r)=>(Rt(t,typeof e!="symbol"?e+"":e,r),r),_e=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},p=(t,e,r)=>(_e(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},G=(t,e,r,s)=>(_e(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),St=(t,e,r)=>(_e(t,e,"access private method"),r),_,z,ee,A,g,de,ke;const Me=class ye{constructor(e,r,s){k(this,de),k(this,_,void 0),k(this,z,void 0),k(this,ee,void 0),k(this,A,void 0),k(this,g,void 0),X(this,"id",ye.ID),X(this,"name","Github"),X(this,"description","Collects facts about your Github repositories."),G(this,_,r.child({target:this.id})),G(this,z,fe.ScmIntegrations.fromConfig(e)),G(this,ee,fe.DefaultGithubCredentialsProvider.fromIntegrations(p(this,z))),G(this,A,Ne.create({logger:p(this,_),cache:s.getClient(),branchHelper:ft.create(p(this,_),s.getClient({defaultTtl:60*60*1e3})),factories:[et.factory,ut.factory,kt.factory]})),G(this,g,yt.create(p(this,_)))}static create(e,r,s){return new ye(e,r,s)}async collect(e,r){const s=St(this,de,ke).call(this,r);return Promise.all(e.filter(a=>n.isScmEntity(a)).map(async a=>{const o=Ie.stringifyEntityRef(a),l=n.getEntityScmUrl(a),u=je.default(l),m=await this.getOctokit(l);return m?Promise.all(s.map(async c=>{var i;const h=n.getFactRef(this.id,c),x=await p(this,A).extract(c,u,m,!!((i=r==null?void 0:r.refresh)!=null&&i.includes(h))).catch(Pe=>{p(this,_).error(`Failed to collect ${h} fact data for ${o} entity: ${Pe}`)});if(x!==void 0)return n.buildFact(o,h,x)})):Promise.resolve()})).then(a=>a.flat().filter(o=>!!o))}async getOctokit(e){try{const{token:r}=await p(this,ee).getCredentials({url:e}),s=p(this,z).github.byUrl(e);return new Oe.Octokit({auth:r,baseUrl:s==null?void 0:s.config.apiBaseUrl})}catch{p(this,_).error(`Cannot collect github information from url ${e}`);return}}async getCollectionConfigs(){return n.buildCollectionConfigs(this.id,p(this,g).getExtractorConfigs())}async getFactNames(){return p(this,g).getExtractorConfigs().map(e=>e.factName)}async getDataSchema(e){const r=n.parseFactRef(e,{defaultSource:this.id,defaultScope:n.DEFAULT_SCOPE}),s=p(this,g).getExtractorConfigs().find(a=>{const o=n.parseFactRef(n.getFactRef(this.id,a));return r.source===o.source&&r.name===o.name});if(s)return p(this,A).getDataSchema(s)}async getConfig(){return p(this,g).getConfig()}async setConfig(e){p(this,g).setConfig(e)}async getConfigSchema(){return JSON.stringify(Be.default(We))}};_=new WeakMap,z=new WeakMap,ee=new WeakMap,A=new WeakMap,g=new WeakMap,de=new WeakSet,ke=function(t){return t!=null&&t.factRefs?p(this,g).getExtractorConfigs().filter(e=>{var r,s;return(s=(r=t==null?void 0:t.factRefs)==null?void 0:r.map(n.stringifyFactRef))==null?void 0:s.includes(n.getFactRef(this.id,e))}):p(this,g).getExtractorConfigs()},X(Me,"ID","github");let Pt=Me;exports.GithubFactCollector=Pt;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("@spotify/backstage-plugin-soundcheck-common"),Ie=require("@backstage/catalog-model"),be=require("@octokit/request-error"),Oe=require("@octokit/rest"),fe=require("@backstage/integration"),v=require("zod"),Ge=require("@backstage/errors"),ze=require("git-url-parse"),Ae=require("zod-to-json-schema");function xe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var je=xe(ze),Be=xe(Ae),Le=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(Le(t,e,"read from private field"),r?r.call(t):e.get(t)),Ce=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},w;function ve(t){return`Extractor with type '${t}' is not allowed. You may need to update collectors configuration at 'soundcheck.collectors.github'`}class De{constructor(){Ce(this,w,[])}register(e){j(this,w).push(e)}async extract(e,r,s,a){for(const{predicate:o,extractor:l}of j(this,w))if(o(e))return l.extract(e,r,s,a);throw new Error(ve(e.type))}getDataSchema(e){for(const{predicate:r,extractor:s}of j(this,w))if(r(e))return s.getDataSchema(e);throw new Error(ve(e.type))}toString(){return`predicateMux{extractors=${j(this,w).map(e=>e.extractor).join(",")}`}}w=new WeakMap;class Ne{static create(e){const{logger:r,cache:s,branchHelper:a,factories:o}=e,l=new De;for(const u of o!=null?o:[]){const m=u({logger:r,cache:s,branchHelper:a});l.register(m)}return l}}var $e="Branch Protection",Ke="Branch Protection",Ze="object",Ue={url:{type:"string"},enabled:{type:"boolean"},required_status_checks:{title:"Protected Branch Required Status Check",description:"Protected Branch Required Status Check",type:"object",properties:{url:{type:"string"},enforcement_level:{type:"string"},contexts:{type:"array",items:{type:"string"}},checks:{type:"array",items:{type:"object",properties:{context:{type:"string"},app_id:{type:["integer","null"]}},required:["context","app_id"]}},contexts_url:{type:"string"},strict:{type:"boolean"}},required:["contexts","checks"]},enforce_admins:{title:"Protected Branch Admin Enforced",description:"Protected Branch Admin Enforced",type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins"]},enabled:{type:"boolean",examples:[!0]}},required:["url","enabled"]},required_pull_request_reviews:{title:"Protected Branch Pull Request Review",description:"Protected Branch Pull Request Review",type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions"]},dismissal_restrictions:{type:"object",properties:{users:{description:"The list of users with review dismissal access.",type:"array",items:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}},teams:{description:"The list of teams with review dismissal access.",type:"array",items:{title:"Team",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},slug:{type:"string"},description:{type:["string","null"]},privacy:{type:"string"},notification_setting:{type:"string"},permission:{type:"string"},permissions:{type:"object",properties:{pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"},admin:{type:"boolean"}},required:["pull","triage","push","maintain","admin"]},url:{type:"string",format:"uri"},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},members_url:{type:"string"},repositories_url:{type:"string",format:"uri"},parent:{anyOf:[{type:"null"},{title:"Team Simple",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{description:"Unique identifier of the team",type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VGVhbTE="]},url:{description:"URL for the team",type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1"]},members_url:{type:"string",examples:["https://api.github.com/organizations/1/team/1/members{/member}"]},name:{description:"Name of the team",type:"string",examples:["Justice League"]},description:{description:"Description of the team",type:["string","null"],examples:["A great team."]},permission:{description:"Permission that the team will have for its repositories",type:"string",examples:["admin"]},privacy:{description:"The level of privacy this team should have",type:"string",examples:["closed"]},notification_setting:{description:"The notification setting the team has set",type:"string",examples:["notifications_enabled"]},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},repositories_url:{type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1/repos"]},slug:{type:"string",examples:["justice-league"]},ldap_dn:{description:"Distinguished Name (DN) that team maps to within LDAP environment",type:"string",examples:["uid=example,ou=users,dc=github,dc=com"]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug"]}]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug","parent"]}},apps:{description:"The list of apps with review dismissal access.",type:"array",items:{title:"GitHub app",description:"GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",type:"object",properties:{id:{description:"Unique identifier of the GitHub app",type:"integer",examples:[37]},slug:{description:"The slug name of the GitHub app",type:"string",examples:["probot-owners"]},node_id:{type:"string",examples:["MDExOkludGVncmF0aW9uMQ=="]},owner:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},name:{description:"The name of the GitHub app",type:"string",examples:["Probot Owners"]},description:{type:["string","null"],examples:["The description of the app."]},external_url:{type:"string",format:"uri",examples:["https://example.com"]},html_url:{type:"string",format:"uri",examples:["https://github.com/apps/super-ci"]},created_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},updated_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},permissions:{description:"The set of permissions for the GitHub app",type:"object",properties:{issues:{type:"string"},checks:{type:"string"},metadata:{type:"string"},contents:{type:"string"},deployments:{type:"string"}},additionalProperties:{type:"string"},example:{issues:"read",deployments:"write"}},events:{description:"The list of events for the GitHub app",type:"array",items:{type:"string"},examples:["label","deployment"]},installations_count:{description:"The number of installations associated with the GitHub app",type:"integer",examples:[5]},client_id:{type:"string",examples:['"Iv1.25b5d1e65ffc4022"']},client_secret:{type:"string",examples:['"1d4b2097ac622ba702d19de498f005747a8b21d3"']},webhook_secret:{type:["string","null"],examples:['"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b"']},pem:{type:"string",examples:['"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\\n-----END RSA PRIVATE KEY-----\\n"']}},required:["id","node_id","owner","name","description","external_url","html_url","created_at","updated_at","permissions","events"]}},url:{type:"string",examples:['"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions"']},users_url:{type:"string",examples:['"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/users"']},teams_url:{type:"string",examples:['"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/teams"']}}},bypass_pull_request_allowances:{type:"object",description:"Allow specific users, teams, or apps to bypass pull request requirements.",properties:{users:{description:"The list of users allowed to bypass pull request requirements.",type:"array",items:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}},teams:{description:"The list of teams allowed to bypass pull request requirements.",type:"array",items:{title:"Team",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},slug:{type:"string"},description:{type:["string","null"]},privacy:{type:"string"},notification_setting:{type:"string"},permission:{type:"string"},permissions:{type:"object",properties:{pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"},admin:{type:"boolean"}},required:["pull","triage","push","maintain","admin"]},url:{type:"string",format:"uri"},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},members_url:{type:"string"},repositories_url:{type:"string",format:"uri"},parent:{anyOf:[{type:"null"},{title:"Team Simple",description:"Groups of organization members that gives permissions on specified repositories.",type:"object",properties:{id:{description:"Unique identifier of the team",type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VGVhbTE="]},url:{description:"URL for the team",type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1"]},members_url:{type:"string",examples:["https://api.github.com/organizations/1/team/1/members{/member}"]},name:{description:"Name of the team",type:"string",examples:["Justice League"]},description:{description:"Description of the team",type:["string","null"],examples:["A great team."]},permission:{description:"Permission that the team will have for its repositories",type:"string",examples:["admin"]},privacy:{description:"The level of privacy this team should have",type:"string",examples:["closed"]},notification_setting:{description:"The notification setting the team has set",type:"string",examples:["notifications_enabled"]},html_url:{type:"string",format:"uri",examples:["https://github.com/orgs/rails/teams/core"]},repositories_url:{type:"string",format:"uri",examples:["https://api.github.com/organizations/1/team/1/repos"]},slug:{type:"string",examples:["justice-league"]},ldap_dn:{description:"Distinguished Name (DN) that team maps to within LDAP environment",type:"string",examples:["uid=example,ou=users,dc=github,dc=com"]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug"]}]}},required:["id","node_id","url","members_url","name","description","permission","html_url","repositories_url","slug","parent"]}},apps:{description:"The list of apps allowed to bypass pull request requirements.",type:"array",items:{title:"GitHub app",description:"GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",type:"object",properties:{id:{description:"Unique identifier of the GitHub app",type:"integer",examples:[37]},slug:{description:"The slug name of the GitHub app",type:"string",examples:["probot-owners"]},node_id:{type:"string",examples:["MDExOkludGVncmF0aW9uMQ=="]},owner:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},name:{description:"The name of the GitHub app",type:"string",examples:["Probot Owners"]},description:{type:["string","null"],examples:["The description of the app."]},external_url:{type:"string",format:"uri",examples:["https://example.com"]},html_url:{type:"string",format:"uri",examples:["https://github.com/apps/super-ci"]},created_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},updated_at:{type:"string",format:"date-time",examples:["2017-07-08T16:18:44-04:00"]},permissions:{description:"The set of permissions for the GitHub app",type:"object",properties:{issues:{type:"string"},checks:{type:"string"},metadata:{type:"string"},contents:{type:"string"},deployments:{type:"string"}},additionalProperties:{type:"string"},example:{issues:"read",deployments:"write"}},events:{description:"The list of events for the GitHub app",type:"array",items:{type:"string"},examples:["label","deployment"]},installations_count:{description:"The number of installations associated with the GitHub app",type:"integer",examples:[5]},client_id:{type:"string",examples:['"Iv1.25b5d1e65ffc4022"']},client_secret:{type:"string",examples:['"1d4b2097ac622ba702d19de498f005747a8b21d3"']},webhook_secret:{type:["string","null"],examples:['"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b"']},pem:{type:"string",examples:['"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\\n-----END RSA PRIVATE KEY-----\\n"']}},required:["id","node_id","owner","name","description","external_url","html_url","created_at","updated_at","permissions","events"]}}}},dismiss_stale_reviews:{type:"boolean",examples:[!0]},require_code_owner_reviews:{type:"boolean",examples:[!0]},required_approving_review_count:{type:"integer",minimum:0,maximum:6,examples:[2]},require_last_push_approval:{description:"Whether the most recent push must be approved by someone other than the person who pushed it.",type:"boolean",default:!1,examples:[!0]}},required:["dismiss_stale_reviews","require_code_owner_reviews"]},restrictions:{title:"Branch Restriction Policy",description:"Branch Restriction Policy",type:"object",properties:{url:{type:"string",format:"uri"},users_url:{type:"string",format:"uri"},teams_url:{type:"string",format:"uri"},apps_url:{type:"string",format:"uri"},users:{type:"array",items:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}}},teams:{type:"array",items:{type:"object",properties:{id:{type:"integer"},node_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},name:{type:"string"},slug:{type:"string"},description:{type:["string","null"]},privacy:{type:"string"},notification_setting:{type:"string"},permission:{type:"string"},members_url:{type:"string"},repositories_url:{type:"string"},parent:{type:["string","null"]}}}},apps:{type:"array",items:{type:"object",properties:{id:{type:"integer"},slug:{type:"string"},node_id:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},hooks_url:{type:"string"},issues_url:{type:"string"},members_url:{type:"string"},public_members_url:{type:"string"},avatar_url:{type:"string"},description:{type:"string"},gravatar_id:{type:"string",examples:['""']},html_url:{type:"string",examples:['"https://github.com/testorg-ea8ec76d71c3af4b"']},followers_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/followers"']},following_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/following{/other_user}"']},gists_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/gists{/gist_id}"']},starred_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/starred{/owner}{/repo}"']},subscriptions_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/subscriptions"']},organizations_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/orgs"']},received_events_url:{type:"string",examples:['"https://api.github.com/users/testorg-ea8ec76d71c3af4b/received_events"']},type:{type:"string",examples:['"Organization"']},site_admin:{type:"boolean",examples:[!1]}}},name:{type:"string"},description:{type:"string"},external_url:{type:"string"},html_url:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{metadata:{type:"string"},contents:{type:"string"},issues:{type:"string"},single_file:{type:"string"}}},events:{type:"array",items:{type:"string"}}}}}},required:["url","users_url","teams_url","apps_url","users","teams","apps"]},required_linear_history:{type:"object",properties:{enabled:{type:"boolean"}}},allow_force_pushes:{type:"object",properties:{enabled:{type:"boolean"}}},allow_deletions:{type:"object",properties:{enabled:{type:"boolean"}}},block_creations:{type:"object",properties:{enabled:{type:"boolean"}}},required_conversation_resolution:{type:"object",properties:{enabled:{type:"boolean"}}},name:{type:"string",examples:['"branch/with/protection"']},protection_url:{type:"string",examples:['"https://api.github.com/repos/owner-79e94e2d36b3fd06a32bb213/AAA_Public_Repo/branches/branch/with/protection/protection"']},required_signatures:{type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures"]},enabled:{type:"boolean",examples:[!0]}},required:["url","enabled"]},lock_branch:{type:"object",description:"Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.",properties:{enabled:{default:!1,type:"boolean"}}},allow_fork_syncing:{type:"object",description:"Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.",properties:{enabled:{default:!1,type:"boolean"}}}},Ye={title:$e,description:Ke,type:Ze,properties:Ue};function B(t){return t instanceof be.RequestError?t.response?`${t.name} ${t.response.status}: ${JSON.stringify(t.response.data)}`:`${t.name} ${t.status}: ${t.message}`:JSON.stringify(t)}function Je(t){var e,r;return t instanceof be.RequestError&&t.status===403&&(((e=t.response)==null?void 0:e.headers["retry-after"])!==void 0||((r=t.response)==null?void 0:r.headers["x-ratelimit-remaining"])==="0")}function te(t){return"status"in t&&t.status===304}function re(t){return"status"in t&&t.status===404}function L(t,e,r,s){return Je(r)?(e&&t.error(s),!1):(t.error(s),!0)}const se=async(t,e)=>{let r;const s=await t.get(e);return s&&(r={"If-None-Match":s.etag,"If-Modified-Since":s.lastModified}),r};var Qe=Object.defineProperty,Ve=(t,e,r)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fe=(t,e,r)=>(Ve(t,typeof e!="symbol"?e+"":e,r),r),ie=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},T=(t,e,r)=>(ie(t,e,"read from private field"),r?r.call(t):e.get(t)),M=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},d=(t,e,r,s)=>(ie(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Xe=(t,e,r)=>(ie(t,e,"access private method"),r),C,W,D,y,oe,we;const ae=class{constructor(e,r,s){M(this,oe),M(this,C,void 0),M(this,W,void 0),M(this,D,void 0),M(this,y,void 0),d(this,C,e),d(this,W,r),d(this,D,s),d(this,y,!0)}async extract(e,r,s,a){var o,l;const u=`github:branch_protections:${r.owner}:${r.name}`,m=a?void 0:await se(T(this,W),u),c={owner:r.owner,repo:r.name,branch:await Xe(this,oe,we).call(this,e,r,s),headers:m};try{const i=await s.rest.repos.getBranchProtection(c);return d(this,y,!0),await T(this,W).set(u,{etag:(o=i.headers)==null?void 0:o.etag,lastModified:(l=i.headers)==null?void 0:l.date,data:i.data}),i.data}catch(i){if(te(i)){const x=await T(this,W).get(u);return!x||!("data"in x)?void 0:x.data}if(re(i))return d(this,y,!0),{};const h=`[BranchProtections] fact extraction failed with: ${B(i)}. Request parameters: ${JSON.stringify(c)}`;d(this,y,L(T(this,C),T(this,y),i,h));return}}getDataSchema(e){return JSON.stringify(Ye)}};C=new WeakMap,W=new WeakMap,D=new WeakMap,y=new WeakMap,oe=new WeakSet,we=async function(t,e,r){return t.branch?t.branch:T(this,D).getDefaultBranch(e,r)},Fe(ae,"factory",({logger:t,cache:e,branchHelper:r})=>{const s=new ae(t,e,r);return{predicate:a=>a.type==="BranchProtections",extractor:s}});let et=ae;var tt="Full Repository",rt="Full Repository",st="object",it={id:{type:"integer",examples:[1296269]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{type:"string",examples:["Hello-World"]},full_name:{type:"string",examples:["octocat/Hello-World"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"},examples:["octocat","atom","electron","API"]},has_issues:{type:"boolean",examples:[!0]},has_projects:{type:"boolean",examples:[!0]},has_wiki:{type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{type:"boolean",examples:[!0]},has_discussions:{type:"boolean",examples:[!0]},archived:{type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",type:"string",examples:["public"]},pushed_at:{type:"string",format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:"string",format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:"string",format:"date-time",examples:["2011-01-26T19:14:43Z"]},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}},required:["admin","pull","push"]},allow_rebase_merge:{type:"boolean",examples:[!0]},template_repository:{anyOf:[{type:"null"},{title:"Repository",description:"A repository on GitHub.",type:"object",properties:{id:{description:"Unique identifier of the repository",type:"integer",examples:[42]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{description:"The name of the repository.",type:"string",examples:["Team Environment"]},full_name:{type:"string",examples:["octocat/Hello-World"]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},forks:{type:"integer"},permissions:{type:"object",properties:{admin:{type:"boolean"},pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"}},required:["admin","pull","push"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{description:"Whether the repository is private or public.",default:!1,type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{description:"The default branch of the repository.",type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{description:"Whether this repository acts as a template that can be used to generate new repositories.",default:!1,type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"}},has_issues:{description:"Whether issues are enabled.",default:!0,type:"boolean",examples:[!0]},has_projects:{description:"Whether projects are enabled.",default:!0,type:"boolean",examples:[!0]},has_wiki:{description:"Whether the wiki is enabled.",default:!0,type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{description:"Whether downloads are enabled.",default:!0,type:"boolean",examples:[!0]},has_discussions:{description:"Whether discussions are enabled.",default:!1,type:"boolean",examples:[!0]},archived:{description:"Whether the repository is archived.",default:!1,type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",default:"public",type:"string"},pushed_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:14:43Z"]},allow_rebase_merge:{description:"Whether to allow rebase merges for pull requests.",default:!0,type:"boolean",examples:[!0]},template_repository:{type:["object","null"],properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},full_name:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}},private:{type:"boolean"},html_url:{type:"string"},description:{type:"string"},fork:{type:"boolean"},url:{type:"string"},archive_url:{type:"string"},assignees_url:{type:"string"},blobs_url:{type:"string"},branches_url:{type:"string"},collaborators_url:{type:"string"},comments_url:{type:"string"},commits_url:{type:"string"},compare_url:{type:"string"},contents_url:{type:"string"},contributors_url:{type:"string"},deployments_url:{type:"string"},downloads_url:{type:"string"},events_url:{type:"string"},forks_url:{type:"string"},git_commits_url:{type:"string"},git_refs_url:{type:"string"},git_tags_url:{type:"string"},git_url:{type:"string"},issue_comment_url:{type:"string"},issue_events_url:{type:"string"},issues_url:{type:"string"},keys_url:{type:"string"},labels_url:{type:"string"},languages_url:{type:"string"},merges_url:{type:"string"},milestones_url:{type:"string"},notifications_url:{type:"string"},pulls_url:{type:"string"},releases_url:{type:"string"},ssh_url:{type:"string"},stargazers_url:{type:"string"},statuses_url:{type:"string"},subscribers_url:{type:"string"},subscription_url:{type:"string"},tags_url:{type:"string"},teams_url:{type:"string"},trees_url:{type:"string"},clone_url:{type:"string"},mirror_url:{type:"string"},hooks_url:{type:"string"},svn_url:{type:"string"},homepage:{type:"string"},language:{type:"string"},forks_count:{type:"integer"},stargazers_count:{type:"integer"},watchers_count:{type:"integer"},size:{type:"integer"},default_branch:{type:"string"},open_issues_count:{type:"integer"},is_template:{type:"boolean"},topics:{type:"array",items:{type:"string"}},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},has_pages:{type:"boolean"},has_downloads:{type:"boolean"},archived:{type:"boolean"},disabled:{type:"boolean"},visibility:{type:"string"},pushed_at:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}}},allow_rebase_merge:{type:"boolean"},temp_clone_token:{type:"string"},allow_squash_merge:{type:"boolean"},allow_auto_merge:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},allow_update_branch:{type:"boolean"},use_squash_pr_title_as_default:{type:"boolean"},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"}}},temp_clone_token:{type:"string"},allow_squash_merge:{description:"Whether to allow squash merges for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_auto_merge:{description:"Whether to allow Auto-merge to be used on pull requests.",default:!1,type:"boolean",examples:[!1]},delete_branch_on_merge:{description:"Whether to delete head branches when pull requests are merged",default:!1,type:"boolean",examples:[!1]},allow_update_branch:{description:"Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",default:!1,type:"boolean",examples:[!1]},use_squash_pr_title_as_default:{type:"boolean",description:"Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",default:!1,deprecated:!0},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{description:"Whether to allow merge commits for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_forking:{description:"Whether to allow forking this repo",type:"boolean"},web_commit_signoff_required:{description:"Whether to require contributors to sign off on web-based commits",default:!1,type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"},open_issues:{type:"integer"},watchers:{type:"integer"},master_branch:{type:"string"},starred_at:{type:"string",examples:['"2020-07-09T00:17:42Z"']},anonymous_access_enabled:{type:"boolean",description:"Whether anonymous git access is enabled for this repository"}},required:["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at"]}]},temp_clone_token:{type:["string","null"]},allow_squash_merge:{type:"boolean",examples:[!0]},allow_auto_merge:{type:"boolean",examples:[!1]},delete_branch_on_merge:{type:"boolean",examples:[!1]},allow_merge_commit:{type:"boolean",examples:[!0]},allow_update_branch:{type:"boolean",examples:[!0]},use_squash_pr_title_as_default:{type:"boolean",examples:[!1]},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",examples:["PR_TITLE"]},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",examples:["PR_BODY"]},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",examples:["PR_TITLE"]},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",examples:["PR_BODY"]},allow_forking:{type:"boolean",examples:[!0]},web_commit_signoff_required:{type:"boolean",examples:[!1]},subscribers_count:{type:"integer",examples:[42]},network_count:{type:"integer",examples:[0]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},parent:{title:"Repository",description:"A repository on GitHub.",type:"object",properties:{id:{description:"Unique identifier of the repository",type:"integer",examples:[42]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{description:"The name of the repository.",type:"string",examples:["Team Environment"]},full_name:{type:"string",examples:["octocat/Hello-World"]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},forks:{type:"integer"},permissions:{type:"object",properties:{admin:{type:"boolean"},pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"}},required:["admin","pull","push"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{description:"Whether the repository is private or public.",default:!1,type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{description:"The default branch of the repository.",type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{description:"Whether this repository acts as a template that can be used to generate new repositories.",default:!1,type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"}},has_issues:{description:"Whether issues are enabled.",default:!0,type:"boolean",examples:[!0]},has_projects:{description:"Whether projects are enabled.",default:!0,type:"boolean",examples:[!0]},has_wiki:{description:"Whether the wiki is enabled.",default:!0,type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{description:"Whether downloads are enabled.",default:!0,type:"boolean",examples:[!0]},has_discussions:{description:"Whether discussions are enabled.",default:!1,type:"boolean",examples:[!0]},archived:{description:"Whether the repository is archived.",default:!1,type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",default:"public",type:"string"},pushed_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:14:43Z"]},allow_rebase_merge:{description:"Whether to allow rebase merges for pull requests.",default:!0,type:"boolean",examples:[!0]},template_repository:{type:["object","null"],properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},full_name:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}},private:{type:"boolean"},html_url:{type:"string"},description:{type:"string"},fork:{type:"boolean"},url:{type:"string"},archive_url:{type:"string"},assignees_url:{type:"string"},blobs_url:{type:"string"},branches_url:{type:"string"},collaborators_url:{type:"string"},comments_url:{type:"string"},commits_url:{type:"string"},compare_url:{type:"string"},contents_url:{type:"string"},contributors_url:{type:"string"},deployments_url:{type:"string"},downloads_url:{type:"string"},events_url:{type:"string"},forks_url:{type:"string"},git_commits_url:{type:"string"},git_refs_url:{type:"string"},git_tags_url:{type:"string"},git_url:{type:"string"},issue_comment_url:{type:"string"},issue_events_url:{type:"string"},issues_url:{type:"string"},keys_url:{type:"string"},labels_url:{type:"string"},languages_url:{type:"string"},merges_url:{type:"string"},milestones_url:{type:"string"},notifications_url:{type:"string"},pulls_url:{type:"string"},releases_url:{type:"string"},ssh_url:{type:"string"},stargazers_url:{type:"string"},statuses_url:{type:"string"},subscribers_url:{type:"string"},subscription_url:{type:"string"},tags_url:{type:"string"},teams_url:{type:"string"},trees_url:{type:"string"},clone_url:{type:"string"},mirror_url:{type:"string"},hooks_url:{type:"string"},svn_url:{type:"string"},homepage:{type:"string"},language:{type:"string"},forks_count:{type:"integer"},stargazers_count:{type:"integer"},watchers_count:{type:"integer"},size:{type:"integer"},default_branch:{type:"string"},open_issues_count:{type:"integer"},is_template:{type:"boolean"},topics:{type:"array",items:{type:"string"}},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},has_pages:{type:"boolean"},has_downloads:{type:"boolean"},archived:{type:"boolean"},disabled:{type:"boolean"},visibility:{type:"string"},pushed_at:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}}},allow_rebase_merge:{type:"boolean"},temp_clone_token:{type:"string"},allow_squash_merge:{type:"boolean"},allow_auto_merge:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},allow_update_branch:{type:"boolean"},use_squash_pr_title_as_default:{type:"boolean"},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"}}},temp_clone_token:{type:"string"},allow_squash_merge:{description:"Whether to allow squash merges for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_auto_merge:{description:"Whether to allow Auto-merge to be used on pull requests.",default:!1,type:"boolean",examples:[!1]},delete_branch_on_merge:{description:"Whether to delete head branches when pull requests are merged",default:!1,type:"boolean",examples:[!1]},allow_update_branch:{description:"Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",default:!1,type:"boolean",examples:[!1]},use_squash_pr_title_as_default:{type:"boolean",description:"Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",default:!1,deprecated:!0},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{description:"Whether to allow merge commits for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_forking:{description:"Whether to allow forking this repo",type:"boolean"},web_commit_signoff_required:{description:"Whether to require contributors to sign off on web-based commits",default:!1,type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"},open_issues:{type:"integer"},watchers:{type:"integer"},master_branch:{type:"string"},starred_at:{type:"string",examples:['"2020-07-09T00:17:42Z"']},anonymous_access_enabled:{type:"boolean",description:"Whether anonymous git access is enabled for this repository"}},required:["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at"]},source:{title:"Repository",description:"A repository on GitHub.",type:"object",properties:{id:{description:"Unique identifier of the repository",type:"integer",examples:[42]},node_id:{type:"string",examples:["MDEwOlJlcG9zaXRvcnkxMjk2MjY5"]},name:{description:"The name of the repository.",type:"string",examples:["Team Environment"]},full_name:{type:"string",examples:["octocat/Hello-World"]},license:{anyOf:[{type:"null"},{title:"License Simple",description:"License Simple",type:"object",properties:{key:{type:"string",examples:["mit"]},name:{type:"string",examples:["MIT License"]},url:{type:["string","null"],format:"uri",examples:["https://api.github.com/licenses/mit"]},spdx_id:{type:["string","null"],examples:["MIT"]},node_id:{type:"string",examples:["MDc6TGljZW5zZW1pdA=="]},html_url:{type:"string",format:"uri"}},required:["key","name","url","spdx_id","node_id"]}]},organization:{anyOf:[{type:"null"},{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]}]},forks:{type:"integer"},permissions:{type:"object",properties:{admin:{type:"boolean"},pull:{type:"boolean"},triage:{type:"boolean"},push:{type:"boolean"},maintain:{type:"boolean"}},required:["admin","pull","push"]},owner:{title:"Simple User",description:"A GitHub user.",type:"object",properties:{name:{type:["string","null"]},email:{type:["string","null"]},login:{type:"string",examples:["octocat"]},id:{type:"integer",examples:[1]},node_id:{type:"string",examples:["MDQ6VXNlcjE="]},avatar_url:{type:"string",format:"uri",examples:["https://github.com/images/error/octocat_happy.gif"]},gravatar_id:{type:["string","null"],examples:["41d064eb2195891e12d0413f63227ea7"]},url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat"]},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat"]},followers_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/followers"]},following_url:{type:"string",examples:["https://api.github.com/users/octocat/following{/other_user}"]},gists_url:{type:"string",examples:["https://api.github.com/users/octocat/gists{/gist_id}"]},starred_url:{type:"string",examples:["https://api.github.com/users/octocat/starred{/owner}{/repo}"]},subscriptions_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/subscriptions"]},organizations_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/orgs"]},repos_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/repos"]},events_url:{type:"string",examples:["https://api.github.com/users/octocat/events{/privacy}"]},received_events_url:{type:"string",format:"uri",examples:["https://api.github.com/users/octocat/received_events"]},type:{type:"string",examples:["User"]},site_admin:{type:"boolean"},starred_at:{type:"string",examples:['"2020-07-09T00:17:55Z"']}},required:["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"]},private:{description:"Whether the repository is private or public.",default:!1,type:"boolean"},html_url:{type:"string",format:"uri",examples:["https://github.com/octocat/Hello-World"]},description:{type:["string","null"],examples:["This your first repo!"]},fork:{type:"boolean"},url:{type:"string",format:"uri",examples:["https://api.github.com/repos/octocat/Hello-World"]},archive_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"]},assignees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/assignees{/user}"]},blobs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"]},branches_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/branches{/branch}"]},collaborators_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"]},comments_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/comments{/number}"]},commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/commits{/sha}"]},compare_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"]},contents_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/contents/{+path}"]},contributors_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/contributors"]},deployments_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/deployments"]},downloads_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/downloads"]},events_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/events"]},forks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/forks"]},git_commits_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"]},git_refs_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"]},git_tags_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"]},git_url:{type:"string",examples:["git:github.com/octocat/Hello-World.git"]},issue_comment_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"]},issue_events_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"]},issues_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/issues{/number}"]},keys_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"]},labels_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/labels{/name}"]},languages_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/languages"]},merges_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/merges"]},milestones_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/milestones{/number}"]},notifications_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"]},pulls_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/pulls{/number}"]},releases_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/releases{/id}"]},ssh_url:{type:"string",examples:["git@github.com:octocat/Hello-World.git"]},stargazers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/stargazers"]},statuses_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"]},subscribers_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscribers"]},subscription_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/subscription"]},tags_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/tags"]},teams_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/teams"]},trees_url:{type:"string",examples:["http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"]},clone_url:{type:"string",examples:["https://github.com/octocat/Hello-World.git"]},mirror_url:{type:["string","null"],format:"uri",examples:["git:git.example.com/octocat/Hello-World"]},hooks_url:{type:"string",format:"uri",examples:["http://api.github.com/repos/octocat/Hello-World/hooks"]},svn_url:{type:"string",format:"uri",examples:["https://svn.github.com/octocat/Hello-World"]},homepage:{type:["string","null"],format:"uri",examples:["https://github.com"]},language:{type:["string","null"]},forks_count:{type:"integer",examples:[9]},stargazers_count:{type:"integer",examples:[80]},watchers_count:{type:"integer",examples:[80]},size:{description:"The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.",type:"integer",examples:[108]},default_branch:{description:"The default branch of the repository.",type:"string",examples:["master"]},open_issues_count:{type:"integer",examples:[0]},is_template:{description:"Whether this repository acts as a template that can be used to generate new repositories.",default:!1,type:"boolean",examples:[!0]},topics:{type:"array",items:{type:"string"}},has_issues:{description:"Whether issues are enabled.",default:!0,type:"boolean",examples:[!0]},has_projects:{description:"Whether projects are enabled.",default:!0,type:"boolean",examples:[!0]},has_wiki:{description:"Whether the wiki is enabled.",default:!0,type:"boolean",examples:[!0]},has_pages:{type:"boolean"},has_downloads:{description:"Whether downloads are enabled.",default:!0,type:"boolean",examples:[!0]},has_discussions:{description:"Whether discussions are enabled.",default:!1,type:"boolean",examples:[!0]},archived:{description:"Whether the repository is archived.",default:!1,type:"boolean"},disabled:{type:"boolean",description:"Returns whether or not this repository disabled."},visibility:{description:"The repository visibility: public, private, or internal.",default:"public",type:"string"},pushed_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:06:43Z"]},created_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:01:12Z"]},updated_at:{type:["string","null"],format:"date-time",examples:["2011-01-26T19:14:43Z"]},allow_rebase_merge:{description:"Whether to allow rebase merges for pull requests.",default:!0,type:"boolean",examples:[!0]},template_repository:{type:["object","null"],properties:{id:{type:"integer"},node_id:{type:"string"},name:{type:"string"},full_name:{type:"string"},owner:{type:"object",properties:{login:{type:"string"},id:{type:"integer"},node_id:{type:"string"},avatar_url:{type:"string"},gravatar_id:{type:"string"},url:{type:"string"},html_url:{type:"string"},followers_url:{type:"string"},following_url:{type:"string"},gists_url:{type:"string"},starred_url:{type:"string"},subscriptions_url:{type:"string"},organizations_url:{type:"string"},repos_url:{type:"string"},events_url:{type:"string"},received_events_url:{type:"string"},type:{type:"string"},site_admin:{type:"boolean"}}},private:{type:"boolean"},html_url:{type:"string"},description:{type:"string"},fork:{type:"boolean"},url:{type:"string"},archive_url:{type:"string"},assignees_url:{type:"string"},blobs_url:{type:"string"},branches_url:{type:"string"},collaborators_url:{type:"string"},comments_url:{type:"string"},commits_url:{type:"string"},compare_url:{type:"string"},contents_url:{type:"string"},contributors_url:{type:"string"},deployments_url:{type:"string"},downloads_url:{type:"string"},events_url:{type:"string"},forks_url:{type:"string"},git_commits_url:{type:"string"},git_refs_url:{type:"string"},git_tags_url:{type:"string"},git_url:{type:"string"},issue_comment_url:{type:"string"},issue_events_url:{type:"string"},issues_url:{type:"string"},keys_url:{type:"string"},labels_url:{type:"string"},languages_url:{type:"string"},merges_url:{type:"string"},milestones_url:{type:"string"},notifications_url:{type:"string"},pulls_url:{type:"string"},releases_url:{type:"string"},ssh_url:{type:"string"},stargazers_url:{type:"string"},statuses_url:{type:"string"},subscribers_url:{type:"string"},subscription_url:{type:"string"},tags_url:{type:"string"},teams_url:{type:"string"},trees_url:{type:"string"},clone_url:{type:"string"},mirror_url:{type:"string"},hooks_url:{type:"string"},svn_url:{type:"string"},homepage:{type:"string"},language:{type:"string"},forks_count:{type:"integer"},stargazers_count:{type:"integer"},watchers_count:{type:"integer"},size:{type:"integer"},default_branch:{type:"string"},open_issues_count:{type:"integer"},is_template:{type:"boolean"},topics:{type:"array",items:{type:"string"}},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},has_pages:{type:"boolean"},has_downloads:{type:"boolean"},archived:{type:"boolean"},disabled:{type:"boolean"},visibility:{type:"string"},pushed_at:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},permissions:{type:"object",properties:{admin:{type:"boolean"},maintain:{type:"boolean"},push:{type:"boolean"},triage:{type:"boolean"},pull:{type:"boolean"}}},allow_rebase_merge:{type:"boolean"},temp_clone_token:{type:"string"},allow_squash_merge:{type:"boolean"},allow_auto_merge:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},allow_update_branch:{type:"boolean"},use_squash_pr_title_as_default:{type:"boolean"},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"}}},temp_clone_token:{type:"string"},allow_squash_merge:{description:"Whether to allow squash merges for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_auto_merge:{description:"Whether to allow Auto-merge to be used on pull requests.",default:!1,type:"boolean",examples:[!1]},delete_branch_on_merge:{description:"Whether to delete head branches when pull requests are merged",default:!1,type:"boolean",examples:[!1]},allow_update_branch:{description:"Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",default:!1,type:"boolean",examples:[!1]},use_squash_pr_title_as_default:{type:"boolean",description:"Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",default:!1,deprecated:!0},squash_merge_commit_title:{type:"string",enum:["PR_TITLE","COMMIT_OR_PR_TITLE"],description:"The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."},squash_merge_commit_message:{type:"string",enum:["PR_BODY","COMMIT_MESSAGES","BLANK"],description:"The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."},merge_commit_title:{type:"string",enum:["PR_TITLE","MERGE_MESSAGE"],description:"The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."},merge_commit_message:{type:"string",enum:["PR_BODY","PR_TITLE","BLANK"],description:"The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."},allow_merge_commit:{description:"Whether to allow merge commits for pull requests.",default:!0,type:"boolean",examples:[!0]},allow_forking:{description:"Whether to allow forking this repo",type:"boolean"},web_commit_signoff_required:{description:"Whether to require contributors to sign off on web-based commits",default:!1,type:"boolean"},subscribers_count:{type:"integer"},network_count:{type:"integer"},open_issues:{type:"integer"},watchers:{type:"integer"},master_branch:{type:"string"},starred_at:{type:"string",examples:['"2020-07-09T00:17:42Z"']},anonymous_access_enabled:{type:"boolean",description:"Whether anonymous git access is enabled for this repository"}},required:["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at"]},forks:{type:"integer"},master_branch:{type:"string"},open_issues:{type:"integer"},watchers:{type:"integer"},anonymous_access_enabled:{description:"Whether anonymous git access is allowed.",default:!0,type:"boolean"},code_of_conduct:{title:"Code Of Conduct Simple",description:"Code of Conduct Simple",type:"object",properties:{url:{type:"string",format:"uri",examples:["https://api.github.com/repos/github/docs/community/code_of_conduct"]},key:{type:"string",examples:["citizen_code_of_conduct"]},name:{type:"string",examples:["Citizen Code of Conduct"]},html_url:{type:["string","null"],format:"uri",examples:["https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"]}},required:["url","key","name","html_url"]},security_and_analysis:{type:["object","null"],properties:{advanced_security:{type:"object",properties:{status:{type:"string",enum:["enabled","disabled"]}}},secret_scanning:{type:"object",properties:{status:{type:"string",enum:["enabled","disabled"]}}},secret_scanning_push_protection:{type:"object",properties:{status:{type:"string",enum:["enabled","disabled"]}}}}}},ot=["archive_url","assignees_url","blobs_url","branches_url","collaborators_url","comments_url","commits_url","compare_url","contents_url","contributors_url","deployments_url","description","downloads_url","events_url","fork","forks_url","full_name","git_commits_url","git_refs_url","git_tags_url","hooks_url","html_url","id","node_id","issue_comment_url","issue_events_url","issues_url","keys_url","labels_url","languages_url","merges_url","milestones_url","name","notifications_url","owner","private","pulls_url","releases_url","stargazers_url","statuses_url","subscribers_url","subscription_url","tags_url","teams_url","trees_url","url","clone_url","default_branch","forks","forks_count","git_url","has_downloads","has_issues","has_projects","has_wiki","has_pages","has_discussions","homepage","language","archived","disabled","mirror_url","open_issues","open_issues_count","license","pushed_at","size","ssh_url","stargazers_count","svn_url","watchers","watchers_count","created_at","updated_at","network_count","subscribers_count"],at={title:tt,description:rt,type:st,properties:it,required:ot},lt=Object.defineProperty,pt=(t,e,r)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nt=(t,e,r)=>(pt(t,typeof e!="symbol"?e+"":e,r),r),Te=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},N=(t,e,r)=>(Te(t,e,"read from private field"),r?r.call(t):e.get(t)),le=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},E=(t,e,r,s)=>(Te(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),$,R,b;const pe=class{constructor(e,r){le(this,$,void 0),le(this,R,void 0),le(this,b,void 0),E(this,$,e),E(this,b,!0),E(this,R,r)}async extract(e,r,s,a){var o,l;const u=`github:repository_details:${r.owner}:${r.name}`,m=a?void 0:await se(N(this,R),u),c={owner:r.owner,repo:r.name,headers:m};try{const i=await s.rest.repos.get(c);return await N(this,R).set(u,{etag:(o=i.headers)==null?void 0:o.etag,lastModified:(l=i.headers)==null?void 0:l.date}),E(this,b,!0),i.data}catch(i){if(te(i))return;if(re(i))return E(this,b,!0),{};const h=`[RepositoryDetails] fact extraction failed with: ${B(i)}. Request parameters: ${JSON.stringify(c)}`;E(this,b,L(N(this,$),N(this,b),i,h));return}}getDataSchema(e){return JSON.stringify(at)}};$=new WeakMap,R=new WeakMap,b=new WeakMap,nt(pe,"factory",({logger:t,cache:e})=>{const r=new pe(t,e);return{predicate:s=>s.type==="RepositoryDetails",extractor:r}});let ut=pe;const ct=n.BaseFactExtractorSchema.merge(v.z.strictObject({type:v.z.literal("BranchProtections")})).strict(),mt=n.BaseFactExtractorSchema.merge(v.z.strictObject({type:v.z.literal("RepositoryDetails")})).strict(),gt=n.BaseFactExtractorSchema.merge(v.z.strictObject({type:v.z.literal("RepositoryLanguages")})).strict(),ht=ct.or(mt).or(gt),We=n.buildFactCollectorSchema(ht);var ne=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},K=(t,e,r)=>(ne(t,e,"read from private field"),r?r.call(t):e.get(t)),Z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ue=(t,e,r,s)=>(ne(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),_t=(t,e,r)=>(ne(t,e,"access private method"),r),U,S,Y,ce,Ee;const dt=class Re{constructor(e){Z(this,ce),Z(this,U,void 0),Z(this,S,{}),Z(this,Y,void 0),ue(this,Y,e)}static create(e){return new Re(e)}getConfig(){return K(this,U)}setConfig(e){ue(this,U,e),ue(this,S,_t(this,ce,Ee).call(this,e))}getExtractorConfig(e){return K(this,S)[e]}getExtractorConfigs(){return Object.values(K(this,S))}};U=new WeakMap,S=new WeakMap,Y=new WeakMap,ce=new WeakSet,Ee=function(t){const e=We.safeParse(t);if(!e.success)throw K(this,Y).error("Invalid GithubFactCollector config."),new Ge.InputError(e.error.message);return n.buildExtractorConfigMap(e.data)};let yt=dt;var He=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},J=(t,e,r)=>(He(t,e,"read from private field"),r?r.call(t):e.get(t)),me=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P=(t,e,r,s)=>(He(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Q,I,H;const bt=class Se{constructor(e,r){me(this,Q,void 0),me(this,I,void 0),me(this,H,void 0),P(this,Q,e),P(this,I,r),P(this,H,!0)}static create(e,r){return new Se(e,r)}async getDefaultBranch(e,r){let s=await J(this,I).get(e.full_name);if(s!==void 0)return s;const a={owner:e.owner,repo:e.name};try{s=(await r.rest.repos.get(a)).data.default_branch,P(this,H,!0),await J(this,I).set(e.full_name,s)}catch(o){e.ref?s=e.ref:s="main";const l=`Failed to get default branch name with: ${B(o)}. Request parameters: ${JSON.stringify(a)}. Falling back to using [${s}] as default branch`;P(this,H,L(J(this,Q),J(this,H),o,l))}return s}};Q=new WeakMap,I=new WeakMap,H=new WeakMap;let ft=bt;var xt="Language",vt="Language",wt="object",Tt={type:"integer"},Wt={title:xt,description:vt,type:wt,additionalProperties:Tt},Et=Object.defineProperty,Ht=(t,e,r)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qt=(t,e,r)=>(Ht(t,typeof e!="symbol"?e+"":e,r),r),qe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},V=(t,e,r)=>(qe(t,e,"read from private field"),r?r.call(t):e.get(t)),ge=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},q=(t,e,r,s)=>(qe(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),F,O,f;const he=class{constructor(e,r){ge(this,F,void 0),ge(this,O,void 0),ge(this,f,void 0),q(this,F,e),q(this,f,!0),q(this,O,r)}async extract(e,r,s,a){var o,l;const u=`github:repository_languages:${r.owner}:${r.name}`,m=a?void 0:await se(V(this,O),u),c={owner:r.owner,repo:r.name,headers:m};try{const i=await s.rest.repos.listLanguages(c);return await V(this,O).set(u,{etag:(o=i.headers)==null?void 0:o.etag,lastModified:(l=i.headers)==null?void 0:l.date}),q(this,f,!0),i.data}catch(i){if(te(i))return;if(re(i))return q(this,f,!0),{};const h=`[RepositoryLanguages] fact extraction failed with: ${B(i)}. Request parameters: ${JSON.stringify(c)}`;q(this,f,L(V(this,F),V(this,f),i,h));return}}getDataSchema(e){return JSON.stringify(Wt)}};F=new WeakMap,O=new WeakMap,f=new WeakMap,qt(he,"factory",({logger:t,cache:e})=>{const r=new he(t,e);return{predicate:s=>s.type==="RepositoryLanguages",extractor:r}});let kt=he;var Mt=Object.defineProperty,Rt=(t,e,r)=>e in t?Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,X=(t,e,r)=>(Rt(t,typeof e!="symbol"?e+"":e,r),r),_e=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},p=(t,e,r)=>(_e(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},G=(t,e,r,s)=>(_e(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),St=(t,e,r)=>(_e(t,e,"access private method"),r),_,z,ee,A,g,de,ke;const Me=class ye{constructor(e,r,s){k(this,de),k(this,_,void 0),k(this,z,void 0),k(this,ee,void 0),k(this,A,void 0),k(this,g,void 0),X(this,"id",ye.ID),X(this,"name","Github"),X(this,"description","Collects facts about your Github repositories."),G(this,_,r.child({target:this.id})),G(this,z,fe.ScmIntegrations.fromConfig(e)),G(this,ee,fe.DefaultGithubCredentialsProvider.fromIntegrations(p(this,z))),G(this,A,Ne.create({logger:p(this,_),cache:s.getClient(),branchHelper:ft.create(p(this,_),s.getClient({defaultTtl:60*60*1e3})),factories:[et.factory,ut.factory,kt.factory]})),G(this,g,yt.create(p(this,_)))}static create(e,r,s){return new ye(e,r,s)}async collect(e,r){const s=St(this,de,ke).call(this,r);return Promise.all(e.filter(a=>n.isScmEntity(a)).map(async a=>{const o=Ie.stringifyEntityRef(a),l=n.getEntityScmUrl(a),u=je.default(l),m=await this.getOctokit(l);return m?Promise.all(s.map(async c=>{var i;const h=n.getFactRef(this.id,c),x=await p(this,A).extract(c,u,m,!!((i=r==null?void 0:r.refresh)!=null&&i.includes(h))).catch(Pe=>{p(this,_).error(`Failed to collect ${h} fact data for ${o} entity: ${Pe}`)});if(x!==void 0)return n.buildFact(o,h,x)})):Promise.resolve()})).then(a=>a.flat().filter(o=>!!o))}async getOctokit(e){try{const{token:r}=await p(this,ee).getCredentials({url:e}),s=p(this,z).github.byUrl(e);return new Oe.Octokit({auth:r,baseUrl:s==null?void 0:s.config.apiBaseUrl})}catch{p(this,_).error(`Cannot collect github information from url ${e}`);return}}async getCollectionConfigs(){return n.buildCollectionConfigs(this.id,p(this,g).getExtractorConfigs())}async getFactNames(){return p(this,g).getExtractorConfigs().map(e=>e.factName)}async getDataSchema(e){const r=n.parseFactRef(e,{defaultSource:this.id,defaultScope:n.DEFAULT_SCOPE}),s=p(this,g).getExtractorConfigs().find(a=>{const o=n.parseFactRef(n.getFactRef(this.id,a));return r.source===o.source&&r.name===o.name});if(s)return p(this,A).getDataSchema(s)}async getConfig(){return p(this,g).getConfig()}async setConfig(e){p(this,g).setConfig(e)}async getConfigSchema(){return JSON.stringify(Be.default(We))}};_=new WeakMap,z=new WeakMap,ee=new WeakMap,A=new WeakMap,g=new WeakMap,de=new WeakSet,ke=function(t){return t!=null&&t.factRefs?p(this,g).getExtractorConfigs().filter(e=>{var r,s;return(s=(r=t==null?void 0:t.factRefs)==null?void 0:r.map(n.stringifyFactRef))==null?void 0:s.includes(n.getFactRef(this.id,e))}):p(this,g).getExtractorConfigs()},X(Me,"ID","github");let Pt=Me;exports.GithubFactCollector=Pt;
2
2
  //# sourceMappingURL=index.cjs.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotify/backstage-plugin-soundcheck-backend-module-github",
3
3
  "description": "Soundcheck 3rd party integration with Github",
4
- "version": "0.4.5",
4
+ "version": "0.5.1",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "dist/index.cjs.js",
@@ -22,12 +22,12 @@
22
22
  "postpack": "backstage-cli package postpack"
23
23
  },
24
24
  "devDependencies": {
25
- "@backstage/cli": "^0.25.0",
25
+ "@backstage/cli": "^0.25.1",
26
26
  "@types/git-url-parse": "^9.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@backstage/backend-common": "^0.20.0",
30
- "@backstage/backend-plugin-api": "^0.6.8",
29
+ "@backstage/backend-common": "^0.20.1",
30
+ "@backstage/backend-plugin-api": "^0.6.9",
31
31
  "@backstage/catalog-model": "^1.4.3",
32
32
  "@backstage/config": "^1.1.1",
33
33
  "@backstage/errors": "^1.2.3",
@@ -35,8 +35,8 @@
35
35
  "@backstage/types": "^1.1.1",
36
36
  "@octokit/request-error": "^5.0.0",
37
37
  "@octokit/rest": "^20.0.0",
38
- "@spotify/backstage-plugin-soundcheck-common": "^0.10.0",
39
- "@spotify/backstage-plugin-soundcheck-node": "^0.4.5",
38
+ "@spotify/backstage-plugin-soundcheck-common": "^0.11.1",
39
+ "@spotify/backstage-plugin-soundcheck-node": "^0.4.7",
40
40
  "git-url-parse": "^13.0.0",
41
41
  "lodash": "^4.17.21",
42
42
  "winston": "^3.2.1",