Bump MediatR from 12.2.0 to 12.4.0 in /src/content/CleanArchitecture.Blazored/src/Domain #33
Workflow file for this run
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
on: | |
pull_request_target: | |
types: [ opened ] | |
jobs: | |
pr-bot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v6 | |
with: | |
script: | | |
const pr = context.payload.pull_request; | |
const body = pr.body; | |
let labels = []; | |
const isChecked = /-\s*\[\s*[x|X]\s*\]\s*/; | |
if (RegExp(isChecked.source + "Bug fix \\(non-breaking change which fixes an issue\\)").test(body)) { | |
labels.push("bug"); | |
console.log("PR type: bug fix."); | |
} | |
if(RegExp(isChecked.source + "New Template").test(body)) { | |
labels.push("enhancement"); | |
console.log("PR type: enhancement."); | |
} | |
if(RegExp(isChecked.source + "Template Enhancement").test(body)) { | |
labels.push("enhancement"); | |
labels.push("management"); | |
console.log("PR type: enhancement."); | |
console.log("PR type: management."); | |
} | |
if(!pr.draft) { | |
labels.push("PR: needs review"); | |
} | |
if(labels.length != 0) { | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: labels | |
}) | |
} | |