https://github.com/umutphp/hacker-laws-action
An action to an add random hacker law as a comment to the pull request.
https://github.com/umutphp/hacker-laws-action
Last synced: 10 months ago
JSON representation
An action to an add random hacker law as a comment to the pull request.
- Host: GitHub
- URL: https://github.com/umutphp/hacker-laws-action
- Owner: umutphp
- License: gpl-3.0
- Created: 2020-07-25T16:23:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-26T23:29:42.000Z (over 5 years ago)
- Last Synced: 2024-09-16T23:18:19.616Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hacker Laws Action
An action to an add random hacker law (from [dwmkerr/hacker-laws](https://github.com/dwmkerr/hacker-laws) ) as a comment to the pull request.
A sample execution can be seen on this [PR](https://github.com/umutphp/hacker-laws-action/pull/1).
## Usage
Use the following YAML to create the action file under the `.github/workflows` directory.
```yaml
name: Hacker Laws Action
on:
pull_request:
types: [opened]
jobs:
hacker_laws_action:
runs-on: ubuntu-latest
name: Hacker Laws Action Job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Hacker Laws Action Step
env:
PR_URL: ${{ github.event.pull_request.comments_url }}
PR_SENDER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: umutphp/hacker-laws-action@v1
id: hacker_laws_action
```
## Contributing
Please feel free to contribute to the action.