Skip to content

docformatter seems to have trouble with linebreaks inside directives in info fields #180

docformatter seems to have trouble with linebreaks inside directives in info fields

docformatter seems to have trouble with linebreaks inside directives in info fields #180

# This workflow runs when labels are applied to issues.
#
# - Get list of labels.
# - Determine issue priority based on labels:
# - C: convention && P: bug --> U: high
# - C: style && P: bug --> U: medium
# - C: stakeholder && P:bug --> U: medium
# - C: convention && P: enhancement --> U: medium
# - C: style && P: enhancement --> U: low
# - C: stakeholder && P: enhancement --> U: low
# - chore || P: docs --> U: low
name: Prioritize Issues Workflow
on:
issues:
types: ['labeled', 'unlabeled']
jobs:
prioritize_issues:
runs-on: ubuntu-latest
steps:
- name: Get Issue Labels
id: getlabels
uses: weibullguy/get-labels-action@main
- name: Add High Urgency Labels
if: "${{ (contains(steps.getlabels.outputs.labels, 'C: convention') && contains (steps.getlabels.outputs.labels, 'P: bug')) }}"
uses: andymckay/labeler@master
with:
add-labels: "U: high"
- name: Add Medium Urgency Labels
if: "${{ (contains(steps.getlabels.outputs.labels, 'C: style') && contains(steps.getlabels.outputs.labels, 'P: bug')) || (contains(steps.getlabels.outputs.labels, 'C: stakeholder') && contains(steps.getlabels.outputs.labels, 'P: bug')) || (contains(steps.getlabels.outputs.labels, 'C: convention') && contains(steps.getlabels.outputs.labels, 'P: enhancement')) }}"
uses: andymckay/labeler@master
with:
add-labels: "U: medium"
- name: Add Low Urgency Labels
if: "${{ (contains(steps.getlabels.outputs.labels, 'C: style') && contains(steps.getlabels.outputs.labels, 'P: enhancement')) || (contains(steps.getlabels.outputs.labels, 'C: stakeholder') && contains(steps.getlabels.outputs.labels, 'P: enhancement')) || contains(steps.getlabels.outputs.labels, 'doc') || contains(steps.getlabels.outputs.labels, 'chore') }}"
uses: andymckay/labeler@master
with:
add-labels: "U: low"