• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 the V8 project authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5INTERESTING_PATHS = [
6    'AUTHORS',
7    'CODE_OF_CONDUCT.md',
8    'LICENSE',
9    'samples/cppgc/**',
10    'src/base/**',
11    'src/heap/base/**',
12    'src/heap/cppgc/**',
13    'include/cppgc/**',
14    'include/v8config.h',
15    'include/v8-platform.h',
16    'testing/**',
17    'test/unittests/heap/cppgc/**',
18]
19
20origin_url = 'https://chromium.googlesource.com/v8/v8.git'
21# TODO(v8:10724): Add GitHub destination url.
22destination_url = 'TODO'
23
24# This workflow syncs cppgc source inside V8's googlesource repo with GitHub.
25core.workflow(
26    name='default',
27    origin=git.origin(
28        url=origin_url,
29        ref='master',
30    ),
31    destination=git.destination(url=destination_url, ),
32    origin_files=glob(INTERESTING_PATHS,
33                      exclude=['samples/cppgc/cppgc-for-v8-embedders.cc']),
34    destination_files=glob(['**'], exclude=['CMakeLists.txt', 'cmake/**']),
35    mode='SQUASH',
36    authoring=authoring.pass_thru('V8 Team <v8-dev@googlegroups.com>'),
37    transformations=[
38        metadata.squash_notes(prefix='Export of V8 changes from ' +
39                              origin_url + '\n\nList of included changes:\n\n')
40    ]
41)
42