Skip to content

[refactor] #4323: telemetry features, tokio console, logs, and configuration #2413

[refactor] #4323: telemetry features, tokio console, logs, and configuration

[refactor] #4323: telemetry features, tokio console, logs, and configuration #2413

name: I2::Dev::Title
on:
pull_request_target:
branches: [iroha2-dev]
types: [opened, edited, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Feature
uses: actions-ecosystem/action-regex-match@v2
id: feature-match
with:
text: ${{ github.event.pull_request.title }}
regex: '^\[feature\] #\d+(, #\d+)*: .+$'
- name: Add feature label
uses: actions-ecosystem/action-add-labels@v1
if: steps.feature-match.outputs.match != ''
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
labels: |
Enhancement
- name: Refactor
uses: actions-ecosystem/action-regex-match@v2
id: refactor-match
if: steps.feature-match.outputs.match == ''
with:
text: ${{ github.event.pull_request.title }}
regex: '^\[refactor\]( #\d+(, #\d+)*)?: .+$'
- name: Add Refactor label
uses: actions-ecosystem/action-add-labels@v1
if: steps.refactor-match.outputs.match != ''
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
labels: |
Refactor
- name: Fix
uses: actions-ecosystem/action-regex-match@v2
id: fix-match
if: steps.refactor-match.outputs.match == ''
with:
text: ${{ github.event.pull_request.title }}
regex: '\[fix\] #\d+(, #\d+)*: .+$'
- name: Add fix label
uses: actions-ecosystem/action-add-labels@v1
if: steps.fix-match.outputs.match != ''
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
labels: |
Bug
- name: Documentation
uses: actions-ecosystem/action-regex-match@v2
id: docs-match
if: steps.feature-match.outputs.match == ''
with:
text: ${{ github.event.pull_request.title }}
regex: '^\[documentation\]( #\d+(, #\d+)*)?: .+$'
- name: Add Documentation label
uses: actions-ecosystem/action-add-labels@v1
if: steps.docs-match.outputs.match != ''
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
labels: |
Documentation
- name: CI
uses: actions-ecosystem/action-regex-match@v2
id: ci-match
if: steps.feature-match.outputs.match == ''
with:
text: ${{ github.event.pull_request.title }}
regex: '^\[ci\]( #\d+(, #\d+)*)?: .+$'
- name: Add CI label
uses: actions-ecosystem/action-add-labels@v1
if: steps.ci-match.outputs.match != ''
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
labels: |
CI
- name: None of the above
if: steps.fix-match.outputs.match == '' && steps.refactor-match.outputs.match == '' && steps.feature-match.outputs.match == '' && steps.docs-match.outputs.match == '' && steps.ci-match.outputs.match == ''
run: exit 1