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
- Host: GitHub
- URL: https://github.com/vsoch/post-merge-message
- Owner: vsoch
- License: mit
- Created: 2019-05-01T17:24:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-01T17:25:49.000Z (about 7 years ago)
- Last Synced: 2025-01-28T00:22:35.763Z (over 1 year ago)
- Topics: github-action, under-development
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!