Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto create PR when data updated #7

Merged
merged 7 commits into from
Feb 20, 2024
Merged

Conversation

fisker
Copy link
Contributor

@fisker fisker commented Feb 20, 2024

Tested on my fork.

CI job
PR

@@ -104,8 +104,8 @@ const text = await response.text();
const parsed = parse(text);
const functions = generateFunctions(parsed);

fs.writeFileSync(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synchronous writing is significantly faster than async when you don't need concurrency, so the only way this change is beneficial is if you do the two file writings with Promise.all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted.

@sindresorhus sindresorhus merged commit 61a40a0 into sindresorhus:main Feb 20, 2024
2 checks passed
@fisker fisker deleted the pr branch February 20, 2024 07:51
@sindresorhus
Copy link
Owner

@fisker
Copy link
Contributor Author

fisker commented Sep 23, 2024

@fisker
Copy link
Contributor Author

fisker commented Sep 29, 2024

It still fails, I'll figure out if it needs permissions.

@fisker
Copy link
Contributor Author

fisker commented Oct 11, 2024

@sindresorhus Looks like the job still failed last week, can you check if this setting is correct? peter-evans/create-pull-request#2767 (comment)

@sindresorhus
Copy link
Owner

It was not enabled. Enabled now.

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