Giter Site home page Giter Site logo

brianmitchl / pr-chatter-action Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 1.0 333 KB

Add fun chatter to your Pull Requests

Home Page: https://github.com/marketplace/actions/pr-chatter

License: MIT License

TypeScript 100.00%
gif github-actions code-review pull-requests

pr-chatter-action's Introduction

pr-chatter-action

Intelligent GIF replies for Pull Request approvals and when changes are requested.

The action looks at the review body text and analyzes the sentiment of the text to influence the keyword used for finding a GIF.

This action is designed to be run on the pull_request_review event

on:
  pull_request_review:
    types: [submitted]

Inputs

TENOR_API_KEY

Required Key for the Tenor GIFs API

GITHUB_TOKEN

Optional GitHub Token for authentication

GitHub token used for posting comments on the PR. This defaults to using the built-in GitHub token for the repository and comments as the "github-actions" bot. You can set this as a personal access token (PAT) if you want to comment as another account.

approved-gif-keywords

Optional Comma separated string of keywords to randomly use for embedding PR approved GIFs

This defaults to 'amazing, approve, awesome, great work, good job, hooray, incredible, joy, looks good, nice, perfect, thumbs up, wonderful'

changes-requested-gif-keywords

Optional Comma separated string of keywords to randomly use for embedding PR changes requested GIFs

This defaults to 'try again, review, at least you tried, so close, dumpster fire, terrible, awful, disgusting, sad'

Usage

# run the action on the `pull_request_review` event
on:
  pull_request_review:
    types: [submitted]

# later in the job steps
- uses: BrianMitchL/pr-chatter-action@v1
  with:
    # required
    TENOR_API_KEY: ${{ secrets.TENOR_API_KEY }}
    # optional
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    # optional
    approved-gif-keywords: 'amazing, approve, awesome, great work, good job, hooray, incredible, joy, looks good, nice, perfect, thumbs up, wonderful'
    # optional
    changes-requested-gif-keywords: 'try again, review, at least you tried, so close, dumpster fire, terrible, awful, disgusting, sad'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.