README.md

March 12, 2026 ยท View on GitHub

๐Ÿค– Issues Helper

A GitHub Action that easily helps you automatically manage issues

dumi code style: prettier

English | ็ฎ€ไฝ“ไธญๆ–‡

๐Ÿ˜Ž Why use GitHub Action?

  1. Complete free
  2. Fully automatic
  3. Hosted on the GitHub server, as long as GitHub is not down, it is not affected

Private projects have a limit of 2000 times per month. Specific view. Public are unlimited.

Who is using?

Please leave a message at here.

ant-design ant-design-blazor ant-design-mobile ant-design-vue
bootstrap core dumi electron
element-plus formily jsx-next material-ui
nutui prettier react-component react-music-player
S2 swiper umi vite
vitest vue-request vuepress-next zoo

Badge

If you think actions-cool can help you, please copy it to the README to support promotion and bring convenience to more repositories:actions-cool. More color see.

[![actions-cool](https://img.shields.io/badge/using-actions--cool-blue?style=flat-square)](https://github.com/actions-cool)

โšก Feedback

You are very welcome to try it out and put forward your comments. You can use the following methods:

List

When the following list does not have the features you want, you can submit it in issues.

๐Ÿš€ Usage

โญ Base

In order to better display the function, the following is an example of the actual scene, please refer to it flexibly.

add-assignees

When an issue is added or modified, assign this issue to one or more people.

name: Add Assigness

on:
  issues:
    types: [opened, edited]

jobs:
  add-assigness:
    runs-on: ubuntu-latest
    steps:
      - name: Add assigness
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'add-assignees'
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          assignees: 'xxx' or 'xx1,xx2'
          random-to: 1
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
assigneesDesignated person. No operation when no input or empty characterstringโœ–
random-toWhen set, it will be randomly selected in assigneesnumberโœ–
  • actions support multiple and separated by comma. Like: add-assignees,add-labels
  • The name can be modified according to the actual situation
  • Reference to on
  • ${{ github.event.issue.number }} is the current issue. More references
  • assignees support multiple and separated by comma
  • You can assign up to 10 people to each issue

โซ Back to list

add-labels

When the content of a new issue does not contain the specified format, add labels for the issue.

name: Add Labels

on:
  issues:
    types: [opened]

jobs:
  add-labels:
    runs-on: ubuntu-latest
    if: contains(github.event.issue.body, 'xxx') == false
    steps:
      - name: Add labels
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'add-labels'
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          labels: 'bug' or 'xx1,xx2'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
labelsNew labels. When it is not filled in or is empty character, do not addstringโœ–
  • labels support multiple and separated by comma

โซ Back to list

close-issue

Close the specified issue.

- name: Close issue
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'close-issue'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: xxx
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
close-reasonReason for closing. Default not_planned, another completedstringโœ–

โซ Back to list

create-comment

When a designated label is added, comment on the issue.

name: Create Comment

on:
  issues:
    types: [labeled]

jobs:
  create-comment:
    runs-on: ubuntu-latest
    if: github.event.label.name == 'xxx'
    steps:
      - name: Create comment
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'create-comment'
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          body: |
            Hello @${{ github.event.issue.user.login }}. Add some comments.

            ไฝ ๅฅฝ @${{ github.event.issue.user.login }}ใ€‚ๅทดๆ‹‰ๅทดๆ‹‰ใ€‚
          emoji: '+1' or '+1,heart'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
bodyAdd comment contentstringโœ”
emojiAdd emojistringโœ–
  • No action when body is empty
  • Return comment-id, which can be used for subsequent operations. Usage reference
  • ${{ github.event.issue.user.login }} indicates the creator of the issue
  • emoji support multiple and separated by comma

โซ Back to list

create-issue

Here is an example, add an issue at UTC 00:00 on the 1st of every month.

name: Create Issue

on:
  schedule:
    - cron: "0 0 1 * *"

jobs:
  create-issue:
    runs-on: ubuntu-latest
    steps:
      - name: Create issue
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'create-issue'
          token: ${{ secrets.GITHUB_TOKEN }}
          title: 'xxxx'
          body: 'xxxx'
          labels: 'xx'
          assignees: 'xxx'
          emoji: '+1'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
titleThe title of the new issuestringโœ”
bodyThe body of the new issuestringโœ–
labelsThe labels for the new issuestringโœ–
assigneesThe assignees for the new issuestringโœ–
random-toWhen set, it will be randomly selected in assigneesnumberโœ–
emojiAdd emojistringโœ–

โซ Back to list

create-label

Create label. If you want to maintain labels in batches, see.

- name: Create label
  uses: actions-cool/issues-helper@v3
  with:
    actions: 'create-label'
    token: ${{ secrets.GITHUB_TOKEN }}
    label-name: 'xx'
    label-color: '0095b3'
    label-desc: 'xx'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
label-nameLabel name, emoji supportstringโœ”
label-colorLabel color, the format is hexadecimal color code, without #stringโœ–
label-descLabel descriptionstringโœ–
  • label-name: If it already exists, no operation
  • label-color: Default is ededed

โซ Back to list

delete-comment

According to comment-id delete the specified comment.

- name: Delete comment
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'delete-comment'
      token: ${{ secrets.GITHUB_TOKEN }}
      comment-id: xxx
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
comment-idThe comment IDnumberโœ”

โซ Back to list

get-issue

Query issue information.

- name: Get Issue
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'get-issue'
      token: ${{ secrets.GITHUB_TOKEN }}
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
  • Return issue-number issue-title issue-body issue-labels issue-assignees issue-state. Usage reference

โซ Back to list

lock-issue

When the invalid label is added, the issue is locked.

name: Lock Issue

on:
  issues:
    types: [labeled]

jobs:
  lock-issue:
    runs-on: ubuntu-latest
    if: github.event.label.name == 'invalid'
    steps:
      - name: Lock issue
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'lock-issue'
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
lock-reasonReason for locking issuestringโœ–
  • lock-reason: Optional values are off-topic too heated resolved spam

โซ Back to list

open-issue

Open the specified issue.

- name: Open issue
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'open-issue'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: xxx
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–

โซ Back to list

remove-assignees

Remove the person designated by issue.

- name: Remove assignees
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'remove-assignees'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: ${{ github.event.issue.number }}
      assignees: 'xx'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
assigneesDesignated person removed. When it is an empty character, do not removestringโœ”

โซ Back to list

remove-labels

Remove the specified labels.

- name: Remove labels
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'remove-labels'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: ${{ github.event.issue.number }}
      labels: 'xx'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
labelsThe removed labels. When it is a blank character, do not removestringโœ”
  • labels supports multiple, such as x1,x2,x3, only the labels added by the issue will be removed

โซ Back to list

set-labels

Replace the labels of issue.

- name: Set labels
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'set-labels'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: ${{ github.event.issue.number }}
      labels: 'xx'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
labelslabels set. When empty characters, will remove allstringโœ”

โซ Back to list

unlock-issue

Unlock the specified issue.

- name: Unlock issue
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'unlock-issue'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: ${{ github.event.issue.number }}
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–

โซ Back to list

update-comment

Update the specified comment according to comment-id.

The following example shows that ๐Ÿ‘€ is added for each new comment.

name: Add eyes to each comment

on:
  issue_comment:
    types: [created]

jobs:
  update-comment:
    runs-on: ubuntu-latest
    steps:
      - name: Update comment
          uses: actions-cool/issues-helper@v3
          with:
            actions: 'update-comment'
            token: ${{ secrets.GITHUB_TOKEN }}
            comment-id: ${{ github.event.comment.id }}
            emoji: 'eyes'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
comment-idThe comment IDnumberโœ”
out-commentsThe output of find-comments, if you find multiple, operate multiplestringโœ–
bodyUpdate the content of commentstringโœ–
update-modeUpdate mode. Default replace, another appendstringโœ–
emojiAdd reactionstringโœ–
  • When body is not entered, it will remain as it is
  • When update-mode is append, additional operations will be performed. Anything other than append will be replaced. Only effective for body

โซ Back to list

update-issue

Update the specified issue according to the issue-number.

- name: Update issue
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'update-issue'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: ${{ github.event.issue.number }}
      state: 'open'
      title: 'xxx'
      body: 'xxxx'
      update-mode: 'replace'
      labels: 'xx'
      assignees: 'xxx'
      emoji: '+1'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
stateModify the status of issue, optional value open closedstringโœ–
titleModify the title of the issuestringโœ–
bodyModify the content of issuestringโœ–
update-modeUpdate mode. Default replace, another appendstringโœ–
labelsReplace the labels of issuestringโœ–
assigneesReplace the assignees of issuestringโœ–
emojiAdd reactionstringโœ–
  • state defaults to open
  • When the option is not filled, it will keep the original

โซ Back to list

๐ŸŒŸ Advanced

Advanced usage is not recommended to use multiple actions at the same time.

check-inactive

At UTC 0 on the 1st of each month, add the inactive tag to all issues that have not been active for more than 30 days.

name: Check inactive

on:
  schedule:
    - cron: "0 0 1 * *"

jobs:
  check-inactive:
    runs-on: ubuntu-latest
    steps:
      - name: check-inactive
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'check-inactive'
          token: ${{ secrets.GITHUB_TOKEN }}
          inactive-day: 30
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
bodyWhen operating an issue, you can comment. Do not comment when not typingstringโœ–
emojiAdd reaction for this commentstringโœ–
labelsLabels filteringstringโœ–
issue-stateState filteringstringโœ–
issue-assigneeAssignee filteringstringโœ–
issue-creatorCreator filteringstringโœ–
issue-mentionedMentioned filteringstringโœ–
body-includesBody filtering, supports filtering of multiple stringsstringโœ–
title-includesTitle filtering, supports filtering of multiple stringsstringโœ–
inactive-dayInactive days filteringnumberโœ–
inactive-modeDetect inactive mode, default issuestringโœ–
inactive-labelThe label name addingstringโœ–
exclude-labelsExclude labels filteringstringโœ–
exclude-issue-numbersExclude the specified issuesstringโœ–
  • labels: When there are multiple, the query will have multiple at the same time. If not entered, all
  • issue-state: The default is all. Optional value open closed, when these 2 items are not, both are all
  • issue-assignee: Multiplayer is not supported. If you do not enter or enter *, all will be searched. Entering none will query issues for which the specified person is not added
  • inactive-day: When entering, it will filter the issue update time earlier than the current time minus the number of inactive days. If not entered, all
  • inactive-label: The default is inactive, others can be customized. When the project does not contain the label, it will be created automatically
  • exclude-labels: When set to include $exclude-empty, no label issue can be excluded
  • inactive-mode:
    • Default issue: the issue updated time
    • Optional comment: the last comment update time
    • Optional issue-created: the issue created time
    • Optional comment-created: the comment creation time
    • You can also set multiple such as: comment, issue-created
      • It will be detected with priority, the update time of the last comment will be detected first, if there is no comment, the creation time of the issue will be used

โซ Back to list

check-issue

Check whether the issue meets the conditions according to the passed parameters and issue-number, and return a boolean value.

The effect of the following example is: when an issue is newly opened, verify whether the current issue designator contains x1 or x2.

If one designated person is satisfied, the verification will pass, and at the same time, verify whether the title meets the conditions. Check rules

name: Check Issue

on:
  issues:
    types: [edited]

jobs:
  check-issue:
    runs-on: ubuntu-latest
    steps:
      - name: check-issue
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'check-issue'
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          assignee-includes: 'x1,x2'
          title-includes: 'x1,x2/y1,y2'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
assignee-includesAssignees contains checkstringโœ–
title-includesTitle contains checkstringโœ–
title-excludesCheck whether the title is empty after removing the default titlestringโœ–
body-includesBody contains checkstringโœ–
  • title-includes body-includes supports the format x1,x2 or x1,x2/y1,y2. Only supports two levels
  • Return check-result, due to yml reasons, the judgment condition is if: steps.xxid.outputs.check-result =='true'

โซ Back to list

close-issues

Every 7 days at UTC 0, close the issues that have been filled with the need info label and have not been active for more than 7 days.

name: Check need info

on:
  schedule:
    - cron: "0 0 */7 * *"

jobs:
  check-need-info:
    runs-on: ubuntu-latest
    steps:
      - name: close-issues
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'close-issues'
          token: ${{ secrets.GITHUB_TOKEN }}
          labels: 'need info'
          inactive-day: 7
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
bodyWhen operating an issue, you can comment. Do not comment when not typingstringโœ–
emojiAdd reaction for this commentstringโœ–
labelsLabels filteringstringโœ–
issue-assigneeAssignee filteringstringโœ–
issue-creatorCreator filteringstringโœ–
issue-mentionedMentioned filteringstringโœ–
body-includesBody filtering, supports filtering of multiple stringsstringโœ–
title-includesTitle filtering, supports filtering of multiple stringsstringโœ–
inactive-dayInactive days filteringnumberโœ–
exclude-labelsExclude labels filteringstringโœ–
close-reasonReason for closing. Default not_planned, another completedstringโœ–
  • labels: When there are multiple, the query will have multiple at the same time. If not entered, all
  • issue-assignee: Multiplayer is not supported. If you do not enter or enter *, all will be searched. Entering none will query issues for which the specified person is not added
  • inactive-day: When entering, it will filter the issue update time earlier than the current time minus the number of inactive days. If not entered, all
  • exclude-labels: When set to include $exclude-empty, no label issue can be excluded

โซ Back to list

find-comments

Find the current warehouse issue No. 1, the creator is k and the content contains the comment list of this.

- name: Find comments
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'find-comments'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-number: 1
      comment-auth: 'k'
      body-includes: 'this,that'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
comment-authComment creator, all will be queried if not filledstringโœ–
body-includesComment content includes filtering, supports filtering of multiple strings, no verification if not filledstringโœ–
directionReturn comments sortstringโœ–
  • Return comments in the following format:
[
  {id: 1, auth: 'x', body: 'xxx', created: '', updated: ''},
  {id: 2, auth: 'x', body: 'xxx', created: '', updated: ''},
]
  • direction defaults to ascending order, only when desc is set, descending order will be returned
  • The created updated in the returned array, determined by the environment, will be UTC +0

โซ Back to list

find-issues

Find the current repository, the creator is k , the title contains this , the body contains that, and the list of issues in the open state.

- name: Find issues
    uses: actions-cool/issues-helper@v3
    with:
      actions: 'find-issues'
      token: ${{ secrets.GITHUB_TOKEN }}
      issue-creator: 'k'
      issue-state: 'open'
      title-includes: 'this,that'
      body-includes: 'that,this'
      labels: 'documentation'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-stateState filteringstringโœ–
issue-creatorCreator filteringstringโœ–
title-includesTitle filtering, supports filtering of multiple stringsstringโœ–
body-includesBody filtering, supports filtering of multiple stringsstringโœ–
labelsLabels filteringstringโœ–
exclude-labelsExclude labels filteringstringโœ–
inactive-dayInactive days filteringnumberโœ–
directionReturn sortstringโœ–
create-issue-if-not-existCreate a new issue if not existbooleanโœ–
  • Returns issues in the following format:
[
  {number: 1, auth: 'x', body: 'xxx', body: 'xxx', state: 'open', assignees: ['x1', 'x2'], created: '', updated: ''},
  {number: 2, auth: 'x', body: 'xxx', body: 'xxx', state: 'closed', assignees: ['x1', 'x2'], created: '', updated: ''},
]
  • issue-state: The default is open. Other values are: closed, all
  • direction defaults to ascending order, only when desc is set, descending order will be returned
  • The created updated in the returned array, determined by the environment, will be UTC +0
  • exclude-labels: When set to include $exclude-empty, no label issue can be excluded

โซ Back to list

lock-issues

Every 3 months at UTC 0 on the 1st, lock all issues that have been filled with the inactive label and have not been active for more than 128 days.

name: Lock inactive issues

on:
  schedule:
    - cron: "0 0 1 */3 *"

jobs:
  lock-issues:
    runs-on: ubuntu-latest
    steps:
      - name: lock-issues
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'lock-issues'
          token: ${{ secrets.GITHUB_TOKEN }}
          labels: 'inactive'
          inactive-day: 128
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
bodyWhen operating an issue, you can comment. Do not comment when not typingstringโœ–
emojiAdd reaction for this commentstringโœ–
labelsLabels filteringstringโœ–
issue-stateState filteringstringโœ–
issue-assigneeAssignee filteringstringโœ–
issue-creatorCreator filteringstringโœ–
issue-mentionedMentioned filteringstringโœ–
body-includesBody filtering, supports filtering of multiple stringsstringโœ–
title-includesTitle filtering, supports filtering of multiple stringsstringโœ–
inactive-dayInactive days filteringnumberโœ–
lock-reasonReason for locking issuestringโœ–
exclude-labelsExclude labels filteringstringโœ–
  • labels: When there are multiple, the query will have multiple at the same time. If not entered, all
  • issue-state: The default is all. Optional value open closed, when these 2 items are not, both are all
  • issue-assignee: Multiplayer is not supported. If you do not enter or enter *, all will be searched. Entering none will query issues for which the specified person is not added
  • inactive-day: When entering, it will filter the issue update time earlier than the current time minus the number of inactive days. If not entered, all
  • exclude-labels: When set to include $exclude-empty, no label issue can be excluded

โซ Back to list

mark-assignees

Quickly assign person, only for the issue to add editor comments.

name: Issue Mark Assignees

on:
  issue_comment:
    types: [created, edited]

jobs:
  mark-assignees:
    runs-on: ubuntu-latest
    steps:
      - name: mark-assignees
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'mark-assignees'
          token: ${{ secrets.GITHUB_TOKEN }}
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
assign-commandSimple commands can be set, such as: /astringโœ–
require-permissionPermission required, default is writestringโœ–
  • assign-command: default /assign
  • require-permission: Optional values are admin, write, read, none
    • If the team member sets the read permission, it is read
    • If the external Collaborator is set to read permission, it is read
    • Ordinary users have read permission
    • When set write, admin and write meet the conditions

โซ Back to list

mark-duplicate

Quickly mark duplicate questions, only for issue new comments or edit comments.

name: Issue Mark Duplicate

on:
  issue_comment:
    types: [created, edited]

jobs:
  mark-duplicate:
    runs-on: ubuntu-latest
    steps:
      - name: mark-duplicate
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'mark-duplicate'
          token: ${{ secrets.GITHUB_TOKEN }}
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
duplicate-commandSimple commands can be set, such as: /dstringโœ–
duplicate-labelsAdd additional labels to this issuestringโœ–
remove-labelsSet removable labelsstringโœ–
labelsReplace the labels of the issuestringโœ–
emojiAdd reaction for this commentstringโœ–
close-issueWhether to close the issue at the same timestringโœ–
require-permissionPermission required, default is writestringโœ–
close-reasonReason for closing. Default not_planned, another completedstringโœ–
  • duplicate-command: When setting concise commands, while still supporting the original Duplicate of. Block content contains ?
  • labels: Highest priority
  • close-issue: Both true or 'true' can take effect
  • require-permission: Optional values are admin, write, read, none
    • If the team member sets the read permission, it is read
    • If the external Collaborator is set to read permission, it is read
    • Ordinary users have read permission
    • When set write, admin and write meet the conditions

โซ Back to list

toggle-labels

When an issue is reopened, the set labels are removed if they already exist, otherwise they are added.

name: Toggle Labels

on:
  issues:
    types: [reopened]

jobs:
  toggle-labels:
    runs-on: ubuntu-latest
    steps:
      - name: Toggle labels
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'toggle-labels'
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          labels: 'unread,outdated'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
issue-numberThe number of issue. When not input, it will be obtained from the trigger eventnumberโœ–
labelsThe toggle labels. Delete if the label already exists, add if it does not existstringโœ–

โซ Back to list

welcome

When an issue is created, the user who created the issue for the first time is welcome.

If the user is not creating for the first time, there is no operation.

name: Issue Welcome

on:
  issues:
    types: [opened]

jobs:
  issue-welcome:
    runs-on: ubuntu-latest
    steps:
      - name: welcome
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'welcome'
          token: ${{ secrets.GITHUB_TOKEN }}
          body: hi @${{ github.event.issue.user.login }}, welcome!
          labels: 'welcome1, welcome2'
          assignees: 'xx1'
          issue-emoji: '+1, -1, eyes'
ParamDescTypeRequired
actionsAction typestringโœ”
tokenToken explainstringโœ–
bodyComment on the welcome content, no comment if you leave it blankstringโœ–
labelsAdd labels to this issuestringโœ–
assigneesAdd assignees to this issuestringโœ–
issue-emojiAdd reaction to this issuestringโœ–
  • If these 4 options are not filled, no operation

โซ Back to list

๐ŸŽ Reference

token

Need to have the person token with push permission.

  • Personal token application
    • Need to check Full control of private repositories
  • Project add secrets
    • Select settings, select secrets, select New repository secret
    • Name is the same as in actions
    • Value fill in the token just applied by the individual

When the token is not filled in actions or input ${{ secrets.GITHUB_TOKEN }}, it will default to github-actions-bot. More.

โซ Back to list

GitHub Docs

โซ Back to list

outputs use

- name: Create issue
  uses: actions-cool/issues-helper@v3
  id: createissue
  with:
    actions: 'create-issue'
    token: ${{ secrets.GITHUB_TOKEN }}
- name: Check outputs
  run: echo "Outputs issue_number is ${{ steps.createissue.outputs.issue-number }}"

More:

  1. https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions#outputs
  2. https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idoutputs

โซ Back to list

Check rules

"title-includes": 'x1,x2'

x1
x2

"x1y3y2"  true
"y2 x1"   true
"x2"      true
"x3"      false
"title-includes": 'x1,x2/y1,y2'

x1 + y1
x2 + y1
x1 + y2
x2 + y2

"x1y3y2"  true
"y2 x1"   true
"1x2y"    false
"x1"      false

โซ Back to list

Emoji types

contentemoji
+1๐Ÿ‘
-1๐Ÿ‘Ž
laugh๐Ÿ˜„
confused๐Ÿ˜•
heartโค๏ธ
hooray๐ŸŽ‰
rocket๐Ÿš€
eyes๐Ÿ‘€

โซ Back to list

comment-id

Click the ยทยทยท icon in the upper right corner of a comment, select Copy link, and the number at the end of the url is comment_id.

โซ Back to list

Actions Template

LICENSE

MIT