GitHub

Overview

Connect GitHub to Lumigo to identify suspect commits that are likely the cause of issues. Currently, this option is available only for Serverless Framework.

Get Started

  1. Install the serverless-plugin-git-variables plugin.
  2. Add to your Serverless.yml file the version control software organization variable.
provider:
  environment:
    # Copy your GitHub organization from the repository URL address
    # GitHub organization for example is: "https://github.com/lumigo-io"
    GIT_ORGANIZATION: **GitHub organization**
functions:
  myFunction:
    environment:ֿ
      # Copy your GitHub organization from the repository URL address
      # GitHub organization for example is: "https://github.com/lumigo-io"
      GIT_ORGANIZATION: **GitHub organization**
📘

Don't want to use the "serverless-plugin-git-variables"?

All you need to do is add two more variables:

  • GIT_COMMIT_LONG - A hash value containing the commit Lumigo wants to point to (you can use the "git rev-parse HEAD" command).
  • GIT_REPOSITORY - Name of the repository as it appears in Github.