All Projects → actions-ecosystem → action-create-comment

actions-ecosystem / action-create-comment

Licence: Apache-2.0 license
💬 GitHub Action to create a comment

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to action-create-comment

setup-sp
This action sets-up, cache and adds sourcemod scripting directory to the path
Stars: ✭ 30 (+0%)
Mutual labels:  actions
add-an-issue-reference-action
A GitHub Action for adding a related issue reference to a pull request.
Stars: ✭ 19 (-36.67%)
Mutual labels:  actions
action-release-label
🏷️ GitHub Action to output a semver update level from a pull request release label
Stars: ✭ 41 (+36.67%)
Mutual labels:  actions
standard-action
Github Action to lint with `standard` and friends
Stars: ✭ 15 (-50%)
Mutual labels:  actions
comment-mark
Interpolate strings with HTML comment markers!
Stars: ✭ 21 (-30%)
Mutual labels:  comment
danger-action
Execute danger action for GitHub Actions.
Stars: ✭ 24 (-20%)
Mutual labels:  actions
node-typescript-starter
A starter project to easily create new NodeJS applications with TypeScript.
Stars: ✭ 42 (+40%)
Mutual labels:  actions
actions
🧰 Collection of github actions for automation
Stars: ✭ 28 (-6.67%)
Mutual labels:  actions
action-add-labels
🏷️ GitHub Action to add labels
Stars: ✭ 65 (+116.67%)
Mutual labels:  actions
deployer-php-action
Deploy PHP projects using Deployer from Github Actions
Stars: ✭ 57 (+90%)
Mutual labels:  actions
styleguide-todo-grammar
/sBin/StyleGuide/ToDo
Stars: ✭ 19 (-36.67%)
Mutual labels:  comment
clang-tidy-review
Create a pull request review based on clang-tidy warnings
Stars: ✭ 33 (+10%)
Mutual labels:  actions
html5validator-action
GitHub Action that checks HTML5 syntax.
Stars: ✭ 27 (-10%)
Mutual labels:  actions
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+23.33%)
Mutual labels:  actions
spinnaker-pipeline-trigger
Pipeline trigger for Spinnaker utilizing SNS
Stars: ✭ 15 (-50%)
Mutual labels:  actions
branch-names
Github action to retrieve branch or tag names with support for all events.
Stars: ✭ 99 (+230%)
Mutual labels:  actions
verify-changed-files
Github action to verify file changes that occur during the workflow execution.
Stars: ✭ 62 (+106.67%)
Mutual labels:  actions
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (+203.33%)
Mutual labels:  comment
InstaBot
Simple and friendly Bot for Instagram, using Selenium and Scrapy with Python.
Stars: ✭ 32 (+6.67%)
Mutual labels:  comment
labeler
GitHub Action to assign labels to PRs based on configurable conditions
Stars: ✭ 47 (+56.67%)
Mutual labels:  actions

Action Create Comment

actions-workflow-test release license

screenshot

This is a GitHub Action to create a comment to an issue or a pull request.

This action extract the number from an issue or a pull request which has triggered this by default. It means you don't need to care about something annoying like whether you should use ${{ github.event.issue.number }} or ${{ github.event.pull_request.number }}.

It would be more useful to use this with other GitHub Actions' outputs.

Inputs

NAME DESCRIPTION TYPE REQUIRED DEFAULT
github_token A GitHub token. string true N/A
body The comment body. string true N/A
repo The owner and repository name. e.g.) Codertocat/Hello-World string false ${{ github.repository }}
number The number of the issue or pull request. number false ${{ github.event.issue.number }} or ${{ github.event.pull_request.number }}

Example

name: Create Comment

on: [issue_comment]

jobs:
  create_comment:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-ecosystem/action-create-comment@v1
        if: ${{ startsWith(github.event.comment.body, '/hello') }}
        with:
          github_token: ${{ secrets.github_token }}
          body: |
            Hello, @${{ github.actor }}!

License

Copyright 2020 The Actions Ecosystem Authors.

Action Create Comment is released under the Apache License 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].