<commit_before>name: Merge

on:
  pull_request_review:
    types:
      - submitted

jobs:
  debug:
    runs-on: ubuntu-latest
    steps:
      - run: echo "hi there"

  merge:
    name: Merge pull request
    if: |
      github.event.review.state == 'approved' &&
      startsWith(github.head_ref, 'dependabot/')
    runs-on: ubuntu-latest
    steps:
      - name: Merge
        uses: actions/github-script@v3
        with:
          github-token: ${{ secrets.DOMAINRBOT_RW_GITHUB_ACCESS_TOKEN }}
          script: |
            github.pulls.merge({
              owner: context.payload.repository.owner.login,
              repo: context.payload.repository.name,
              pull_number: context.payload.pull_request.number,
              merge_method: 'merge'
            })<commit_msg>.github/workflows/automerge: more debugging<commit_after>name: Merge

on:
  pull_request_review:
    types:
      - submitted

jobs:
  debug:
    runs-on: ubuntu-latest
    steps:
      - run: echo ${{ github.event.review.state }}
      - run: echo ${{ github.head_ref }}
      - run: echo ${{ github.ref }}

  merge:
    name: Merge pull request
    if: |
      github.event.review.state == 'approved' &&
      startsWith(github.head_ref, 'dependabot/')
    runs-on: ubuntu-latest
    steps:
      - name: Merge
        uses: actions/github-script@v3
        with:
          github-token: ${{ secrets.DOMAINRBOT_RW_GITHUB_ACCESS_TOKEN }}
          script: |
            github.pulls.merge({
              owner: context.payload.repository.owner.login,
              repo: context.payload.repository.name,
              pull_number: context.payload.pull_request.number,
              merge_method: 'merge'
            })
{'fraction_non_alphanumeric': 0.11338398597311514, 'fraction_numerical': 0.0011689070718877848, 'mean_word_length': 2.0140845070422535, 'pattern_counts': {'":': 0, '<': 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': '1985028', 'n_tokens_mistral': 548, 'n_tokens_neox': 526, 'n_words': 97}