<commit_before>name: Test Pull Request

on:
  pull_request:
    branches:
    - main

jobs:
  integration:
    name: Unit Tests
    runs-on: ubuntu-latest
    steps:

    - name: Setup Go
      uses: actions/setup-go@v1
      with:
        go-version: 1.16

    - name: Checkout
      uses: actions/checkout@v2

    - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true

    - name: Run Unit Tests
      run: ./scripts/unit.sh

  approve:
    name: Approve Bot PRs
    if: ${{ github.event.pull_request.user.login == 'cf-buildpacks-eng' || github.event.pull_request.user.login == 'dependabot[bot]' }}
    runs-on: ubuntu-latest
    needs: integration
    steps:

    - name: Check Commit Verification
      id: unverified-commits
      uses: paketo-buildpacks/github-config/actions/pull-request/check-unverified-commits@main
      with:
        token: ${{ secrets.CF_BOT_TOKEN }}
        repo: ${{ github.repository }}
        number: ${{ github.event.number }}

    - name: Check for Human Commits
      id: human-commits
      uses: paketo-buildpacks/github-config/actions/pull-request/check-human-commits@main
      with:
        token: ${{ secrets.CF_BOT_TOKEN }}
        repo: ${{ github.repository }}
        number: ${{ github.event.number }}
        bots: 'dependabot[bot],web-flow,cf-buildpacks-eng'

    - name: Checkout
      if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
      uses: actions/checkout@v2

    - name: Dispatch
      if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
      uses: paketo-buildpacks/github-config/actions/dispatch@main
      with:
        repos: ${{ github.repository }}
        token: ${{ secrets.CF_BOT_TOKEN }}
        event: approve-bot-pr
        payload: |
          {
            "number": "${{ github.event.pull_request.number }}",
            "login": "${{ github.event.pull_request.user.login }}"
          }
<commit_msg>Updating github-config<commit_after>name: Test Pull Request

on:
  pull_request:
    branches:
    - main

jobs:
  integration:
    name: Unit Tests
    runs-on: ubuntu-latest
    steps:

    - name: Setup Go
      uses: actions/setup-go@v1
      with:
        go-version: 1.17.x

    - name: Checkout
      uses: actions/checkout@v2

    - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true

    - name: Run Unit Tests
      run: ./scripts/unit.sh

  approve:
    name: Approve Bot PRs
    if: ${{ github.event.pull_request.user.login == 'cf-buildpacks-eng' || github.event.pull_request.user.login == 'dependabot[bot]' }}
    runs-on: ubuntu-latest
    needs: integration
    steps:

    - name: Check Commit Verification
      id: unverified-commits
      uses: paketo-buildpacks/github-config/actions/pull-request/check-unverified-commits@main
      with:
        token: ${{ secrets.CF_BOT_TOKEN }}
        repo: ${{ github.repository }}
        number: ${{ github.event.number }}

    - name: Check for Human Commits
      id: human-commits
      uses: paketo-buildpacks/github-config/actions/pull-request/check-human-commits@main
      with:
        token: ${{ secrets.CF_BOT_TOKEN }}
        repo: ${{ github.repository }}
        number: ${{ github.event.number }}
        bots: 'dependabot[bot],web-flow,cf-buildpacks-eng'

    - name: Checkout
      if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
      uses: actions/checkout@v2

    - name: Dispatch
      if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
      uses: paketo-buildpacks/github-config/actions/dispatch@main
      with:
        repos: ${{ github.repository }}
        token: ${{ secrets.CF_BOT_TOKEN }}
        event: approve-bot-pr
        payload: |
          {
            "number": "${{ github.event.pull_request.number }}",
            "login": "${{ github.event.pull_request.user.login }}"
          }

{'fraction_non_alphanumeric': 0.1353272860995342, 'fraction_numerical': 0.003432213777886737, 'mean_word_length': 2.4812286689419794, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '917135', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1310, 'n_words': 239}