Giter Club home page Giter Club logo

apps.github22's Introduction

GitHub Integration for Rocket.Chat

Banner (1)

Untitled (70 ร— 36in) (70 ร— 20in) (1)

The GitHub Rocket.Chat App provides a seamless integration between GitHub and Rocket.Chat and improves collaboration between developers. The application allows users to search and share Issues and Pull Request, Subscribe to Repository Events, create New Issues, Review and Merge Pull Requests and do much more right from Rocket.Chat.

๐Ÿš€ Features ๐Ÿš€

  • Quick and Easy Setup
  • Login to GitHub with one click using built-in OAth2 mechanism
  • Subscribe to Repository Events and get notified about new issues, pull requests, code pushes etc
  • Review and Merge Pull Requests right from Rocket.Chat Channels
  • Create new Issues from Rocket.Chat
  • Search Issues and Pull Request using extensive filters and share them on Rocket.Chat

๐Ÿ’ก Usage ๐Ÿ’ก

  • See Helper Message / Command List -> /github help
  • The app can be accessed with any of the slash commands /gh or /github
  • Login to GitHub -> /github login
  • Logout from GitHub -> /github logout
  • View your GitHub Profile and Issues -> /github me
  • View/Add/Delete/Update Repository Subscriptions -> /github subscribe
  • Subscribe to all repository events -> /github Username/RepositoryName subscribe
  • Unsubscribe to all repository events -> /github Username/RepositoryName unsubscribe
  • Add New Issues to GitHub Repository -> /github issue
  • Search Issues and Pull Request -> /github search
  • Assign and Share GitHub issues -> /github issues
  • Review a Pull Request -> /github Username/RepositoryName pulls pullNumber
  • See Interactive Button interface to fetch repository data -> /github Username/RepositoryName
  • Get details of a Repository -> /github Username/RepositoryName repo
  • Get Issues of a Repository -> /github Username/RepositoryName issues
  • Get Contributors of a Repository -> /github Username/RepositoryName contributors
  • Get Recent Pull Request of a Repository -> /github Username/RepositoryName pulls

๐Ÿ–ฅ๏ธ Quick Setup ๐Ÿ–ฅ๏ธ

  1. Rocket.Chat Apps Run on a Rocket.Chat server. If you dont have a server setup, please go through this setup and setup a development environment and setup you server
  2. To start with development on Rocket.Chat Apps, you need to install the Rocket.Chat Apps Engline CLI. Enter the following commands :
  3.   npm install -g @rocket.chat/apps-cli
    

    Check of the CLI has been installed

    rc-apps -v
    # @rocket.chat/apps-cli/1.4.0 darwin-x64 node-v10.15.3
    
  4. Clone the GitHub Repository
  5.    git clone https://github.com/RocketChat/Apps.Github22
    
  6. Enter the App.Github22 directory and install dependecies
  7.   cd Apps.Github22
      cd github
      npm install
    
  8. In order to install Rocket.Chat Apps on your development server, the server must be in development mode. Enable Apps development mode by navigating to Administration > General > Apps and click on the True radio button over the Enable development mode..
  9. Build and Upload your application by running the following inside the apps directory (/App.Github22/github)
  10. rc-apps deploy --url http://localhost:3000 --username <username> --password <password>
    

    Where: http://localhost:3000 is your local server URL (if you are running in another port, change the 3000 to the appropriate port). username is the username of your admin user. password is the password of your admin user. If you want to update the app deployed in your Rocket.Chat instance after making changes to it, you can run:

    rc-apps deploy --url http://localhost:3000 --username user_username --password user_password --update
    

The Application is now installed on the server. You can verify this by checking the installed applications from the administration panel. Enter /github or /github help in the message input box of any channel on the server to know about different features and how to trigger them using different slash commands.

๐Ÿ–ฅ๏ธ Application Setup ๐Ÿ–ฅ๏ธ

The GitHub App uses the GitHub OAth2 and you must setup a GitHub OAuth App to unlock the full potential of the GitHub App.

  1. The First Step is to setup a GitHub Oauth2 App. To setup the GitHub Oauth App Follow These Steps
  2. The callback URL must be set to the url of your server as shown below. (Note : There is an issue of trailing slashes with RocketChat OathClient, so incase the authentication does not work, go to Administration Panel and try removing the trailing '/' at the end of the hosted url. This issue might not occur as it will be fixed in the future.)
    OAuth Example
  3. Once the GitHub OAuth app is setup, open the GitHub Application Settings and enter the GitHub App OAuth Client Id and Client Secret over here.
    OAuth Setting Example

The users can login to GitHub by entering the slash command /github login and then clicking on the Login button.

Users are logged out after a week but the users can also logout at any time by entering /github logout.

๐Ÿš€ Contrubuting ๐Ÿš€

apps.github22's People

Contributors

henit-chobisa avatar nabhag8848 avatar ronlek avatar samad-yar-khan avatar sing-li avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.