drone-github-commit-status

command module
v0.0.0-...-ed72b07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Build Status

Drone GitHub Commit Status

Send a custom commit status to a GitHub commit from Drone CI.

drone-github-commit-status

GitHub setup requirements:

  1. Create a github app
  2. Get App ID (github_app_id)
  3. Generate private key
  4. Save private key as a Drone secret named 'github_app_private_key'
  5. Install the GitHub App
  6. Get the GitHub App installation ID (github_installation_id). This can be found from the URL: https://github.com/settings/installations/{github_installation_id}

Drone config example:

---
kind: pipeline
type: docker
name: push

platform:
  os: linux
  arch: amd64

steps:
  - name: commit-status
    image: robbymilo/drone-github-commit-status:latest
    settings:
      github_installation_id: {github_installation_id}
      github_app_id: {github_app_id}
      github_app_private_key:
        from_secret: github_app_private_key
      commit_context: drone-github-commit-status
      commit_state: success
      commit_description: Hello World
      commit_target_url: https://github.com/robbymilo/drone-github-commit-status

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL