diff options
Diffstat (limited to 'copy.bara.sky')
| -rw-r--r-- | copy.bara.sky | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/copy.bara.sky b/copy.bara.sky deleted file mode 100644 index 8a54633060c..00000000000 --- a/copy.bara.sky +++ /dev/null @@ -1,33 +0,0 @@ -# This configuration is for migrating code from one Git repository to another using Copybara. -# It selectively copies content, excluding specific paths and preserving authorship. - -# To test locally -# sourceUrl = "/path/to/source" -# destinationUrl = "/path/to/dest" - -sourceUrl = "git@github.com:10gen/mongo.git" -destinationUrl = "git@github.com:mongodb/mongo.git" - -core.workflow( - name = "default", - origin = git.origin( - url = sourceUrl, - ref = "v6.0", - ), - destination = git.destination( - url = destinationUrl, - fetch = "v6.0", - push = "v6.0", - ), - # Change path to the folder you want to publish publicly - origin_files = glob(["**"], exclude = ["src/mongo/db/modules/**"]), - authoring = authoring.pass_thru("MongoDB <mongodb@mongodb.com>"), - mode = "ITERATIVE", - transformations = [ - # (^.*?) - matches the first line (without the newline char) - # \n - matches the first newline (or nothing at all if there is no newline). If there is no match then nopthing happens - # ((\n|.)*) - matches everything after - # Overall, this copies only the first line of the commit rather than the body - metadata.scrubber("(^.*?)\n((\n|.)*)", replacement = "$1"), - ], -) |
