Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Latest commit

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date

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-commenton: [pull_request]jobs:
job1:
name: github-commentruns-on: ubuntu-lateststeps:
- name: Post comments to GitHubuses: b4b4r07/action-github-comment@v1with:
body: | text... text...env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}LOG: trace

Customizing

inputs

The following are optional as step.with keys

NameTypeDescriptionDefault
bodyStringText to be sent to GitHub
repositoryStringGitHub repository. Its style should be like "owner/repo"${{ github.repository }}
numberIntAn 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

NameTypeDescription
n/a

environment variables

The following are as step.env keys

NameDescription
GITHUB_TOKENToken to be used for posting comment
ENVLog 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

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages