github.com/waldiirawan/apm-agent-go/v2@v2.2.2/.ci/update-specs.yml (about)

     1  name: update-specs
     2  
     3  title: synchronize schema specs
     4  
     5  scms:
     6    default:
     7      kind: github
     8      spec:
     9        user: '{{ requiredEnv "GIT_USER" }}'
    10        email: '{{ requiredEnv "GIT_EMAIL" }}'
    11        owner: elastic
    12        repository: apm-agent-go
    13        token: '{{ requiredEnv "GITHUB_TOKEN" }}'
    14        username: '{{ requiredEnv "GIT_USER" }}'
    15        branch: main
    16  
    17  sources:
    18    sha:
    19      kind: file
    20      spec:
    21        file: 'https://github.com/elastic/apm-data/commit/main.patch'
    22        matchpattern: "^From\\s([0-9a-f]{40})\\s"
    23      transformers:
    24        - findsubmatch:
    25            pattern: "[0-9a-f]{40}"
    26    error.json:
    27      kind: file
    28      spec:
    29        file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/error.json
    30    metadata.json:
    31      kind: file
    32      spec:
    33        file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/metadata.json
    34    metricset.json:
    35      kind: file
    36      spec:
    37        file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/metricset.json
    38    span.json:
    39      kind: file
    40      spec:
    41        file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/span.json
    42    transaction.json:
    43      kind: file
    44      spec:
    45        file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/transaction.json
    46  
    47  actions:
    48    pr:
    49      kind: "github/pullrequest"
    50      scmid: default
    51      sourceid: sha
    52      spec:
    53        automerge: false
    54        draft: false
    55        labels:
    56          - "automation"
    57        description: |-
    58          ### What
    59          APM agent json schema automatic sync
    60          ### Why
    61          *Changeset*
    62          * https://github.com/elastic/apm-data/commit/{{ source "sha" }}
    63  
    64  targets:
    65    error.json:
    66      name: error.json
    67      scmid: default
    68      sourceid: error.json
    69      kind: file
    70      spec:
    71        file: internal/apmschema/jsonschema/error.json
    72        forcecreate: true
    73    metadata.json:
    74      name: metadata.json
    75      scmid: default
    76      sourceid: metadata.json
    77      kind: file
    78      spec:
    79        file: internal/apmschema/jsonschema/metadata.json
    80        forcecreate: true
    81    metricset.json:
    82      name: metricset.json
    83      scmid: default
    84      sourceid: metricset.json
    85      kind: file
    86      spec:
    87        file: internal/apmschema/jsonschema/metricset.json
    88        forcecreate: true
    89    span.json:
    90      name: span.json
    91      scmid: default
    92      sourceid: span.json
    93      kind: file
    94      spec:
    95        file: internal/apmschema/jsonschema/span.json
    96        forcecreate: true
    97    transaction.json:
    98      name: transaction.json
    99      scmid: default
   100      sourceid: transaction.json
   101      kind: file
   102      spec:
   103        file: internal/apmschema/jsonschema/transaction.json
   104        forcecreate: true