Skip to content

Releases: nathro/AutoTransform

Release 1.0.3

23 Aug 22:35
Compare
Choose a tag to compare

Migrations

  • GithubRunner has been updated to work with the new workflows included in examples. This requires use of the schema_map.json file and having the workflows use the schema names, rather than JSON encoded schemas. This ensures that any schema run by the bot is present in the repo. Replace existing workflows with new workflows in examples/workflows.
  • Updated migration commands.
  • atmigrate-1.0.1 to migrate Manager for 1.0.1 changes.
  • atmigrate-1.0.3 to migrate Scheduler/Schema Map for 1.0.3 changes.

Documentation

  • Added documentation for creating and using custom components, including an example PR.

New Components

  • Added ExtraDataBatcher that allows batching items using the extra_data field of the items.
  • Added FileRegexBatcher that allows using regexes against file contents to produces batches with metadata.

Features

  • Added a max_submissions option to schema configs and scheduling to allow slower rollouts for changes that can prevent overwhelming code review.
  • Update Change to have get_schema_name() that is used for Condition. This allows GithubChange to pull schema name from the branch.
  • Add a schema_map.json file and some associated functionality to run command so that workflows can be moved to rely on information in the repo when determining schemas and no longer pass JSON encoded schemas around.
  • Make run github workflow use the schema name.
  • Added in/not in comparisons.

Fixes

  • Fix workflows to checkout the repo as the supplied bot, rather than as github-actions bot. This should prevent issues involving branch protection rules and force-pushes appearing under the wrong name.

Release 1.0.2

15 Aug 19:49
Compare
Choose a tag to compare

New Components

  • InlineInput for inlining Items.
  • InlineFileInput for inline FileItems.
  • InlineGenericInput for inlining Items using keys.
  • LibCSTTransformer for libcst based transformations. Check out https://github.com/Instagram/LibCST for info on libcst.
  • JSCodeshiftTransformer for jscodeshift based transformations. Check out https://github.com/facebook/jscodeshift for info on JSCodeshift.

Features

  • Update GithubRepo to use a dataclass for metadata to improve type safety/checking.
  • Update GithubRepo to allow Pull Requests from forks.
  • Updated debug logging to be more readable and include appropriate information.

Release 1.0.1

15 Aug 19:05
Compare
Choose a tag to compare

This update focuses on improvements to managing changes, increasing the power of actions and adding many more actions.

Migrations

  • autotransform.scripts.migrations.manager migration script for migrating Manager JSON files.
  • Run atmigrate-manager to migrate Manager JSON files.
  • Step components now return a List of Actions, which are now fully-fledged NamedComponents. This is simply moving from an enum to a class for most cases.
  • Step components now have a method to check if management should be continued.
  • Changed comparison enum values, migrate with the migration script for Manager files.
  • Conditional steps now take a list of actions instead of an action name. Old JSON will maintain compatability until v1.1.

Features

  • Updated repos to check for outstanding changes before running a Batch. If an outstanding change is found (the branch already exists for Git/Github), transformation is skipped.
  • Made Actions fully-fledged components to enable Actions with parameters.

New Components

  • AddReviewersAction added.
  • AddOwnersAsReviewersAction added.
  • AddOwnersAsTeamReviewersAction added.
  • AddLabelsAction added.
  • CommentAction added.
  • RemoveLabelAction added.
  • ReviewersCondition added.
  • TeamReviewersCondition added.
  • LabelsCondition added.

Release 1.0.0

13 Jul 22:36
Compare
Choose a tag to compare

AutoTransform is out of alpha and is production ready!

Release 0.3.1

11 Jun 08:13
Compare
Choose a tag to compare
Release-0.3.1

Release 0.3.1

Release 0.3.0

03 Jun 17:44
Compare
Choose a tag to compare
Release-0.3.0

Release 0.3.0

Release 0.2.1

23 May 22:39
Compare
Choose a tag to compare

Release 0.2.1 - Production Beta

API Change

  • Made it so Transformer objects could return a result that would be used by the Repo/Validator/Commands

Misc

  • Added an optional owners list to Schemas
  • Added a skip_empty_batch option for SingleBatcher
  • Set minimum versions for requirements in package
  • Replaced PyGithub with ghapi
  • Added configparser requirement

Release 0.2.0

05 May 04:08
Compare
Choose a tag to compare
Release-0.2.0

Release 0.2.0