Skip to content
play-circle

GitHub Action

Custom Interaction

v1 Latest version

Custom Interaction

play-circle

Custom Interaction

A simple interactions library to help you create custom interactions for your github issues and pull requests

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Custom Interaction

uses: bartick/custom-interactions@v1

Learn more about this action in bartick/custom-interactions

Choose a version

Custom Interactions

codeql   Custom Interaction
 

Have you every wondered why just use github action reply for 1st interaction and not nth Interaction or upto nth interaction.
This action (custom-interactions) helps you achieve that goal. You can use it to create custom interactions for your github action for upto nth interaction.

Input

Name Description
token Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}
issue-message Comment to post on an individual''s issue
issue-number The number of interaction this action should be valid for.
issue-once true or false. This states if the interaction is on/upto nth interaction
pr-message Comment to post on an individual''s PR
pr-number The number of interaction this action should be valid for.
pr-once true or false. This states if the interaction is on/upto nth interaction

Example

name: Greetings

on: [pull_request, issues]

jobs:
  greeting:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
    - uses: bartick/custom-interactions@v1
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        issue-message: |
          Thank you for opening your first issue in our repository, one of our maintainers will get in touch with you soon.
        pr-message: |
          Thank you for opening your first pull request in our repository, one of our maintainers will get in touch with you soon.
        pr-once: false
        issue-once: false
        pr-number: 10
        issue-number: 10