Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
NotificationsYou must be signed in to change notification settings

github-developer/using-the-github-api-in-your-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Note: This repository is not maintained. For more recent guides about how to build GitHub Apps, see "About writing code for a GitHub App."

This is an example GitHub App that adds a label to all new issues opened in a repository. You can follow the archived "Using the GitHub API in your app" guide to learn how to build the app code inserver.rb.

This project listens for webhook events and uses the Octokit.rb library to make REST API calls. This example project consists of two different servers:

  • template_server.rb (GitHub App template code)
  • server.rb (completed project)

To learn how to set up a template GitHub App, follow the archived "Setting up your development environment" guide.

Install

To run the code, make sure you haveBundler installed; then enterbundle install on the command line.

Set environment variables

  1. Create a copy of the.env-example file called.env.
  2. Add your GitHub App's private key, app ID, and webhook secret to the.env file.

Run the server

  1. Runruby template_server.rb orruby server.rb on the command line.
  2. View the default Sinatra app atlocalhost:3000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6

Languages


[8]ページ先頭

©2009-2025 Movatter.jp