๐ ๐ ๐ค
A GitHub Action that pings you on issues you opened when they get closed! โก
In your workflow:
workflow "Notify author when issue closed" {
on = "issues"
resolves = ["Notify author"]
}
action "Issue closed" {
uses = "actions/bin/filter@master"
args = ["action closed"]
}
action "Notify author" {
needs = ["Issue closed"]
uses = "github-developer/notify-issue-author.action@master"
secrets = ["GITHUB_TOKEN"]
}
You can use a custom template for the comment that gets added to a closed issue:
To do this, just specify your desired template using the --template
flag to args
:
action "Notify author" {
needs = ["Issue closed"]
uses = "github-developer/notify-issue-author.action@master"
args = ["--template", ":wave: hola @{{ author }}, @{{ actor }} closed your issue :sunglasses:"]
secrets = ["GITHUB_TOKEN"]
}
A couple of template variables are available:
author
: the GitHub username of the issue authoractor
: the Actor (could a user or a bot) name that closed the issue