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

update the trebuchet remaining steps output into a markdown list #300

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
'package:sdk_triage_bot':
- changed-files:
- any-glob-to-any-file: 'pkgs/sdk_triage_bot/**/*'

'package:trebuchet':
- changed-files:
- any-glob-to-any-file: 'pkgs/trebuchet/**/*'
5 changes: 3 additions & 2 deletions pkgs/trebuchet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ dart run bin/trebuchet.dart \
--input-name coverage \
--branch-name main \
--input-path ~/projects/coverage/ \
--target labs \
--target tools \
--target-path ~/projects/tools/ \
--git-filter-repo ~/tools/git-filter-repo \
--dry-run
```

This basically executes the instructions at https:/dart-lang/ecosystem/wiki/Merging-existing-repos-into-a-monorepo
This script automates portions of the instructions at
https:/dart-lang/ecosystem/wiki/Merging-existing-repos-into-a-monorepo.
20 changes: 10 additions & 10 deletions pkgs/trebuchet/bin/trebuchet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,23 @@ class Trebuchet {
}

final remainingSteps = [
'Move and fix workflow files',
'move and fix workflow files',
if (!shouldPush)
'Run `git push --set-upstream origin merge-$input-package` in the monorepo directory',
'Disable squash-only in GitHub settings, and merge with a fast forward merge to the main branch, enable squash-only in GitHub settings.',
"Push tags to github using `git tag --list '$input*' | xargs git push origin`",
'Follow up with a PR adding links to the top-level readme table.',
'Transfer issues by running `dart run pkgs/repo_manage/bin/report.dart transfer-issues --source-repo dart-lang/$input --target-repo dart-lang/$target --add-label package:$input --apply-changes`',
"Add a commit to https:/dart-lang/$input/ with it's readme pointing to the monorepo.",
'Update the auto-publishing settings on pub.dev/packages/$input.',
'Archive https:/dart-lang/$input/.',
'run `git push --set-upstream origin merge-$input-package` in the monorepo directory',
"enable 'Allow merge commits' in GitHub settings; merge the PR with 'Create a merge commit'; disable 'Allow merge commits'",
"push tags to GitHub using `git tag --list '$input*' | xargs git push origin`",
'follow up with a PR adding links to the top-level readme table',
'transfer issues by running `dart run pkgs/repo_manage/bin/report.dart transfer-issues --source-repo dart-lang/$input --target-repo dart-lang/$target --add-label package:$input --apply-changes`',
'update the auto-publishing settings on pub.dev/packages/$input',
"add a commit to https:/dart-lang/$input/ with it's readme pointing to the monorepo",
'archive https:/dart-lang/$input/',
];

print('DONE!');
print('''
Steps left to do:

${remainingSteps.map((step) => ' - $step').join('\n')}
${remainingSteps.map((step) => '- [ ] $step').join('\n')}
''');
}

Expand Down
Loading