genai-docs/Cleanup Expired Discussions
Delete SWA invitation Discussions that exceed their expiration window.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token for authentication. | yes | — |
| target-repo | Target repository in "owner/repo" format. Defaults to the current repository. | no | — |
| discussion-category-name | Discussion category name to inspect. | yes | — |
| expiration-hours | Hours after creation to consider a discussion expired. | no | 168 |
| cleanup-mode | Cleanup mode. "expiration" checks the cutoff time, "immediate" deletes everything. | no | expiration |
Outputs
| name | description |
|---|---|
| deleted-count | Number of discussions deleted in the run. |