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

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

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 }}"
```