Skip to content

Repository files navigation

Build and Test

Create Issue Action

A simple GitHub Action that creates, updates, comments on, or closes issues using the GitHub CLI (gh).

Ideal for CI/CD workflows that need to:

  • Automatically open or update tracking issues
  • Comment on existing issues from automation
  • Close issues after builds or deployments are complete

Features

  • Create new issues with titles, bodies, templates, labels, and assignees
  • Update existing issues automatically
  • Add comments to existing issues
  • Close issues by title and label search
  • Uses gh CLI under the hood (no extra dependencies)

Inputs

NameDescriptionDefaultRequired
tokenGitHub token (or PAT) used for authentication${{github.token}}Yes
modeOperation mode: create or closecreateYes
stateIssue state filter when searching for existing issues: open, closed, or allopenYes
titleTitle of the issue to create or update-Yes
labelsComma-separated list of labels used for creation and search-No
assigneesComma-separated list of users to assign the issue to-No
bodyOptional body text for the issue-No
commentOptional comment text to add to an existing issue instead of updating the issue body, or as closing comment if closing the issue-No
repoRepository to operate on (owner/repo)${{github.repository}}Yes

Example Usage

name: Reporting on failed buildson:
push:
branches:
- mainjobs:
build:
runs-on: ubuntu-lateststeps:
- name: Checkoutuses: actions/checkout@v4
- name: Buildrun: make buildreport-failure:
runs-on: ubuntu-latestneeds: buildif: failure()permissions:
contents: readissues: writesteps:
- name: Report build failureuses: CodeReaper/create-issue-action@v1with:
title: "{{ github.workflow }} failed to build"labels: automationassignees: "@me"body: See [the action log](https://github.com/{{ github.repository }}/actions/runs/{{ github.run_id }}) for more details.

License

This project is released under the MIT License

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages