Skip to content
calendar

GitHub Action

Add a new comment to a specific issue

1.0.0 Latest version

Add a new comment to a specific issue

calendar

Add a new comment to a specific issue

This action updates a specific issue with a new, templated comment, on a schedule

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Add a new comment to a specific issue

uses: skullface/issue-comment-template-action@1.0.0

Learn more about this action in skullface/issue-comment-template-action

Choose a version

Issue comment template action πŸš€

The GitHub Actions bot will post a new comment, following the templated content you provide, on an issue you specify, at the time you schedule.

How does it work?

What do I customize?

  • Schedule πŸ—“
  • Issue number #️⃣
  • Comment body πŸ’¬

There are comments in the action itself to help walk you through it πŸ’–

Schedule πŸ—“

Per the GitHub Actions docs:

You can schedule a workflow to run at specific UTC times using POSIX cron syntax. The shortest interval you can run scheduled workflows is once every 5 minutes.

Determine when you want the action to run in 24-hour format in the UTC timezone, then use crontab guru to generate cron syntax for you (or check out their examples).

The default schedule in the action is 17:30 UTC (5:30pm UTC, 9:30am PT) every Friday, which reads in cron syntax as 30_17_*_*_FRI.

schedule:
  # Define your own schedule after "cron: "
  # Add a comment to the end of the line to read it in plain language πŸ•“
  # https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events
  - cron: 30 17 * * FRI # Every Friday at 17:30 UTC (5:30pm UTC / 9:30am PT)

Issue number #️⃣

What issue will the action run on? Define it here by its number (the autogenerated, autoincremented numerical identifier of an issue). To avoid a syntax error, make sure there is a comma , after the number.

The default issue number in the action is 420.

issue_number: 420, # replace with the number of the specific issue the action will comment on

Comment body πŸ’¬

Add whatever GitHub-flavored Markdown you desire in the comment body β€” as long or as short as you need.

The default comment body starts with # Replace me with your own content! and ends with Just keep the comment body between the backticks..

body: `# Replace me with your own content!

Use multiple lines of **Markdown** here to create your own templated issue comment.

| Even | Tables | 
| --- | --- |
| If you | want to |

Just keep the comment body between the backticks.
`

Why would I use this?

Any time you need to keep a specific issue regularly updated!

  • Running issue for regular meeting agendas
  • Reminder issue to ping you or your team to post a bi-weekly sprint summary