<commit_before>name: Issue Handler

on:
  workflow_dispatch:
  issues:
    types: [opened, labeled, unlabeled]
  issue_comment:
    types: [created]

jobs:
  labeler:
    runs-on: ubuntu-latest
    steps:

    - name: Handle Issues
      uses: jvalkeal/issue-handler@v0.0.4
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        config: >
          {
            "data": {
              "team": [
                "jvalkeal",
                "oodamien",
                "ilayaperumalg",
                "sabbyanandan"
              ]
            },
            "recipes": [
              {
                "name": "Mark new issue to get triaged",
                "type": "ifThen",
                "if": "isAction('opened') && !dataInArray('team', actor)",
                "then": "labelIssue(['status/need-triage'])"
              },
              {
                "name": "Switch to team if user comments",
                "type": "ifThen",
                "if": "isEvent('issue_comment') && isAction('created') && actor == context.payload.issue.user.login && labelsContainsAny('for/team-attention')",
                "then": "[labelIssue('status/need-feedback'), removeLabel('for/team-attention')]"
              },
              {
                "name": "Switch to user if team comments",
                "type": "ifThen",
                "if": "isEvent('issue_comment') && isAction('created') && dataInArray('team', actor) && labelsContainsAny('status/need-feedback') ",
                "then": "[labelIssue('for/team-attention', removeLabel('status/need-feedback'))]"
              },
              {
                "name": "Manage backport issues",
                "type": "manageBackportIssues",
                "whenLabeled": "labeledStartsWith(['branch/'])",
                "whenUnlabeled": "labeledStartsWith(['branch/'])",
                "whenLabels": "labelsContainsAny(['for/backport'])",
                "fromLabels": "labeledStartsWith(['branch/'])",
                "additionalLabels": "'type/backport'",
                "body": "'Backport #' + number"
              }
            ]
          }
<commit_msg>Update issue-handler<commit_after>name: Issue Handler

on:
  workflow_dispatch:
  issues:
    types: [opened, labeled, unlabeled]
  issue_comment:
    types: [created]

jobs:
  labeler:
    runs-on: ubuntu-latest
    steps:

    - name: Handle Issues
      uses: jvalkeal/issue-handler@v0.0.4
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        config: >
          {
            "data": {
              "team": [
                "jvalkeal",
                "oodamien",
                "ilayaperumalg",
                "sabbyanandan",
                "tzolov",
                "chrisjs",
                "cppwfs",
                "mminella",
                "dturanski",
                "onobc",
                "claudiahub",
                "sobychacko"
              ]
            },
            "recipes": [
              {
                "name": "Mark new issue to get triaged",
                "type": "ifThen",
                "if": "isAction('opened') && !dataInArray('team', actor)",
                "then": "labelIssue(['status/need-triage'])"
              },
              {
                "name": "Switch to team if user comments",
                "type": "ifThen",
                "if": "isEvent('issue_comment') && isAction('created') && actor == context.payload.issue.user.login && labelsContainsAny('for/team-attention')",
                "then": "[labelIssue('status/need-feedback'), removeLabel('for/team-attention')]"
              },
              {
                "name": "Switch to user if team comments",
                "type": "ifThen",
                "if": "isEvent('issue_comment') && isAction('created') && dataInArray('team', actor) && labelsContainsAny('status/need-feedback') ",
                "then": "[labelIssue('for/team-attention', removeLabel('status/need-feedback'))]"
              },
              {
                "name": "Manage backport issues",
                "type": "manageBackportIssues",
                "whenLabeled": "labeledStartsWith(['branch/'])",
                "whenUnlabeled": "labeledStartsWith(['branch/'])",
                "whenLabels": "labelsContainsAny(['for/backport'])",
                "fromLabels": "labeledStartsWith(['branch/'])",
                "additionalLabels": "'type/backport'",
                "body": "'Backport #' + number"
              }
            ]
          }

{'fraction_non_alphanumeric': 0.1531791907514451, 'fraction_numerical': 0.0013339261894175188, 'mean_word_length': 1.5375070501974055, 'pattern_counts': {'":': 46, '<': 3, '<?xml version=': 0, '>': 5, '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': '7039887', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1207, 'n_words': 217}