https://github.com/cedrichopf/drone-status
Drone CI Plugin for GitHub Status
https://github.com/cedrichopf/drone-status
continuous-integration drone-ci status
Last synced: 8 months ago
JSON representation
Drone CI Plugin for GitHub Status
- Host: GitHub
- URL: https://github.com/cedrichopf/drone-status
- Owner: cedrichopf
- License: mit
- Created: 2021-02-17T16:41:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T22:45:32.000Z (over 2 years ago)
- Last Synced: 2023-05-09T10:38:58.464Z (over 2 years ago)
- Topics: continuous-integration, drone-ci, status
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drone CI Plugin for GitHub Status
- [Drone CI Plugin for GitHub Status](#drone-ci-plugin-for-github-status)
- [Overview](#overview)
- [Usage](#usage)
- [Settings](#settings)
- [Environment Variables](#environment-variables)---
## Overview
This plugin creates/updates a GitHub status for a given repository and commit hash.
## Usage
```yaml
---
kind: pipeline
type: docker
name: github-statustrigger:
event:
- pull_requeststeps:
- name: create-status
image: cedrichopf/drone-status
settings:
api_token: 1234567890
state: success
context: drone-ci/status-plugin
description: Build successful
```## Settings
```yaml
settings:
api_token: 1234567890
state: success
context: drone-ci/status-plugin
description: Build successful
repo: cedrichopf/drone-status
commit: 9f11f66aa4a7338ced215fb212d16e12b0edce46
endpoint: https://github.enterprise.com
```All settings will be passed into the container using environment variables. A complete overview of the available
environment variables can be found in the table below.## Environment Variables
The following table contains an overview of the available environment variables to configure the application.
| Name | Description | Default Value |
| ------------------ | ------------------------------------------------------------- | ------------------------ |
| PLUGIN_API_TOKEN | Access token to interact with the GitHub API | `-` |
| PLUGIN_STATE | State of the status: `error`, `failure`, `pending`, `success` | `-` |
| PLUGIN_CONTEXT | Status context, e.g. `drone/status-plugin` | `-` |
| PLUGIN_DESCRIPTION | Status description, e.g. `Build is pending` | `-` |
| PLUGIN_REPO | Target repository to set the status | Pipeline repository |
| PLUGIN_COMMIT | Status' commit hash | Pipeline commit |
| PLUGIN_ENDPOINT | Endpoint of the GitHub instance (e.g. GitHub Enterprise) | `https://api.github.com` |