Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 3.92 KB

greetings.md

File metadata and controls

79 lines (63 loc) · 3.92 KB

GitHub Reusable Workflow: Greetings

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.
name: Greetings

on:
  issues:
    types: [opened]
  pull_request_target:
    branches: [main]

permissions:
  contents: read
  issues: write
  pull-requests: write

jobs:
  greetings:
    uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@0.14.0
    secrets:
      # Token for the repository.
      # See https://github.com/actions/first-interaction#usage
      # Default GITHUB_TOKEN
      github-token: ""

    # Optional customizations.
    with:
      # 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: ""
      # 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: ""
Secret Description Default Required
github-token Token for the repository. See https://github.com/actions/first-interaction#usage GITHUB_TOKEN false
Input Description Default Required
runs-on Json array of runner(s) to use. See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job ["ubuntu-latest"] false
issue-message Comment to post on an individual's first issue. See https://github.com/actions/first-interaction#usage Hi, thank for reporting an issue, we will check it out very soon false
issue-message Comment to post on an individual's first pull request. See https://github.com/actions/first-interaction#usage Hi, thank you for creating your PR, we will check it out very soon false