<commit_before># Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.


name: Semantic Pull Request

on:
  pull_request:
    types:
      - opened
      - reopened
      - edited

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
  cancel-in-progress: true

jobs:
  main:
    name: Check pull request title
    runs-on: ubuntu-latest
    steps:
      - uses: amannn/action-semantic-pull-request@v5.0.2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          # Type abbreviation comments:
          # feat -> feature
          types: |
            cleanup
            feat
            fix
            improve
            refactor
            revert
          # Scope abbreviation comments:
          # cli     -> command line interface
          # fn      -> Pulsar Functions
          # io      -> Pulsar Connectors
          # offload -> tiered storage
          # sec     -> security
          # sql     -> Pulsar Trino Plugin
          # txn     -> transaction
          # ws      -> websocket
          # ml      -> managed ledger
          scopes: |
            admin
            broker
            ml
            build
            ci
            cli
            client
            doc
            fn
            io
            meta
            misc
            monitor
            offload
            proxy
            schema
            sec
            site
            sql
            storage
            test
            txn
            ws
          # The pull request's title should be fulfill the following pattern:
          #
          #     [<type>][<optional scope>] <description>
          #<commit_msg>[improve][ci] Add zk and bk for semantic check (#18096)<commit_after># Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.


name: Semantic Pull Request

on:
  pull_request:
    types:
      - opened
      - reopened
      - edited

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
  cancel-in-progress: true

jobs:
  main:
    name: Check pull request title
    runs-on: ubuntu-latest
    steps:
      - uses: amannn/action-semantic-pull-request@v5.0.2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          # Type abbreviation comments:
          # feat -> feature
          types: |
            cleanup
            feat
            fix
            improve
            refactor
            revert
          # Scope abbreviation comments:
          # cli     -> command line interface
          # fn      -> Pulsar Functions
          # io      -> Pulsar Connectors
          # offload -> tiered storage
          # sec     -> security
          # sql     -> Pulsar Trino Plugin
          # txn     -> transaction
          # ws      -> websocket
          # ml      -> managed ledger
          # zk      -> zookeeper
          # bk      -> bookkeeper
          scopes: |
            admin
            broker
            ml
            build
            ci
            cli
            client
            doc
            fn
            io
            meta
            misc
            monitor
            offload
            proxy
            schema
            sec
            site
            sql
            storage
            test
            txn
            ws
            zk
            bk
          # The pull request's title should be fulfill the following pattern:
          #
          #     [<type>][<optional scope>] <description>
          #
{'fraction_non_alphanumeric': 0.06642584788280152, 'fraction_numerical': 0.00381296407786474, 'mean_word_length': 1.4636678200692042, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5927773', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1222, 'n_words': 462}