gha-mjolnir

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

README

Mjolnir

Release Build Status Docker Build Status

Closes issues related to the merge of a pull request.

Useful:

  • to close multiple issues related to a pull request.
  • to close issues related to a pull request not based on the default branch (i.e. master). By example when a branch is related to version (e.g. v1.5, v2.0, ...)

Supported syntaxes

  • prefixes (case insensitive): close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved
  • issues references separators (can be mixed): (space), , (period)
  • prefix and issues references can be separated by: (space), : (colon), on both.

Examples:

Fixes #1,#2,#3
close #1, #2, #3
fix #1 #2 #3
resolve #1,#2 #3
Resolves: #1,#2,#3
closed : #1, #2, #3

Usage

workflow "Auto close issues" {
  on = "pull_request"
  resolves = ["mjolnir-issues"]
}

action "mjolnir-issues" {
  uses = "docker://ldez/gha-mjolnir"
  secrets = ["GITHUB_TOKEN"]
  args = ""
}

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