Skip to content

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

License

Notifications You must be signed in to change notification settings

bartick/custom-interactions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published