An open API service indexing awesome lists of open source software.

https://github.com/vsoch/post-merge-message

A GitHub action to post a message to the user after a pull request is merged
https://github.com/vsoch/post-merge-message

github-action under-development

Last synced: about 1 year ago
JSON representation

A GitHub action to post a message to the user after a pull request is merged

Awesome Lists containing this project

README

          

# Post Merge Message

This is a simple action to post a message to a pull request after merge. As
an example implementation, it posts a message read in from a markdown file
in a repository to give a user a badge for participation.

## Usage

```
workflow "Post Merge Message" {
on = "pull_request"
resolves = ["post message"]
}

action "post message" {
uses = "vsoch/post-merge-message@master"
secrets = ["GITHUB_TOKEN"]
env = {
POST_MESSAGE = "Thanks for your participation!"
}
}
```

If you want the action to read the message from a file in the repository,
provide it's relative path as the POST_MESSAGE:

```
workflow "Post Merge Message" {
on = "pull_request"
resolves = ["post message"]
}

action "post message" {
uses = "vsoch/post-merge-message@master"
secrets = ["GITHUB_TOKEN"]
env = {
POST_MESSAGE = ".circleci/message.txt"
}
}
```

That's it!