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

Improve catchup script #236

Merged
merged 23 commits into from
Jan 10, 2024
Merged

Improve catchup script #236

merged 23 commits into from
Jan 10, 2024

Conversation

BlueCutOfficial
Copy link
Member

@BlueCutOfficial BlueCutOfficial commented Jan 3, 2024

Related to #220

…anch and update the English branch we need to compare current Ember version and new Ember version
…ef-upstream and upstream/master and parse it as an array of filenames
…to track the files to post in a GitHub issue
…e need to do this because we want to do a replacement in the content
…e updated path, so the file can be patched in our architecture
…f git apply fails (file translated), then we add to filesToPost to open a GitHub issue later
…ction so we know if there are patch files to commit and push
…n file and diff. There's no diff block if the file is new
…ss. One reset ref-upstream then the other will switch back to master or the catchup branch depending on the situation
… only if we no longer need the current state (all operations to create/edit diff files are ok), and switch back to the best branch
@BlueCutOfficial BlueCutOfficial marked this pull request as ready for review January 9, 2024 16:40

} catch (error) {
console.error('Failed to push the catchup branch.');
Copy link
Member

Choose a reason for hiding this comment

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

warn?

@@ -1,201 +1,282 @@
import 'dotenv/config';
import fetch from 'node-fetch';
import { execSync } from 'child_process';
import fs from 'fs';
import minimist from 'minimist-lite';
Copy link
Member

@GreatWizard GreatWizard Jan 10, 2024

Choose a reason for hiding this comment

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

You hsould consider using

https://www.npmjs.com/package/command-line-args
https://www.npmjs.com/package/command-line-usage

const commandLineArgs = require('command-line-args');
const commandLineUsage = require('command-line-usage');

They are more nice for dev experience and you can print the help text easily

@BlueCutOfficial
Copy link
Member Author

I need to merge the PR to finalize my blog post and have the link to the up-to-date script. But I'll keep issue #220 open to handle the comments.

@BlueCutOfficial BlueCutOfficial merged commit f2d1cea into master Jan 10, 2024
2 checks passed
@BlueCutOfficial BlueCutOfficial deleted the improve-catchup-script branch January 10, 2024 09:58
@BlueCutOfficial BlueCutOfficial mentioned this pull request Jan 10, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants