Workflow to greet new contributors. Mainly using First Interaction Action, with some opinionated defaults.
- On issue creation, a comment is added to the issue.
- On first contribution, a comment is added to the pull request.
contents:readissues:writepull-requests:write
name: Greetings
on:
issues:
types:
- opened
pull_request:
types:
- opened
branches:
- main
permissions: {}
jobs:
greetings:
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
permissions: {}
secrets:
# Token for the repository.
# See https://github.com/actions/first-interaction#usage.
# Defaults to the GITHUB_TOKEN secret.
github-token: ""
with:
# JSON array of runner(s) to use.
# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job.
#
# Default: `["ubuntu-latest"]`
runs-on: '["ubuntu-latest"]'
# Comment to post on an individual's first issue.
# See https://github.com/actions/first-interaction#usage.
#
# Default: `Hi, thank for reporting an issue, we will check it out very soon`
issue_message: Hi, thank for reporting an issue, we will check it out very soon
# Comment to post on an individual's first pull request.
# See https://github.com/actions/first-interaction#usage.
#
# Default: `Hi, thank you for creating your PR, we will check it out very soon`
pr_message: Hi, thank you for creating your PR, we will check it out very soon| Input | Description | Required | Type | Default |
|---|---|---|---|---|
runs-on |
JSON array of runner(s) to use. | false | string | ["ubuntu-latest"] |
| See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job. | ||||
issue_message |
Comment to post on an individual's first issue. | false | string | Hi, thank for reporting an issue, we will check it out very soon |
| See https://github.com/actions/first-interaction#usage. | ||||
pr_message |
Comment to post on an individual's first pull request. | false | string | Hi, thank you for creating your PR, we will check it out very soon |
| See https://github.com/actions/first-interaction#usage. |
| Secret | Description | Required |
|---|---|---|
github-token |
Token for the repository. | false |
| See https://github.com/actions/first-interaction#usage. | ||
| Defaults to the GITHUB_TOKEN secret. |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2026 hoverkraft-tech
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.