Skip to content

Conversation

@jeaguil
Copy link
Contributor

@jeaguil jeaguil commented Dec 18, 2025

For slash commands using workflow_dispatch, the getWorkflow() function was only fetching the first page of workflows (default 30) from the API. In repositories with more than 30 workflows, this caused "Workflow not found" errors.

Updated to use octokit.paginate to fetch all workflows across all pages instead of just the first page.

@peter-evans peter-evans changed the base branch from main to paginate_workflow_discovery December 18, 2025 16:33
@peter-evans
Copy link
Owner

Thank you! Merging to a temp branch to fix this up before release.

@peter-evans peter-evans merged commit e81e009 into peter-evans:paginate_workflow_discovery Dec 18, 2025
2 of 3 checks passed
peter-evans added a commit that referenced this pull request Dec 18, 2025
* fix: paginate workflow discovery for repos with >30 workflows in workflow_dispatch commands (#437)

* Fetch all workflows with paginate

* Add page parameter when fetching all workflows

* fix: formatting and dist

---------

Co-authored-by: Jesus Aguilera <[email protected]>
@peter-evans
Copy link
Owner

Thank you! Released in v5.0.2 / v5

@jeaguil jeaguil deleted the fix/paginate-workflow-list-for-repos-with-30plus-workflows branch December 18, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants