Skip to content

fix: reuse single Manifest instance for releases and pull requests#1190

Open
omerarslan0 wants to merge 3 commits intogoogleapis:mainfrom
omerarslan0:fix/reuse-manifest-instance-v2
Open

fix: reuse single Manifest instance for releases and pull requests#1190
omerarslan0 wants to merge 3 commits intogoogleapis:mainfrom
omerarslan0:fix/reuse-manifest-instance-v2

Conversation

@omerarslan0
Copy link
Copy Markdown

The main() function previously instantiated two separate Manifest objects: one for creating releases and another for creating pull requests. Each call to loadOrBuildManifest() triggered GitHub API requests to fetch repository configuration and release history.

When draft: true is enabled, this redundancy becomes especially costly because draft release resolution requires iterating through more GitHub API pages to find tagged releases, effectively doubling the API overhead.

This PR hoists the loadOrBuildManifest() call above both conditional blocks so a single, shared instance is used for both operations.

Fixes #1169

@omerarslan0 omerarslan0 force-pushed the fix/reuse-manifest-instance-v2 branch from 2a7784f to 0ba6600 Compare March 6, 2026 16:55
@omerarslan0
Copy link
Copy Markdown
Author

@chingor13 Can you look this?

@omerarslan0
Copy link
Copy Markdown
Author

@ferrarimarco Is there any progress?

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.

draft: true causes performance regression in action execution time

2 participants