2024-03-28 20:46:41 +01:00
|
|
|
version: 1.0.0
|
|
|
|
filters:
|
|
|
|
- "OWNERS.yml":
|
|
|
|
approvers:
|
2024-09-20 22:03:27 +02:00
|
|
|
- 10gen/server-root-ownership
|
2024-09-10 01:06:05 +02:00
|
|
|
metadata:
|
|
|
|
emeritus_approvers:
|
|
|
|
- visemet # TODO: add back to approvers once project work is finished
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".bazelignore":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".bazelrc":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".bazelversion":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".clang-format":
|
|
|
|
approvers:
|
2024-11-14 14:59:08 +01:00
|
|
|
- 10gen/server-programmability
|
|
|
|
- ".clang-tidy.in":
|
|
|
|
approvers:
|
|
|
|
- 10gen/server-programmability
|
2024-04-04 20:13:22 +02:00
|
|
|
- ".eslintignore":
|
2024-03-28 20:46:41 +01:00
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".eslintrc.yml":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-08-26 19:19:50 +02:00
|
|
|
- ".gitignore":
|
|
|
|
approvers:
|
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".mypy.ini":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".prettierignore":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- ".prettierrc":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- "BUILD.bazel":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-build
|
SERVER-90928 Remove lines other than commit title from syncing (#22589)
# Issue
Remove lines other than commit title from syncing
# Description
SERVER-90928 Remove lines other than commit title from syncing to the
public repo
# Testing
This was tested locally. I tested on the commits in this PR and it seems
to be synced correctly. The staging file I used was
```
# 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 = "/Users/alexander.neben/workspace/mongo2"
destinationUrl = "/Users/alexander.neben/workspace/mongodb-mongo"
# sourceUrl = "git@github.com:10gen/mongo.git"
# destinationUrl = "git@github.com:10gen/mongo-copybara.git"
core.workflow(
name = "default",
origin = git.origin(
url = sourceUrl,
ref = "IamXander/prune_commit",
),
destination = git.destination(
url = destinationUrl,
fetch = "IamXander/prune_commit",
push = "IamXander/prune_commit",
),
# 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",
# Change the path here to the folder you want to publish publicly
transformations = [
metadata.scrubber("(^.*?)\n((\n|.)*)", replacement = "$1"),
],
)
```
Running git log on `/Users/alexander.neben/workspace/mongodb-mongo`
returns the following
```
commit 8a4879557893ae942f793ad707d56e255bebc72d (HEAD -> IamXander/prune_commit)
Author: Alex Neben <alex.neben@mongodb.com>
Date: Tue May 28 08:55:38 2024 -0700
fixes
GitOrigin-RevId: 3ffa6b95d44ec3fef7e715a3f24652966861f4e1
commit 66cdb3631be92ced2123c7e3fab39e24bed91b2b
Author: Alex Neben <alex.neben@mongodb.com>
Date: Tue May 28 08:50:07 2024 -0700
SERVER-90928 Remove lines other than commit title from syncing
GitOrigin-RevId: 7d90f0f69a17943fb68ba23e2f135d08c00c4943
commit 0063834a4fa519727cc6b816995ea56d9b3328fe
Author: Alex Neben <alex.neben@mongodb.com>
Date: Tue May 28 08:12:24 2024 -0700
SERVER-XYZ asdasdkjfhaskdf akjdhkjashdkjashd example
GitOrigin-RevId: 298831cd1d55319ea368fdd2f1dc604368d94889
commit fc7f29486d762a740c3ebe01c3b7d69a477abe75
Author: Alex Neben <alex.neben@mongodb.com>
Date: Fri May 24 13:55:21 2024 -0700
prune commit message
GitOrigin-RevId: 43692434bf664fe593ee7eb5f53372ca331ecec9
```
Which shows no data after the newline. It also does not include
enterprise code.
GitOrigin-RevId: f78828e412e3ac510c6e56feb541146c688b7603
2024-05-28 23:22:24 +02:00
|
|
|
- "copy.bara.sky":
|
2024-03-28 20:46:41 +01:00
|
|
|
approvers:
|
|
|
|
- IamXander
|
2024-09-16 15:48:15 +02:00
|
|
|
- smcclure15
|
2024-09-16 17:20:10 +02:00
|
|
|
- "copy.bara.staging.sky":
|
2024-03-28 20:46:41 +01:00
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- "jsconfig.json":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- "package.json":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- "pnpm-lock.yaml":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
2024-03-28 20:46:41 +01:00
|
|
|
- "poetry.lock":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- "pyproject.toml":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-correctness
|
|
|
|
- 10gen/devprod-build
|
2024-05-24 22:27:21 +02:00
|
|
|
- "sbom.json":
|
|
|
|
approvers:
|
|
|
|
- 10gen/server-security
|
2024-03-28 20:46:41 +01:00
|
|
|
- "SConstruct":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-build
|
2024-03-28 20:46:41 +01:00
|
|
|
- "WORKSPACE.bazel":
|
|
|
|
approvers:
|
2024-04-04 23:33:10 +02:00
|
|
|
- 10gen/devprod-build
|