skullface / issue-comment-template-action

GitHub Action to add a templated comment to a specific issue.

Home Page:https://github.com/marketplace/actions/add-a-new-comment-to-a-specific-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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