RocketChat / Apps.Github22

The ultimate AI-powered app extending Rocket.Chat for global developers collaborating on Github (2024 and beyond)
33 stars 39 forks source link
github github-api github-integration rocketchat rocketchat-app

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 🚀

💡 Usage 💡

Open Main Modal for Quick Access to Different Features

To open the main modal and access various features, use the command: /github.

Main Modal Features:

The app can be accessed with any of the following slash commands: /gh or /github.

Command List

🚀 Contributing 🚀

:desktop_computer: Quick Setup :desktop_computer:

Gitpod 🍊

Start developing and make changes to your code via a single click Anytime-Anywhere!

Open in Gitpod

Using Thrust for quickly setup your Rocket.Chat workspace & hot-reload for develping and deploying Github App, no need to worry about setting up any Rocket.Chat server before hand.

Manual 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 if 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 --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.

:desktop_computer: Application Setup :desktop_computer:

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.