GitHub issues are commonly used to track bugs, feature requests, improvements, and other development tasks. For a long time, teams mainly depended on the Open and Closed states, labels, milestones, and project boards to understand the progress of an issue. These options work well for basic tracking, but they do not always provide enough detail for a team that wants to follow a clear development process.
For example, an issue can remain open while a developer is working on it, while a pull request is waiting for review, or while the team is discussing a possible solution. The Open state does not explain which stage the issue has reached.
GitHub issue statuses provide a more detailed way to track this progress. They introduce stages such as Backlog, Todo, In progress, In review, and Done. These statuses can also be used with GitHub Actions, REST APIs, and webhooks to connect issue progress with the rest of a repository workflow.
In this article, we will explore how issue statuses work and how to use them in a practical GitHub repository workflow.
Understanding GitHub Issue Statuses
An issue status represents the current stage of an issue in the development process. Unlike labels, which describe the type or characteristics of an issue, a status describes where the issue stands in the team's workflow.
GitHub provides the following built-in statuses:
Status | Category | Issue state |
|---|
Backlog | backlog | Open |
Todo | planned | Open |
In progress | started | Open |
In review | started | Open |
Done | completed | Closed |
Not planned | not_planned | Closed |
Duplicate | duplicate | Closed |
The category is useful when multiple statuses represent a similar stage. For example, In progress and In review both belong to the started category. This allows automation to respond to the broader development stage instead of checking every individual status.
Issue statuses also work with the existing Open and Closed states. Selecting Done, Not planned, or Duplicate closes an issue. Selecting an active status for a closed issue reopens it.
GitHub can also update statuses automatically in certain situations. Assigning an issue to a person can move it to Todo, while assigning it to an agent can move it to In progress. Linking a pull request can also move an issue into In progress or In review, depending on the pull request's state.
Issue statuses are currently in public preview and are subject to change. Availability may depend on whether the repository or account is enrolled in the preview.
Planning a Repository Workflow With Statuses
Before adding automation, decide how the team will use each status. A status system is useful only when developers understand what each stage means.
For example, a development team might follow this workflow:
New issues enter Backlog.
The team reviews and prioritizes issues.
An assigned issue moves to Todo.
Development work moves the issue to In progress.
A linked pull request moves the issue to In review when it is ready for review.
After successful review and completion, the issue moves to Done.
Not every repository needs all these stages. A small team may only need Backlog, In progress, In review, and Done. The important point is to define a workflow that reflects the team's actual development process.
It is also important to understand the difference between an issue status and a label. A label such as bug, enhancement, or security describes the issue. A status such as In progress describes its current stage. Both can be used together without creating unnecessary labels for every workflow stage.
Running GitHub Actions When an Issue Status Changes
One of the most useful ways to introduce issue statuses into a repository workflow is through GitHub Actions.
GitHub provides the status_changed activity type for the issues event. A workflow can listen for this event and execute a job whenever an issue's status changes.
Create a workflow file named issue-status-workflow.yml inside the .github/workflows directory.
The following example listens for issue status changes and checks whether the new status belongs to the started category.
name: Issue Status Workflow
on:
issues:
types:
- status_changed
permissions:
issues: read
jobs:
track-issue-progress:
runs-on: ubuntu-latest
if: github.event.status.category == 'started'
steps:
- name: Display issue details
run: |
echo "Issue Number: ${{ github.event.issue.number }}"
echo "Issue Title: ${{ github.event.issue.title }}"
echo "New Status: ${{ github.event.status.name }}"
echo "Status Category: ${{ github.event.status.category }}"
This workflow runs when GitHub reports an issue status change. The condition checks the category of the new status. Since both In progress and In review belong to started, the job runs for either status.
The workflow uses the status object associated with the change rather than relying on the issue's display name. This is important because status names can change, and more than one status can belong to the same category.
You can also listen for other issue events by adding their activity types. For example, a workflow might need to run when an issue is opened or assigned as well as when its status changes.
However, avoid listening to every activity type unless the workflow actually needs them. GitHub can send both a status_changed event and another event such as opened, closed, reopened, or assigned for the same user action. Explicitly listing the required activity types helps prevent unnecessary workflow runs.
Checking a Specific Status Instead of a Category
Sometimes a workflow should run only when an issue reaches one particular status.
For example, a team might want to execute a separate job when an issue moves to In review. In this situation, checking the status category is not sufficient because In progress belongs to the same category.
GitHub includes a status ID in the event payload. You can use this identifier to match an individual status.
name: Review Status Notification
on:
issues:
types:
- status_changed
permissions:
issues: read
jobs:
review-status:
runs-on: ubuntu-latest
if: github.event.status.id == 8
steps:
- name: Confirm review stage
run: |
echo "Issue has moved to the configured review status."
echo "Issue: #${{ github.event.issue.number }}"
The ID in this example is illustrative. You should obtain the actual status ID for the repository instead of assuming that a particular number always represents In review.
Use the category when the workflow needs to handle a group of related statuses. Use the ID when it needs to identify one exact status. Avoid matching the display name because GitHub documents that names can change.
Updating Issue Statuses Through the REST API
A repository workflow may also need to update an issue status automatically. For example, an internal development tool could move an issue to Todo after assigning it to a developer.
GitHub's REST API supports a status parameter when creating or updating an issue. The following example uses the GitHub CLI to update an existing issue.
gh api \
--method PATCH \
repos/OWNER/REPOSITORY/issues/123 \
-f status="Todo"
Replace OWNER, REPOSITORY, and 123 with the appropriate repository owner, repository name, and issue number.
The command sends a request to update the issue and sets its status to Todo. GitHub updates the issue's state and state reason when necessary to keep them consistent with the selected status.
For example, setting an issue to Done closes it. Setting a closed issue to Todo reopens it.
The token used by the command must have the required repository permissions. For a fine-grained personal access token or GitHub App token, the Update an issue endpoint requires write access to Issues or Pull requests. When using GitHub Actions, configure the workflow's GITHUB_TOKEN with the required permissions.
For example, a workflow that updates issue statuses needs:
permissions:
issues: write
Use write permission only when the workflow needs to modify issues. A workflow that only reads status information should use read permission instead.
There is one additional detail when using the Duplicate status. GitHub requires the duplicate issue ID through the duplicate_issue_id parameter. A normal status update without this information is not sufficient for marking an issue as a duplicate.
Using Webhooks to Connect External Development Tools
GitHub Actions works well when automation belongs inside the repository. However, some teams maintain separate development dashboards, reporting services, or internal tools.
In these situations, GitHub webhooks provide another option.
When an issue status changes, GitHub sends an issues webhook with the status_changed action. The payload contains the new status and the previous status.
A simplified example looks like this:
{
"action": "status_changed",
"issue": {
"number": 123,
"state": "open",
"status": {
"id": 8,
"name": "In review",
"category": "started"
}
},
"status": {
"id": 8,
"name": "In review",
"category": "started"
},
"changes": {
"status": {
"from": {
"id": 4,
"name": "In progress",
"category": "started"
}
}
}
}
An external application can read this payload and update its own records. For example, a reporting service could store the issue number, previous status, new status, and time of the change.
When building a webhook receiver, do not assume that deliveries always arrive in the same order as the original status changes. GitHub uses best-effort delivery and does not guarantee exactly-once or ordered delivery.
A reliable integration should verify the webhook signature, store the X-GitHub-Delivery identifier to detect duplicate deliveries, and handle retries safely. If the application needs the latest issue status, it should fetch the issue through the REST API rather than relying only on an older webhook payload.
Also remember that changing an issue from In review to Done can generate both status_changed and closed events. If your application processes both events, make sure the same change is not applied twice.
Common Mistakes When Working With Issue Statuses
One common mistake is using labels as a replacement for statuses. Labels are useful for classification, but creating labels such as In progress, In review, and Done can lead to duplicated information. Use issue statuses for workflow progress and labels for issue classification.
Another mistake is checking only the issue's Open or Closed state. An open issue can be in Backlog, Todo, In progress, or In review. If an automation needs to understand the development stage, it should inspect the status object.
A third mistake is matching statuses by their display names. Names are intended for people and may change. Use the status ID for an exact match or the category for a broader workflow stage.
Finally, avoid assuming that every issue already has a status. Older issues may have a null status until someone sets one or GitHub changes it automatically. Your automation should handle missing status values without failing.
Best Practices for Production Repositories
Keep the status workflow simple. Adding too many stages can make issue management harder instead of improving visibility. Start with the stages that developers actually use and expand only when there is a clear need.
Use GitHub's automatic status transitions where they match your process. For example, assigning an issue or linking a pull request can already move it to an appropriate stage. Avoid adding custom automation that performs the same transition without a specific reason.
Keep workflow permissions limited. Use read access for reporting and monitoring, and grant write access only to jobs that need to modify issues.
For webhook integrations, design for duplicate and out-of-order events. Store delivery identifiers, make updates idempotent, and fetch the latest issue when accuracy is important.
Finally, test the workflow with different status transitions, including reopening a closed issue, moving an issue between In progress and In review, and closing an issue as Done or Not planned.
Advantages and Limitations
Issue statuses provide a clearer view of development progress without requiring teams to maintain separate labels for every workflow stage. They also integrate with GitHub Actions, REST APIs, GraphQL, and webhooks, making it possible to connect repository activity with other development tools.
However, issue statuses are currently in public preview, so their behavior and related webhook payloads may change. Teams should also remember that statuses do not replace advanced project planning features. Repositories that need custom fields, multiple views, cross-repository planning, or more advanced reporting may still benefit from GitHub Projects.
Summary
GitHub issue statuses add a useful layer of workflow tracking to repository issues. Instead of relying only on Open and Closed, teams can follow work through Backlog, Todo, In progress, In review, and completion stages.
By combining issue statuses with GitHub Actions, REST APIs, and webhooks, developers can automate routine updates and connect issue progress with internal tools. The most important part is to use status categories and IDs correctly, handle missing or delayed data, and keep automation focused on the team's actual development process.
Join the conversation! Your thoughts help the community grow.