All Projects → probot → github-app

probot / github-app

Licence: other
node module to handle authentication for the GitHub Apps API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to github-app

Mini Github
GitHub WeChat Mini Program
Stars: ✭ 1,216 (+2284.31%)
Mutual labels:  github-api, github-app
Github Timeline
View other users' timeline
Stars: ✭ 131 (+156.86%)
Mutual labels:  github-api, github-app
Probot Gpg
A GitHub App that enforces GPG signatures on pull requests (no longer maintained)
Stars: ✭ 13 (-74.51%)
Mutual labels:  github-api, github-app
Forkhub
GitHub client for Android based on the abandoned official app
Stars: ✭ 2,756 (+5303.92%)
Mutual labels:  github-api, github-app
git-issues
A better way to browse GitHub issues.
Stars: ✭ 25 (-50.98%)
Mutual labels:  github-api, github-app
Beefun Pro
Github client for iOS in Swift.
Stars: ✭ 172 (+237.25%)
Mutual labels:  github-api, github-app
Dart hub
A GitHub client written in Flutter.
Stars: ✭ 91 (+78.43%)
Mutual labels:  github-api, github-app
react-preview
a GitHub App built with probot that generates preview links for react based projects.
Stars: ✭ 14 (-72.55%)
Mutual labels:  github-api, github-app
gitbot
The most popular Discord dev toolkit with 400k+ users 🚀✨
Stars: ✭ 59 (+15.69%)
Mutual labels:  github-api, github-app
scalafmt-probot
🤖Github bot for checking code formatting with scalafmt
Stars: ✭ 15 (-70.59%)
Mutual labels:  github-api, github-app
octotui
🐙🐱🖥️ GitHub stats in your terminal
Stars: ✭ 202 (+296.08%)
Mutual labels:  github-api, github-app
go-github-app
Template for building GitHub Apps in Go.
Stars: ✭ 45 (-11.76%)
Mutual labels:  github-api, github-app
ezprofile
🚀 Create an automatic portfolio based on GitHub profile.
Stars: ✭ 344 (+574.51%)
Mutual labels:  github-api
Marketplace-App
Find Spelling errors in files within PRs
Stars: ✭ 47 (-7.84%)
Mutual labels:  github-app
Triton
GitHub notifications tracker for Telegram. Pushes GitHub notifications to Telegram.
Stars: ✭ 12 (-76.47%)
Mutual labels:  github-api
GithubClient
Github iOS Client based on Github REST V3 API and GraphQL V4 API
Stars: ✭ 42 (-17.65%)
Mutual labels:  github-api
journalist
App to write journal digitally. Simple as that.
Stars: ✭ 23 (-54.9%)
Mutual labels:  github-api
awesome-generator
Generate awesome list over Github API
Stars: ✭ 46 (-9.8%)
Mutual labels:  github-api
merge-me
A GitHub app that merges your pull requests once all required checks pass.
Stars: ✭ 19 (-62.75%)
Mutual labels:  github-app
actions
Collection of repetitive GitHub Actions
Stars: ✭ 12 (-76.47%)
Mutual labels:  github-api

DEPRECATED

Replaced by @octokit/auth-app

GitHub Apps

NodeJS module for building GitHub Apps.

Installation

npm install --save github-app

Usage

const createApp = require('github-app');

const app = createApp({
  // Your app id
  id: 987,
  // The private key for your app, which can be downloaded from the
  // app's settings: https://github.com/settings/apps
  cert: require('fs').readFileSync('private-key.pem')
});

asInstallation

Authenticate as an installation, returning a github API client, which can be used to call any of the APIs supported by GitHub Apps:

//Modify value according to getInstallations return(example in asApp section)
var installationId = 99999;

app.asInstallation(installationId).then(github => {
  github.issues.createComment({
    owner: 'foo',
    repo: 'bar',
    number: 999,
    body: 'hello world!'
  });
});

asApp

Authenticate as an app, also returning an instance of the GitHub API client.

app.asApp().then(github => {
  console.log("Installations:")
  github.apps.getInstallations({}).then(console.log);
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].