@@ -148,6 +148,8 @@ At this point you can run `airbyte-ci` commands.
148
148
- [ ` connectors upgrade_base_image ` command] ( #connectors-upgrade_base_image )
149
149
- [ ` connectors migrate_to_base_image ` command] ( #connectors-migrate_to_base_image )
150
150
- [ ` connectors migrate-to-poetry ` command] ( #connectors-migrate-to-poetry )
151
+ - [ ` connectors migrate_to_inline_schemas ` command] ( #migrate_to_inline_schemas )
152
+ - [ ` connectors pull_request ` command] ( #pull_request )
151
153
- [ ` format ` command subgroup] ( #format-subgroup )
152
154
- [ ` format check ` command] ( #format-check-command )
153
155
- [ ` format fix ` command] ( #format-fix-command )
@@ -464,15 +466,28 @@ Meant to be run on a cron script.
464
466
Actions :
465
467
466
468
* Upgrades dependecies to the current versions
469
+ * Can make a pull request and bump version, changelog
470
+
471
+ ```
472
+ Usage: airbyte-ci connectors up_to_date [ OPTIONS]
473
+
474
+ Options:
475
+ --dev Force update when there are only dev changes.
476
+ --dep TEXT Give a specific set of ` poetry add ` dependencies to update. For
477
+ example: --dep airbyte-cdk==0.80.0 --dep pytest@^6.2
478
+ --report Auto open report browser.
479
+ --pull Create a pull request.
480
+ --help Show this message and exit.
481
+ ```
467
482
468
483
### Examples
469
484
470
- Bump source-openweather :
485
+ Get source-openweather up to date. If there are changes, bump the version and add to changelog :
471
486
472
487
* `airbyte-ci connectors --name=source-openweather up_to_date`: upgrades main dependecies
473
488
* `airbyte-ci connectors --name=source-openweather up_to_date --dev`: forces update if there are only dev changes
474
489
* `airbyte-ci connectors --name=source-openweather up_to_date --dep pytest@^8.10 --dep [email protected] `: allows update to toml files as well
475
-
490
+ * `airbyte-ci connectors --name=source-openweather up_to_date --pull`: make a pull request for it
476
491
477
492
### Other things it could do
478
493
@@ -555,6 +570,60 @@ Migrate connectors the poetry package manager.
555
570
Migrate source-openweather to use the base image:
556
571
`airbyte-ci connectors --name=source-openweather migrate-to-poetry`
557
572
573
+ ### <a id="connectors-migrate_to_inline_schemas"></a>`connectors migrate_to_inline_schemas` command
574
+
575
+ Migrate `.json` schemas into `manifest.yaml` files, when present.
576
+
577
+ ```
578
+ Usage: airbyte-ci connectors migrate_to_inline_schemas [ OPTIONS]
579
+
580
+ Options:
581
+ --report Auto open report browser.
582
+ --help Show this message and exit.
583
+ ```
584
+
585
+ #### Examples
586
+
587
+ Migrate source-quickbooks to use inline schemas:
588
+ `airbyte-ci connectors --name=source-quickbooks migrate_to_inline_schemas`
589
+
590
+ ### <a id="connectors-pull_request"></a>`connectors pull_request` command
591
+
592
+ Makes a pull request for all changed connectors. If the branch already exists, it will update the existing one.
593
+
594
+ ```
595
+ Usage: airbyte-ci connectors pull_request [ OPTIONS]
596
+
597
+ Options:
598
+ -m, --message TEXT Commit message and pull request title and
599
+ changelog (if enabled). [ required]
600
+ -b, --branch_id TEXT update a branch named <branch_id>/<connector-
601
+ name> instead generating one from the message.
602
+ [ required]
603
+ --report Auto open report browser.
604
+ --title TEXT Title of the PR to be created or edited
605
+ (optional - defaults to message or no change).
606
+ --body TEXT Body of the PR to be created or edited (optional
607
+ - defaults to empty or not change).
608
+ --changelog Add message to the changelog for this version.
609
+ --bump [ patch|minor|major] Bump the metadata.yaml version. Can be ` major ` ,
610
+ ` minor ` , or ` patch ` .
611
+ --dry-run Don't actually make the pull requests. Just
612
+ print the files that would be changed.
613
+ --help Show this message and exit.
614
+ ```
615
+
616
+ #### Examples
617
+
618
+ Make a PR for all changes, bump the version and make a changelog in those PRs. They will be on the branch ci_update/round2/<connector-name>:
619
+ `airbyte-ci connectors pull_request -m "upgrading connectors" -b ci_update/round2 --bump patch --changelog`
620
+
621
+ Do it just for a few connectors:
622
+ `airbyte-ci connectors --name source-aha --name source-quickbooks pull_request -m "upgrading connectors" -b ci_update/round2 --bump patch --changelog`
623
+
624
+ You can also set or set/change the title or body of the PR:
625
+ `airbyte-ci connectors --name source-aha --name source-quickbooks pull_request -m "upgrading connectors" -b ci_update/round2 --title "New title" --body "full body\n\ngoes here"`
626
+
558
627
### <a id="format-subgroup"></a>`format` command subgroup
559
628
560
629
Available commands:
0 commit comments