I believe URL_REGEX is missing a |
#157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |