Git Product home page Git Product logo

govm's People

Contributors

arisnguyen215 avatar pnguyen215 avatar

govm's Issues

Add Release guideline

Version Releases

Semantic Versioning (SemVer): vMAJOR.MINOR.PATCH

Example:

  • v1.0.0
  • v1.0.1
  • v1.1.1

Pre-release versions: vMAJOR.MINOR.PATCH-<BETA/RC/SNAPSHOT>.<number>

Example:

  • v1.0.0-beta.1
  • v1.0.0-beta.2
  • v1.2.3-rc1
  • v1.2.3-SNAPSHOT

Post-release versions: vMAJOR.MINOR.PATCH-POST.<number>

Example:

  • v1.2.3-post.1
  • v1.2.3-post.2

Local versions: vMAJOR.MINOR.PATCH+LOCAL

Example:

  • v1.0.0+local
  • v1.1.0+local

Caret range versions: ^MAJOR.MINOR.PATCH

Example:

  • ^1.2.3 (similar >=1.2.3 < 2.0.0)

Tilde range versions: ~MAJOR.MINOR.PATCH

Example:

  • ~1.2.3 (similar >=1.2.3 <1.3.0)

Notes:

  • MAJOR: major version.
  • MINOR: Minor version, often adding new features.
  • PATCH: Patch version, typically fixing bugs.
  • SNAPSHOT: Indicates a version under development or in progress. It is often used to represent the latest state of the codebase and may include ongoing changes and features that are not yet finalized. This allows developers to work with the most recent developments in a project.

Add Slack Bot

Slack Portal

To obtain an authentication token (OAuth access token) for your Slack app, you'll need to create a Slack app and go through the OAuth 2.0 authorization process. Here are the steps to get an authentication token for your Slack app:

  1. Create a Slack App:

    • Go to the Slack API Developer Portal.
    • Click on the "Create New App" button.
    • Choose a name and select the Slack workspace where you want to install the app.
  2. Configure Your App:

    • After creating the app, you'll be taken to the app's settings page.
    • Under "Features" in the left sidebar, select "OAuth & Permissions."
  3. Set Redirect URLs:

    • In the "Redirect URLs" section, add the URLs where Slack should redirect users after they authorize your app. These are the URLs where your app will receive the authorization code and exchange it for an access token. You can use a localhost URL for testing purposes.
    • Save the changes.
  4. Scopes:

    • In the same "OAuth & Permissions" section, you'll find the "Scopes" section. Scopes define the permissions your app requires.
    • Add the necessary scopes for your app. For sending messages, you'll typically need at least the chat:write scope.
    • Save the changes.
  5. Install App to Workspace:

    • In the left sidebar, under "Settings," select "Basic Information."
    • Scroll down to the "Install your app to your workspace" section and click the "Install to Workspace" button.
    • Review and confirm the requested permissions.
  6. Get the OAuth Access Token:

    • After installation, you'll receive an OAuth access token. This token will allow your app to make authenticated requests to the Slack API on behalf of your workspace.
    • Copy and securely store this access token.

Now that you have the OAuth access token for your Slack app, you can use it in your Golang code for making authenticated API requests, as shown in the previous code examples. Make sure to keep this token confidential and don't share it publicly. You can typically store it as an environment variable or in a secure configuration file.


  1. https://api.slack.com/apps/A05SNJFKTBL/general?
  2. https://api.slack.com/methods/chat.postMessage#formatting
  3. https://app.slack.com/block-kit-builder/T05S828UV8X#%7B%22blocks%22:%5B%5D%7D

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.