drone-github-pr-commenter

command module
v0.0.0-...-96b92ad Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 7 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

drone-github-pr-commenter

A Drone CI plugin, for more information: https://docs.drone.io/plugins/overview/

Posts a comment to an issue/PR in Github.

Docker hub: https://hub.docker.com/repository/docker/mtyurt/drone-github-pr-commenter

Usage

kind: pipeline
type: docker
name: Build site for PR

trigger:
  event: pull_request

- name: Add comment to PR
  image: mtyurt/drone-github-pr-commenter
  settings:
    github_token: .....
    comment: The branch is deployed successfully! 🚀
  • github_token: Some personal access token
  • comment: Comment body
  • issue_number: (optional) The issue/PR number to post for. If it is not provided, the PR build is running for is used.
Test usage without Drone CI

docker run --rm -it \
 -e PLUGIN_GITHUB_TOKEN=$GITHUB_TOKEN \
 -e PLUGIN_COMMENT='This branch is deployed successfully! 🚀' \
 -e DRONE_REPO_NAMESPACE=<ci-repo-owner> \
 -e DRONE_REPO_NAME=<ci-repo-name> \
mtyurt/drone-github-pr-commenter:latest

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