Skip to content

The distribution options within the descriptive function flash and the skew value appears as an error. #1129

The distribution options within the descriptive function flash and the skew value appears as an error.

The distribution options within the descriptive function flash and the skew value appears as an error. #1129

# The script consists of several steps:
# 1. define module keyword patterns, the designated label and assignee
# 2. define operating system keyword patterns, and the designated label
# 3. get the info about the issue
# 4. check if module keyword pattern matches text in the issue,
# looping over all patterns:
# - if pattern is found, label the issue, and assign the maintainer
# - if the pattern is not found, check if the label or assignee for the pattern
# is attached to the issue and remove them
# 5. do 4 but with OS keyword patterns
# so far this workflow works best with the bug_template.
# some resources: https://github.com/actions/github-script
# https://octokit.github.io/rest.js/v19
# https://docs.github.com/en/rest
name: Label and Assign
on:
issues:
types:
- opened
- reopened
jobs:
Bug-label-and-assign:
runs-on: ubuntu-latest
if: ${{ contains(github.event.issue.labels.*.name, 'Bug') }}
steps:
- uses: actions/checkout@v3
- uses: actions/github-script@v6
with:
script: |
const keyFun = require('./.github/scripts/keywords.js');
const keywords = keyFun();
const script = require('./.github/scripts/bug_labelAssign.js');
script({github, context}, keywords);
Feature-label-and-assign:
runs-on: ubuntu-latest
if: ${{ contains(github.event.issue.labels.*.name, 'Feature Request') }}
steps:
- uses: actions/checkout@v3
- uses: actions/github-script@v6
with:
script: |
const keyFun = require('./.github/scripts/keywords.js');
const keywords = keyFun();
const script = require('./.github/scripts/feature_labelAssign.js');
script({github, context}, keywords);