@spotify/backstage-plugin-soundcheck-backend-module-github 0.5.2 → 0.5.4

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/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Ie=require("@backstage/catalog-model"),ce=require("@backstage/integration"),Oe=require("@octokit/rest"),n=require("@spotify/backstage-plugin-soundcheck-common"),Z=require("@spotify/backstage-plugin-soundcheck-node"),ze=require("git-url-parse"),Ge=require("zod-to-json-schema"),me=require("@octokit/request-error"),y=require("zod"),Ae=require("@backstage/errors"),ge=require("@backstage/backend-common"),R=require("@backstage/backend-plugin-api");function he(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var je=he(ze),Be=he(Ge);function M(t){return t instanceof me.RequestError?t.response?`${t.name} ${t.response.status}: ${JSON.stringify(t.response.data)}`:`${t.name} ${t.status}: ${t.message}`:JSON.stringify(t)}function Ce(t){var e,r;return t instanceof me.RequestError&&(t.status===429||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 U(t){return"status"in t&&t.status===304}function Y(t){return"status"in t&&t.status===404}function S(t,e){var r;if(Ce(t)){const s=(r=t.response)==null?void 0:r.headers["retry-after"];throw new Z.RateLimitError(e,t,s?parseInt(s.toString(),10)*1e3:60*1e3)}}var Le="Branch Protection",De="Branch Protection",Ne="object",$e={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"}}}},Ke={title:Le,description:De,type:Ne,properties:$e};const J=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 Ze=Object.defineProperty,Ue=(t,e,r)=>e in t?Ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ye=(t,e,r)=>(Ue(t,typeof e!="symbol"?e+"":e,r),r),Q=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},v=(t,e,r)=>(Q(t,e,"read from private field"),r?r.call(t):e.get(t)),P=(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)},V=(t,e,r,s)=>(Q(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Je=(t,e,r)=>(Q(t,e,"access private method"),r),I,b,O,F,_e;const X=class{constructor(e,r,s){P(this,F),P(this,I,void 0),P(this,b,void 0),P(this,O,void 0),V(this,I,e),V(this,b,r),V(this,O,s)}async extract(e,r,s,o){var a,l;const u=`github:branch_protections:${r.owner}:${r.name}`,g=o?void 0:await J(v(this,b),u),m={owner:r.owner,repo:r.name,branch:await Je(this,F,_e).call(this,e,r,s),headers:g};try{const i=await s.rest.repos.getBranchProtection(m);return await v(this,b).set(u,{etag:(a=i.headers)==null?void 0:a.etag,lastModified:(l=i.headers)==null?void 0:l.date,data:i.data}),i.data}catch(i){if(U(i)){const d=await v(this,b).get(u);return!d||!("data"in d)?void 0:d.data}if(Y(i))return{};const c=`[BranchProtections] fact extraction failed with: ${M(i)}. Request parameters: ${JSON.stringify(m)}`;S(i,c),v(this,I).error(c);return}}getDataSchema(e){return JSON.stringify(Ke)}};I=new WeakMap,b=new WeakMap,O=new WeakMap,F=new WeakSet,_e=async function(t,e,r){return t.branch?t.branch:v(this,O).getDefaultBranch(e,r)},Ye(X,"factory",({logger:t,cache:e,branchHelper:r})=>{const s=new X(t,e,r);return{predicate:o=>o.type==="BranchProtections",extractor:s}});let Qe=X;const Ve=n.BaseFactExtractorSchema.merge(y.z.strictObject({type:y.z.literal("BranchProtections")})).strict(),Fe=n.BaseFactExtractorSchema.merge(y.z.strictObject({type:y.z.literal("RepositoryDetails")})).strict(),Xe=n.BaseFactExtractorSchema.merge(y.z.strictObject({type:y.z.literal("RepositoryLanguages")})).strict(),et=Ve.or(Fe).or(Xe),de=n.buildFactCollectorSchema(et);var tt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},z=(t,e,r)=>(tt(t,e,"read from private field"),r?r.call(t):e.get(t)),rt=(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)},f;function ye(t){return`Extractor with type '${t}' is not allowed. You may need to update collectors configuration at 'soundcheck.collectors.github'`}class st{constructor(){rt(this,f,[])}register(e){z(this,f).push(e)}async extract(e,r,s,o){for(const{predicate:a,extractor:l}of z(this,f))if(a(e))return l.extract(e,r,s,o);throw new Error(ye(e.type))}getDataSchema(e){for(const{predicate:r,extractor:s}of z(this,f))if(r(e))return s.getDataSchema(e);throw new Error(ye(e.type))}toString(){return`predicateMux{extractors=${z(this,f).map(e=>e.extractor).join(",")}`}}f=new WeakMap;class it{static create(e){const{logger:r,cache:s,branchHelper:o,factories:a}=e,l=new st;for(const u of a!=null?a:[]){const g=u({logger:r,cache:s,branchHelper:o});l.register(g)}return l}}var be=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},ee=(t,e,r)=>(be(t,e,"read from private field"),r?r.call(t):e.get(t)),fe=(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)},xe=(t,e,r,s)=>(be(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),G,w;const ot=class Se{constructor(e,r){fe(this,G,void 0),fe(this,w,void 0),xe(this,G,e),xe(this,w,r)}static create(e,r){return new Se(e,r)}async getDefaultBranch(e,r){let s=await ee(this,w).get(e.full_name);if(s!==void 0)return s;const o={owner:e.owner,repo:e.name};try{s=(await r.rest.repos.get(o)).data.default_branch,await ee(this,w).set(e.full_name,s)}catch(a){e.ref?s=e.ref:s="main";const l=`Failed to get default branch name with: ${M(a)}. Request parameters: ${JSON.stringify(o)}. Falling back to using [${s}] as default branch`;S(a,l),ee(this,G).error(l)}return s}};G=new WeakMap,w=new WeakMap;let at=ot;var lt="Full Repository",pt="Full Repository",nt="object",ut={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"]}}}}}},ct=["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"],mt={title:lt,description:pt,type:nt,properties:ut,required:ct},gt=Object.defineProperty,ht=(t,e,r)=>e in t?gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_t=(t,e,r)=>(ht(t,typeof e!="symbol"?e+"":e,r),r),ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},te=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),we=(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)},Te=(t,e,r,s)=>(ve(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),A,T;const re=class{constructor(e,r){we(this,A,void 0),we(this,T,void 0),Te(this,A,e),Te(this,T,r)}async extract(e,r,s,o){var a,l;const u=`github:repository_details:${r.owner}:${r.name}`,g=o?void 0:await J(te(this,T),u),m={owner:r.owner,repo:r.name,headers:g};try{const i=await s.rest.repos.get(m);return await te(this,T).set(u,{etag:(a=i.headers)==null?void 0:a.etag,lastModified:(l=i.headers)==null?void 0:l.date}),i.data}catch(i){if(U(i))return;if(Y(i))return{};const c=`[RepositoryDetails] fact extraction failed with: ${M(i)}. Request parameters: ${JSON.stringify(m)}`;S(i,c),te(this,A).error(c);return}}getDataSchema(e){return JSON.stringify(mt)}};A=new WeakMap,T=new WeakMap,_t(re,"factory",({logger:t,cache:e})=>{const r=new re(t,e);return{predicate:s=>s.type==="RepositoryDetails",extractor:r}});let dt=re;var yt="Language",bt="Language",ft="object",xt={type:"integer"},vt={title:yt,description:bt,type:ft,additionalProperties:xt},wt=Object.defineProperty,Tt=(t,e,r)=>e in t?wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wt=(t,e,r)=>(Tt(t,typeof e!="symbol"?e+"":e,r),r),We=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},se=(t,e,r)=>(We(t,e,"read from private field"),r?r.call(t):e.get(t)),Ee=(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)},He=(t,e,r,s)=>(We(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),j,W;const ie=class{constructor(e,r){Ee(this,j,void 0),Ee(this,W,void 0),He(this,j,e),He(this,W,r)}async extract(e,r,s,o){var a,l;const u=`github:repository_languages:${r.owner}:${r.name}`,g=o?void 0:await J(se(this,W),u),m={owner:r.owner,repo:r.name,headers:g};try{const i=await s.rest.repos.listLanguages(m);return await se(this,W).set(u,{etag:(a=i.headers)==null?void 0:a.etag,lastModified:(l=i.headers)==null?void 0:l.date}),i.data}catch(i){if(U(i))return;if(Y(i))return{};const c=`[RepositoryLanguages] fact extraction failed with: ${M(i)}. Request parameters: ${JSON.stringify(m)}`;S(i,c),se(this,j).error(c);return}}getDataSchema(e){return JSON.stringify(vt)}};j=new WeakMap,W=new WeakMap,Wt(ie,"factory",({logger:t,cache:e})=>{const r=new ie(t,e);return{predicate:s=>s.type==="RepositoryLanguages",extractor:r}});let Et=ie;var oe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},B=(t,e,r)=>(oe(t,e,"read from private field"),r?r.call(t):e.get(t)),C=(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)},ae=(t,e,r,s)=>(oe(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Ht=(t,e,r)=>(oe(t,e,"access private method"),r),L,E,D,le,qe;const qt=class Pe{constructor(e){C(this,le),C(this,L,void 0),C(this,E,{}),C(this,D,void 0),ae(this,D,e)}static create(e){return new Pe(e)}getConfig(){return B(this,L)}setConfig(e){ae(this,L,e),ae(this,E,Ht(this,le,qe).call(this,e))}getExtractorConfig(e){return B(this,E)[e]}getExtractorConfigs(){return Object.values(B(this,E))}};L=new WeakMap,E=new WeakMap,D=new WeakMap,le=new WeakSet,qe=function(t){const e=de.safeParse(t);if(!e.success)throw B(this,D).error("Invalid GithubFactCollector config."),new Ae.InputError(e.error.message);return n.buildExtractorConfigMap(e.data)};let kt=qt;var Rt=Object.defineProperty,Mt=(t,e,r)=>e in t?Rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,N=(t,e,r)=>(Mt(t,typeof e!="symbol"?e+"":e,r),r),pe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},p=(t,e,r)=>(pe(t,e,"read from private field"),r?r.call(t):e.get(t)),x=(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)},H=(t,e,r,s)=>(pe(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),St=(t,e,r)=>(pe(t,e,"access private method"),r),_,q,$,k,h,ne,ke;const Re=class ue{constructor(e,r,s){x(this,ne),x(this,_,void 0),x(this,q,void 0),x(this,$,void 0),x(this,k,void 0),x(this,h,void 0),N(this,"id",ue.ID),N(this,"name","Github"),N(this,"description","Collects facts about your Github repositories."),H(this,_,r.child({target:this.id})),H(this,q,ce.ScmIntegrations.fromConfig(e)),H(this,$,ce.DefaultGithubCredentialsProvider.fromIntegrations(p(this,q))),H(this,k,it.create({logger:p(this,_),cache:s.getClient(),branchHelper:at.create(p(this,_),s.getClient({defaultTtl:60*60*1e3})),factories:[Qe.factory,dt.factory,Et.factory]})),H(this,h,kt.create(p(this,_)))}static create(e,r,s){return new ue(e,r,s)}async collect(e,r){const s=St(this,ne,ke).call(this,r);return Promise.all(e.filter(o=>n.isScmEntity(o)).map(async o=>{const a=Ie.stringifyEntityRef(o),l=n.getEntityScmUrl(o),u=je.default(l),g=await this.getOctokit(l);return g?Promise.all(s.map(async m=>{var i;const c=n.getFactRef(this.id,m),d=await p(this,k).extract(m,u,g,!!((i=r==null?void 0:r.refresh)!=null&&i.includes(c))).catch(K=>{if(p(this,_).error(`Failed to collect ${c} fact data for ${a} entity: ${K}`),K instanceof Z.RateLimitError)throw K});if(d!==void 0)return n.buildFact(a,c,d)})):Promise.resolve()})).then(o=>o.flat().filter(a=>!!a))}async getOctokit(e){try{const{token:r}=await p(this,$).getCredentials({url:e}),s=p(this,q).github.byUrl(e);return new Oe.Octokit({auth:r,baseUrl:s==null?void 0:s.config.apiBaseUrl})}catch(r){p(this,_).warn(`Skipping Github fact collection for url ${e}: ${r}`);return}}async getCollectionConfigs(){return n.buildCollectionConfigs(this.id,p(this,h).getExtractorConfigs())}async getFactNames(){return p(this,h).getExtractorConfigs().map(e=>e.factName)}async getDataSchema(e){const r=n.parseFactRef(e,{defaultSource:this.id,defaultScope:n.DEFAULT_SCOPE}),s=p(this,h).getExtractorConfigs().find(o=>{const a=n.parseFactRef(n.getFactRef(this.id,o));return r.source===a.source&&r.name===a.name});if(s)return p(this,k).getDataSchema(s)}async getConfig(){return p(this,h).getConfig()}async setConfig(e){p(this,h).setConfig(e)}async getConfigSchema(){return JSON.stringify(Be.default(de))}};_=new WeakMap,q=new WeakMap,$=new WeakMap,k=new WeakMap,h=new WeakMap,ne=new WeakSet,ke=function(t){return t!=null&&t.factRefs?p(this,h).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,h).getExtractorConfigs()},N(Re,"ID","github");let Me=Re;const Pt=R.createBackendModule({pluginId:"soundcheck",moduleId:"github",register(t){t.registerInit({deps:{cache:R.coreServices.cache,config:R.coreServices.rootConfig,logger:R.coreServices.logger,soundcheck:Z.factCollectionExtensionPoint},async init({cache:e,config:r,logger:s,soundcheck:o}){o.addFactCollector(Me.create(r,ge.loggerToWinstonLogger(s),ge.cacheToPluginCacheManager(e)))}})}});exports.GithubFactCollector=Me,exports.default=Pt;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Ge=require("@backstage/catalog-model"),me=require("@backstage/integration"),ze=require("@octokit/rest"),n=require("@spotify/backstage-plugin-soundcheck-common"),Z=require("@spotify/backstage-plugin-soundcheck-node"),Ae=require("git-url-parse"),je=require("zod-to-json-schema"),ge=require("@octokit/request-error"),y=require("zod"),he=require("@backstage/errors"),_e=require("@backstage/backend-common"),S=require("@backstage/backend-plugin-api");function de(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Be=de(Ae),Ce=de(je);function P(t){return t instanceof ge.RequestError?t.response?`${t.name} ${t.response.status}: ${JSON.stringify(t.response.data)}`:`${t.name} ${t.status}: ${t.message}`:JSON.stringify(t)}function Le(t){var e,r;return t instanceof ge.RequestError&&(t.status===429||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 U(t){return"status"in t&&t.status===304}function Y(t){return"status"in t&&t.status===404}function I(t,e){var r;if(Le(t)){const s=(r=t.response)==null?void 0:r.headers["retry-after"];throw new Z.RateLimitError(e,t,s?parseInt(s.toString(),10)*1e3:60*1e3)}}var De="Branch Protection",Ne="Branch Protection",Ke="object",$e={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"}}}},Ze={title:De,description:Ne,type:Ke,properties:$e};const J=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};function Q(t){if(Array.isArray(t))return t.map(Q);if(typeof t=="object"&&t!==null){const e={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];e[r]=Q(s)}return e}return t}var Ue=Object.defineProperty,Ye=(t,e,r)=>e in t?Ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Je=(t,e,r)=>(Ye(t,typeof e!="symbol"?e+"":e,r),r),F=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},v=(t,e,r)=>(F(t,e,"read from private field"),r?r.call(t):e.get(t)),O=(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)},V=(t,e,r,s)=>(F(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Qe=(t,e,r)=>(F(t,e,"access private method"),r),G,b,z,X,ye;const ee=class{constructor(e,r,s){O(this,X),O(this,G,void 0),O(this,b,void 0),O(this,z,void 0),V(this,G,e),V(this,b,r),V(this,z,s)}async extract(e,r,s,o){var a,l;const u=`github:branch_protections:${r.owner}:${r.name}`,g=o?void 0:await J(v(this,b),u),m={owner:r.owner,repo:r.name,branch:await Qe(this,X,ye).call(this,e,r,s),headers:g};try{const i=await s.rest.repos.getBranchProtection(m);return await v(this,b).set(u,{etag:(a=i.headers)==null?void 0:a.etag,lastModified:(l=i.headers)==null?void 0:l.date,data:i.data}),i.data}catch(i){if(U(i)){const d=await v(this,b).get(u);return!d||!("data"in d)?void 0:d.data}if(Y(i))return{};const c=`[BranchProtections] fact extraction failed with: ${P(i)}. Request parameters: ${JSON.stringify(m)}`;I(i,c),v(this,G).error(c);return}}getDataSchema(e){return JSON.stringify(Ze)}};G=new WeakMap,b=new WeakMap,z=new WeakMap,X=new WeakSet,ye=async function(t,e,r){return t.branch?t.branch:v(this,z).getDefaultBranch(e,r)},Je(ee,"factory",({logger:t,cache:e,branchHelper:r})=>{const s=new ee(t,e,r);return{predicate:o=>o.type==="BranchProtections",extractor:s}});let Fe=ee;const Ve=n.BaseFactExtractorSchema.merge(y.z.strictObject({type:y.z.literal("BranchProtections")})).strict(),Xe=n.BaseFactExtractorSchema.merge(y.z.strictObject({type:y.z.literal("RepositoryDetails")})).strict(),et=n.BaseFactExtractorSchema.merge(y.z.strictObject({type:y.z.literal("RepositoryLanguages")})).strict(),tt=Ve.or(Xe).or(et),be=n.buildFactCollectorSchema(tt);var rt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},A=(t,e,r)=>(rt(t,e,"read from private field"),r?r.call(t):e.get(t)),st=(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)},f;function fe(t){return`Extractor with type '${t}' is not allowed. You may need to update collectors configuration at 'soundcheck.collectors.github'`}class it{constructor(){st(this,f,[])}register(e){A(this,f).push(e)}async extract(e,r,s,o){for(const{predicate:a,extractor:l}of A(this,f))if(a(e))return l.extract(e,r,s,o);throw new Error(fe(e.type))}getDataSchema(e){for(const{predicate:r,extractor:s}of A(this,f))if(r(e))return s.getDataSchema(e);throw new Error(fe(e.type))}toString(){return`predicateMux{extractors=${A(this,f).map(e=>e.extractor).join(",")}`}}f=new WeakMap;class ot{static create(e){const{logger:r,cache:s,branchHelper:o,factories:a}=e,l=new it;for(const u of a!=null?a:[]){const g=u({logger:r,cache:s,branchHelper:o});l.register(g)}return l}}var xe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},te=(t,e,r)=>(xe(t,e,"read from private field"),r?r.call(t):e.get(t)),ve=(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)},we=(t,e,r,s)=>(xe(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),j,w;const at=class Ie{constructor(e,r){ve(this,j,void 0),ve(this,w,void 0),we(this,j,e),we(this,w,r)}static create(e,r){return new Ie(e,r)}async getDefaultBranch(e,r){let s=await te(this,w).get(e.full_name);if(s!==void 0)return s;const o={owner:e.owner,repo:e.name};try{s=(await r.rest.repos.get(o)).data.default_branch,await te(this,w).set(e.full_name,s)}catch(a){e.ref?s=e.ref:s="main";const l=`Failed to get default branch name with: ${P(a)}. Request parameters: ${JSON.stringify(o)}. Falling back to using [${s}] as default branch`;I(a,l),te(this,j).error(l)}return s}};j=new WeakMap,w=new WeakMap;let lt=at;var pt="Full Repository",nt="Full Repository",ut="object",ct={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"]}}}}}},mt=["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"],gt={title:pt,description:nt,type:ut,properties:ct,required:mt},ht=Object.defineProperty,_t=(t,e,r)=>e in t?ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dt=(t,e,r)=>(_t(t,typeof e!="symbol"?e+"":e,r),r),Te=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},re=(t,e,r)=>(Te(t,e,"read from private field"),r?r.call(t):e.get(t)),We=(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)},Ee=(t,e,r,s)=>(Te(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),B,T;const se=class{constructor(e,r){We(this,B,void 0),We(this,T,void 0),Ee(this,B,e),Ee(this,T,r)}async extract(e,r,s,o){var a,l;const u=`github:repository_details:${r.owner}:${r.name}`,g=o?void 0:await J(re(this,T),u),m={owner:r.owner,repo:r.name,headers:g};try{const i=await s.rest.repos.get(m);return await re(this,T).set(u,{etag:(a=i.headers)==null?void 0:a.etag,lastModified:(l=i.headers)==null?void 0:l.date}),{...i.data,custom_properties:Q(i.data.custom_properties)}}catch(i){if(U(i))return;if(Y(i))return{};const c=`[RepositoryDetails] fact extraction failed with: ${P(i)}. Request parameters: ${JSON.stringify(m)}`;I(i,c),re(this,B).error(c);return}}getDataSchema(e){return JSON.stringify(gt)}};B=new WeakMap,T=new WeakMap,dt(se,"factory",({logger:t,cache:e})=>{const r=new se(t,e);return{predicate:s=>s.type==="RepositoryDetails",extractor:r}});let yt=se;var bt="Language",ft="Language",xt="object",vt={type:"integer"},wt={title:bt,description:ft,type:xt,additionalProperties:vt},Tt=Object.defineProperty,Wt=(t,e,r)=>e in t?Tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Et=(t,e,r)=>(Wt(t,typeof e!="symbol"?e+"":e,r),r),He=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},ie=(t,e,r)=>(He(t,e,"read from private field"),r?r.call(t):e.get(t)),qe=(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)},ke=(t,e,r,s)=>(He(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),C,W;const oe=class{constructor(e,r){qe(this,C,void 0),qe(this,W,void 0),ke(this,C,e),ke(this,W,r)}async extract(e,r,s,o){var a,l;const u=`github:repository_languages:${r.owner}:${r.name}`,g=o?void 0:await J(ie(this,W),u),m={owner:r.owner,repo:r.name,headers:g};try{const i=await s.rest.repos.listLanguages(m);return await ie(this,W).set(u,{etag:(a=i.headers)==null?void 0:a.etag,lastModified:(l=i.headers)==null?void 0:l.date}),i.data}catch(i){if(U(i))return;if(Y(i))return{};const c=`[RepositoryLanguages] fact extraction failed with: ${P(i)}. Request parameters: ${JSON.stringify(m)}`;I(i,c),ie(this,C).error(c);return}}getDataSchema(e){return JSON.stringify(wt)}};C=new WeakMap,W=new WeakMap,Et(oe,"factory",({logger:t,cache:e})=>{const r=new oe(t,e);return{predicate:s=>s.type==="RepositoryLanguages",extractor:r}});let Ht=oe;var ae=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},E=(t,e,r)=>(ae(t,e,"read from private field"),r?r.call(t):e.get(t)),L=(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)},le=(t,e,r,s)=>(ae(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),qt=(t,e,r)=>(ae(t,e,"access private method"),r),D,H,q,pe,Re;const kt=class Oe{constructor(e){L(this,pe),L(this,D,void 0),L(this,H,{}),L(this,q,void 0),le(this,q,e)}static create(e){return new Oe(e)}getConfig(){return E(this,D)}setConfig(e){le(this,D,e),le(this,H,qt(this,pe,Re).call(this,e))}getExtractorConfig(e){return E(this,H)[e]}getExtractorConfigs(){return Object.values(E(this,H))}};D=new WeakMap,H=new WeakMap,q=new WeakMap,pe=new WeakSet,Re=function(t){const e=be.safeParse(t);if(!e.success)throw E(this,q).error("Invalid GithubFactCollector config."),new he.InputError(e.error.message);if(e.data.hasOwnProperty("url"))throw E(this,q).error("Invalid GithubFactCollector config, the GitHub collector does not yet support URL references."),new he.InputError("Invalid GithubFactCollector config, the GitHub collector does not yet support URL references.");return n.buildExtractorConfigMap(e.data)};let Rt=kt;var Mt=Object.defineProperty,St=(t,e,r)=>e in t?Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,N=(t,e,r)=>(St(t,typeof e!="symbol"?e+"":e,r),r),ne=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},p=(t,e,r)=>(ne(t,e,"read from private field"),r?r.call(t):e.get(t)),x=(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)},k=(t,e,r,s)=>(ne(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Pt=(t,e,r)=>(ne(t,e,"access private method"),r),_,R,K,M,h,ue,Me;const Se=class ce{constructor(e,r,s){x(this,ue),x(this,_,void 0),x(this,R,void 0),x(this,K,void 0),x(this,M,void 0),x(this,h,void 0),N(this,"id",ce.ID),N(this,"name","Github"),N(this,"description","Collects facts about your Github repositories."),k(this,_,r.child({target:this.id})),k(this,R,me.ScmIntegrations.fromConfig(e)),k(this,K,me.DefaultGithubCredentialsProvider.fromIntegrations(p(this,R))),k(this,M,ot.create({logger:p(this,_),cache:s.getClient(),branchHelper:lt.create(p(this,_),s.getClient({defaultTtl:60*60*1e3})),factories:[Fe.factory,yt.factory,Ht.factory]})),k(this,h,Rt.create(p(this,_)))}static create(e,r,s){return new ce(e,r,s)}async collect(e,r){const s=Pt(this,ue,Me).call(this,r);return Promise.all(e.filter(o=>n.isScmEntity(o)).map(async o=>{const a=Ge.stringifyEntityRef(o),l=n.getEntityScmUrl(o),u=Be.default(l),g=await this.getOctokit(l);return g?Promise.all(s.map(async m=>{var i;const c=n.getFactRef(this.id,m),d=await p(this,M).extract(m,u,g,!!((i=r==null?void 0:r.refresh)!=null&&i.includes(c))).catch($=>{if(p(this,_).error(`Failed to collect ${c} fact data for ${a} entity: ${$}`),$ instanceof Z.RateLimitError)throw $});if(d!==void 0)return n.buildFact(a,c,d)})):Promise.resolve()})).then(o=>o.flat().filter(a=>!!a))}async getOctokit(e){try{const{token:r}=await p(this,K).getCredentials({url:e}),s=p(this,R).github.byUrl(e);return new ze.Octokit({auth:r,baseUrl:s==null?void 0:s.config.apiBaseUrl})}catch(r){p(this,_).warn(`Skipping Github fact collection for url ${e}: ${r}`);return}}async getCollectionConfigs(){return n.buildCollectionConfigs(this.id,p(this,h).getExtractorConfigs())}async getFactNames(){return p(this,h).getExtractorConfigs().map(e=>e.factName)}async getDataSchema(e){const r=n.parseFactRef(e,{defaultSource:this.id,defaultScope:n.DEFAULT_SCOPE}),s=p(this,h).getExtractorConfigs().find(o=>{const a=n.parseFactRef(n.getFactRef(this.id,o));return r.source===a.source&&r.name===a.name});if(s)return p(this,M).getDataSchema(s)}async getConfig(){return p(this,h).getConfig()}async setConfig(e){p(this,h).setConfig(e)}async getConfigSchema(){return JSON.stringify(Ce.default(be))}};_=new WeakMap,R=new WeakMap,K=new WeakMap,M=new WeakMap,h=new WeakMap,ue=new WeakSet,Me=function(t){return t!=null&&t.factRefs?p(this,h).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,h).getExtractorConfigs()},N(Se,"ID","github");let Pe=Se;const It=S.createBackendModule({pluginId:"soundcheck",moduleId:"github",register(t){t.registerInit({deps:{cache:S.coreServices.cache,config:S.coreServices.rootConfig,logger:S.coreServices.logger,soundcheck:Z.factCollectionExtensionPoint},async init({cache:e,config:r,logger:s,soundcheck:o}){o.addFactCollector(Pe.create(r,_e.loggerToWinstonLogger(s),_e.cacheToPluginCacheManager(e)))}})}});exports.GithubFactCollector=Pe,exports.default=It;
2
2
  //# sourceMappingURL=index.cjs.js.map