2019-08-07 10:27:30 -04:00
|
|
|
# First Interaction
|
2019-08-02 17:15:36 +00:00
|
|
|
|
2025-02-19 13:47:20 -05:00
|
|
|
[](https://github.com/super-linter/super-linter)
|
|
|
|
|

|
|
|
|
|
[](https://github.com/actions/first-interaction/actions/workflows/check-dist.yml)
|
|
|
|
|
[](https://github.com/actions/first-interaction/actions/workflows/codeql-analysis.yml)
|
|
|
|
|
[](./badges/coverage.svg)
|
|
|
|
|
|
|
|
|
|
An action for filtering pull requests (PRs) and issues from first-time
|
|
|
|
|
contributors.
|
|
|
|
|
|
2025-08-11 14:16:41 +01:00
|
|
|
## Breaking Changes in v3.0.0
|
|
|
|
|
|
|
|
|
|
Version 3.0.0 introduces breaking changes:
|
2025-08-11 14:18:00 +01:00
|
|
|
|
2025-08-11 14:18:42 +01:00
|
|
|
- If you're using a self-hosted runner, ensure it's on version
|
2025-08-11 14:18:00 +01:00
|
|
|
[v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) or later
|
2025-08-11 14:16:41 +01:00
|
|
|
|
2025-02-19 13:47:20 -05:00
|
|
|
When a first-time contributor opens a PR or issue, this action will add a
|
|
|
|
|
comment to the PR or issue with a message of your choice. This action is useful
|
|
|
|
|
for welcoming first-time contributors to your project and providing them with
|
|
|
|
|
information about how to contribute effectively.
|
2019-08-07 10:27:30 -04:00
|
|
|
|
2025-02-19 12:13:48 -05:00
|
|
|
## Usage
|
2019-08-07 10:27:30 -04:00
|
|
|
|
|
|
|
|
See [action.yml](action.yml)
|
|
|
|
|
|
|
|
|
|
```yaml
|
2020-12-22 17:20:57 -05:00
|
|
|
name: Greetings
|
|
|
|
|
|
2025-02-19 13:47:20 -05:00
|
|
|
on:
|
|
|
|
|
pull_request:
|
|
|
|
|
types:
|
|
|
|
|
- opened
|
|
|
|
|
issues:
|
|
|
|
|
types:
|
|
|
|
|
- opened
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
issues: write
|
|
|
|
|
pull-requests: write
|
2020-12-22 17:20:57 -05:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
greeting:
|
2025-02-19 13:47:20 -05:00
|
|
|
name: Greet First-Time Contributors
|
2020-12-22 17:20:57 -05:00
|
|
|
runs-on: ubuntu-latest
|
2025-02-19 13:47:20 -05:00
|
|
|
|
2020-12-22 17:20:57 -05:00
|
|
|
steps:
|
2025-08-11 14:16:41 +01:00
|
|
|
- uses: actions/first-interaction@v3
|
2025-02-19 13:47:20 -05:00
|
|
|
with:
|
2025-08-11 14:27:34 +01:00
|
|
|
issue-message: |
|
2025-02-19 13:47:20 -05:00
|
|
|
# Issue Message with Markdown
|
2019-08-07 10:27:30 -04:00
|
|
|
|
2025-02-19 13:47:20 -05:00
|
|
|
This is the message that will be displayed!
|
2025-08-11 14:28:06 +01:00
|
|
|
pr-message: |
|
2025-02-19 13:47:20 -05:00
|
|
|
# PR Message with Markdown
|
2019-08-07 10:27:30 -04:00
|
|
|
|
2025-02-19 13:47:20 -05:00
|
|
|
This is the message that will be displayed!
|
|
|
|
|
```
|