Skip to content

GitHub Actions to post a text to GitHub issue / pull request

Notifications You must be signed in to change notification settings

babarot/action-github-comment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-github-comment

Post a text to GitHub issue / pull request

You can use the fixed version from: Releases

Usage

A whole example is here:

name: github-comment

on: [pull_request]

jobs:
  job1:
    name: github-comment
    runs-on: ubuntu-latest
    steps:
    - name: Post comments to GitHub
      uses: b4b4r07/action-github-comment@v1
      with:
        body: |
          text...
          text...
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        LOG: trace

Customizing

inputs

The following are optional as step.with keys

Name Type Description Default
body String Text to be sent to GitHub
repository String GitHub repository. Its style should be like "owner/repo" ${{ github.repository }}
number Int An issue/pull request number you want to send a comment. Default is pull request number ${{ github.event.pull_request.number }}

outputs

The following outputs can be accessed via ${{ steps.<step-id>.outputs }} from this action

Name Type Description
n/a

environment variables

The following are as step.env keys

Name Description
GITHUB_TOKEN Token to be used for posting comment
ENV Log level to spit out what happened in github-comment command (trace, debug, info, warn and error are allowed)

License

MIT

About

GitHub Actions to post a text to GitHub issue / pull request

Resources

Stars

Watchers

Forks

Packages

No packages published