Giter VIP home page Giter VIP logo

post-comment-action's Introduction

post-comment-action

Post a comment on an issue or pull request. The body of the comment can be passed or read from one or more files. If the body is empty then a comment wont be posted.

All options

List of input options

Input Description Default
repo-token PAT for GitHub API authentication ${{ github.token }}
issue-number The issue or pull request number
owner The repository owner
repo The repository name ${{ github.repository }}
content The body of the comment
path The path of the file containing the comment
header The comment header
footer The comment footer
skip-label Skips posting comment if label is present no comment

List of output options

Output Description
comment-id The comment ID
posted A boolean indicating whether a comment was posted

Detailed options

repo-token

Personal Access Token (PAT) that allows the stale workflow to authenticate and perform API calls to GitHub. Under the hood, it uses the @actions/github package.

Default value: ${{ github.token }}

issue-number

The issue or pull request number. If blank and the event is pull request it will use that.

owner

The repository owner. Defaults to current repository owner unless repo includes an owner.

repo

The repository name. Can also include the owner in the format {{ owner }}/{{ repo }}. Defaults to the current repository.

Default value: ${{ github.repository }}

content

The body of the comment. If blank and path is empty or file contents amount to being blank then no comment will be posted.

path

The path of the file containing the comment. Can be a list of files or a file glob. Multiple files will be concatenated together.

header

The header of the comment.

footer

The footer of the comment.

skip-label

Skips posting comment if label is present. Leave blank to disable.

Default value: no comment

comment-id

The ID of the comment created.

posted

A boolean indicating whether a comment was posted.

Usage

See also action.yml for a comprehensive list of all the options.

Basic usage:

jobs:
  comment:
    name: Comment
    runs-on: ubuntu-latest
    steps:
      - uses: ArkoseLabs/post-comment-action@v1
        with:
          header: "# Title"
          content: This is a comment
          footer: "*Footer*"

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.