<commit_before># Based on https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
name: Dependabot auto-merge
on: pull_request_target

permissions:
    pull-requests: write
    contents: write

jobs:
    dependabot:
        runs-on: ubuntu-latest
        if: ${{ github.actor == 'dependabot[bot]' }}
        steps:
            - name: Dependabot metadata
              id: metadata
              uses: dependabot/fetch-metadata@v1.3.3
              with:
                  github-token: "${{ secrets.GITHUB_TOKEN }}"
            - name: Enable auto-merge for Dependabot PRs
              # Automatically merge semver-patch and semver-minor PRs
              if: "${{ steps.metadata.outputs.update-type ==
                  'version-update:semver-minor' ||
                  steps.metadata.outputs.update-type ==
                  'version-update:semver-patch' }}"
              run: gh pr merge --auto --delete-branch --squash "$PR_URL"
              env:
                  PR_URL: ${{github.event.pull_request.html_url}}
                  GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}<commit_msg>build(deps): Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 (#430)<commit_after># Based on https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
name: Dependabot auto-merge
on: pull_request_target

permissions:
    pull-requests: write
    contents: write

jobs:
    dependabot:
        runs-on: ubuntu-latest
        if: ${{ github.actor == 'dependabot[bot]' }}
        steps:
            - name: Dependabot metadata
              id: metadata
              uses: dependabot/fetch-metadata@v1.3.4
              with:
                  github-token: "${{ secrets.GITHUB_TOKEN }}"
            - name: Enable auto-merge for Dependabot PRs
              # Automatically merge semver-patch and semver-minor PRs
              if: "${{ steps.metadata.outputs.update-type ==
                  'version-update:semver-minor' ||
                  steps.metadata.outputs.update-type ==
                  'version-update:semver-patch' }}"
              run: gh pr merge --auto --delete-branch --squash "$PR_URL"
              env:
                  PR_URL: ${{github.event.pull_request.html_url}}
                  GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
{'fraction_non_alphanumeric': 0.11976047904191617, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 2.026570048309179, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '812142', 'n_tokens_mistral': 772, 'n_tokens_neox': 729, 'n_words': 130}