LogoLogo
πŸ‡ΊπŸ‡Έ EN
πŸ‡ΊπŸ‡Έ EN
  • πŸ‘‹Welcome
  • Suport
    • ☁️How to Host
      • πŸ€–Bots
        • πŸ”ŒBot
        • 🧩VSCode Extension
        • ⌨️CLI
      • 🌎Website and APIs
        • πŸ”ŒBot
        • 🧩VSCode Extension
        • ⌨️CLI
    • ⌨️Languages
      • 🟨JavaScript
        • πŸ“„Create the package.json
      • 🐍Python
        • πŸ“„Create the requirements.txt
      • β˜•Java
      • πŸ’ŽRuby
        • πŸ“„Create the Gemfile
      • 🐿️Go
      • 🐘Php
      • πŸ¦€Rust
        • πŸ“„Create the Cargo.toml
    • ⛓️Integrations
      • 🌐Your Own Domain
      • πŸ™GitHub and GitLab
      • 🎧Lavalink
      • πŸ’ΎDatabase
        • MongoDB Atlas (mLab)
    • ❓Frequently Asked Questions (FAQ)
      • How to compress my files?
      • Discloud ModMail (Ticket)
      • How do I get my bot's ID?
      • What is the main file?
      • Configuring Puppeteer
      • How to report an offender?
      • Why can't I access my website?
      • Very Heavy BOT
    • βš’οΈCommands
      • How to get API token
      • How to integrate Github
    • 🀲Donations
  • configuration
    • βš™οΈdiscloud.config
      • πŸ“¦APT (Install Packages)
      • πŸ—οΈVERSION (Switch between Versions)
  • πŸ–₯️local environment
    • βš™οΈInstall
      • 🟨JavaScript (NodeJS)
      • 🐍Python
      • πŸ’ŽRuby
      • πŸ¦€Rust
  • API
    • πŸ“‘Using the API
    • πŸ”—Routes
  • About
    • 🎨Discloud Brand
      • Name origin
      • Visual Identity
  • πŸ”—Links
    • 🌎Website
    • πŸ“ŠDisCloud Status
  • πŸ“œLegal
    • πŸ“„Terms of Service (TOS)
Powered by GitBook
On this page
  • Requirements
  • How to Use?

Was this helpful?

Edit on GitHub
  1. Suport
  2. Commands

How to integrate Github

PreviousHow to get API tokenNextDonations

Last updated 11 months ago

Was this helpful?

Synchronize a git repository with your application for automatic commits.

Whenever a commit is sent to your application repository, the Discloud will update your application files automatically.

This feature is only available for paid plans.

It is required that your application is already hosted in the Discloud.

How to Use?

Enter the text channel #πŸ”Œγƒ»commands and type .git

Repository URL

Go into the DM of the DisCloud bot and paste the repository URL for your application.

It is important that access is for all repositories (especially if you want to enable synchronization for more than 1 application)

Permissions Configuration

Make sur to select the read-only Webhooks and Contents settings and generate your token

Webhook

Open your application repository and create a webhook

Configuring the Webhook

Make sure you change the content type to application/json

Requirements

Configure the Access Token ()

βš’οΈ
πŸ“
Open Github
Example of git logs in the DisCloud during a deployment
.git command in the commands channel
Pasting the URL of the repository
Setting up a new token with a name, expiration time, and access to the repositories
Adicionando um webhook