{"id":15139610,"url":"https://github.com/probot/github-app","last_synced_at":"2025-09-29T08:31:31.042Z","repository":{"id":66150685,"uuid":"83222675","full_name":"probot/github-app","owner":"probot","description":"node module to handle authentication for the GitHub Apps API","archived":true,"fork":false,"pushed_at":"2019-09-13T17:15:00.000Z","size":62,"stargazers_count":51,"open_issues_count":6,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-29T19:09:20.655Z","etag":null,"topics":["github","github-api","github-app"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-26T16:18:41.000Z","updated_at":"2024-03-29T04:09:47.000Z","dependencies_parsed_at":"2023-03-10T23:40:38.131Z","dependency_job_id":null,"html_url":"https://github.com/probot/github-app","commit_stats":null,"previous_names":["bkeepers/github-integration"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fgithub-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fgithub-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fgithub-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fgithub-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probot","download_url":"https://codeload.github.com/probot/github-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234604478,"owners_count":18859164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-api","github-app"],"created_at":"2024-09-26T08:01:06.033Z","updated_at":"2025-09-29T08:31:30.710Z","avatar_url":"https://github.com/probot.png","language":"JavaScript","readme":"# DEPRECATED\n\nReplaced by [`@octokit/auth-app`](https://github.com/octokit/auth-app.js/)\n\n# GitHub Apps\n\nNodeJS module for building [GitHub Apps](https://developer.github.com/apps/).\n\n## Installation\n\n```\nnpm install --save github-app\n```\n\n## Usage\n\n```js\nconst createApp = require('github-app');\n\nconst app = createApp({\n  // Your app id\n  id: 987,\n  // The private key for your app, which can be downloaded from the\n  // app's settings: https://github.com/settings/apps\n  cert: require('fs').readFileSync('private-key.pem')\n});\n```\n\n### `asInstallation`\n\nAuthenticate [as an installation](https://developer.github.com/apps/building-integrations/setting-up-and-registering-github-apps/about-authentication-options-for-github-apps/#authenticating-as-an-installation), returning a [github API client](https://github.com/mikedeboer/node-github), which can be used to call any of the [APIs supported by GitHub Apps](https://developer.github.com/apps/building-integrations/setting-up-and-registering-github-apps/about-authentication-options-for-github-apps/#authenticating-as-an-installation):\n\n```js\n//Modify value according to getInstallations return(example in asApp section)\nvar installationId = 99999;\n\napp.asInstallation(installationId).then(github =\u003e {\n  github.issues.createComment({\n    owner: 'foo',\n    repo: 'bar',\n    number: 999,\n    body: 'hello world!'\n  });\n});\n```\n\n### `asApp`\n\nAuthenticate [as an app](https://developer.github.com/apps/building-integrations/setting-up-and-registering-github-apps/about-authentication-options-for-github-apps/#authenticating-as-a-github-app), also returning an instance of the GitHub API client.\n\n```js\napp.asApp().then(github =\u003e {\n  console.log(\"Installations:\")\n  github.apps.getInstallations({}).then(console.log);\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fgithub-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobot%2Fgithub-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fgithub-app/lists"}