# GitHub Issue closed

{% hint style="info" %}
Use the GitHub issue closed trigger to expire a TODO when a **GitHub issue is closed.**
{% endhint %}

<figure><img src="/files/kOu7Z9zGxaa6LmuVwCp6" alt="" width="563"><figcaption></figcaption></figure>

### Usage with a syntax

➡️ **`TODO(on:`**<mark style="color:yellow;background-color:yellow;">**`issue_closed`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'rails', 'rails', 631`**</mark>**`))`**

### **Authorization**

This trigger can be used to monitor issues on any **public repositories or private repositories belonging to the same organization the TODO is introduced.**

#### Examples

<details>

<summary><em>Expire a TODO when the issue #631 from the Rails repository is closed</em></summary>

➡️ **`TODO(on:`**<mark style="color:yellow;background-color:yellow;">**`issue_closed`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'rails', 'rails', 631`**</mark>**`))`**

</details>

### Usage when detected automatically

When the repository or organisation is not specified, Catana will assume you are referring to an issue in the current repository.

#### Examples

<mark style="color:blue;">TODO</mark>:  **Reuse the calendar component once we fix #754**\ <mark style="color:orange;">Equivalent to</mark>: <mark style="color:yellow;background-color:yellow;">**`issue_closed`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'org', 'repo', 754`**</mark>**`)`**

<mark style="color:blue;">TODO</mark>:  **Awaiting for kubernetes/k8s.io#7314**\ <mark style="color:orange;">Equivalent to</mark>:  <mark style="color:yellow;background-color:yellow;">**`issue_closed`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'kubernetes', 'k8s.io', 7314`**</mark>**`)`**

<mark style="color:blue;">TODO</mark>:  **Do something if <https://github.com/github-linguist/linguist/pulls/344> is resolved**\ <mark style="color:orange;">Equivalent to</mark>:  <mark style="color:yellow;background-color:yellow;">**`issue_closed`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'github-linguist', 'linguist', 344`**</mark>**`)`**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.catana.dev/triggers/github-issue-closed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
