https://github.com/davidtaing/thank-contribution
Fun Github Action that thanks a contributor after their pull request is merged
https://github.com/davidtaing/thank-contribution
actions node nodejs typescript
Last synced: 2 months ago
JSON representation
Fun Github Action that thanks a contributor after their pull request is merged
- Host: GitHub
- URL: https://github.com/davidtaing/thank-contribution
- Owner: davidtaing
- License: mit
- Created: 2023-02-06T11:03:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T00:35:15.000Z (over 3 years ago)
- Last Synced: 2026-03-16T09:32:25.768Z (3 months ago)
- Topics: actions, node, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 169 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thank-for-landing-pr-action
Fun GitHub Action that thanks a Contributor for Landing a Pull Request by leaving a comment.
## Permissions Required
`pull-requests`: write
## Inputs
| Name | Description | Required |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `repo-token` | The [`GITHUB_TOKEN` secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#about-the-github_token-secret) | **Yes** |
## Outputs
N/A
## Usage Example
```yml
name: "Thank Contribution"
on:
pull_request:
types: [closed]
jobs:
thank_for_landing:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
pull-requests: write
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
- name: Thank Contributor for Landing PRs
uses: davidtaing/thank-contribution@0.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
```