fix(di): dynamic function discovery fallback [backport 3.10] #823
Workflow file for this run
This file contains hidden or 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
| name: Add 2.21 backport tag | |
| on: | |
| pull_request: | |
| types: [opened, reopened] | |
| jobs: | |
| add-label: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Add Label | |
| uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
| with: | |
| script: | | |
| const prTitle = context.payload.pull_request.title; | |
| const pattern = /^(ci:|fix:|fix\(|chore\(ci\)|fix\(ci\))/i; | |
| if (!prTitle.includes("[backport ") && pattern.test(prTitle)) { | |
| github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.payload.pull_request.number, | |
| labels: ["backport 2.21"] | |
| }); | |
| console.log("Label added."); | |
| } else { | |
| console.log("Skipping label: PR does not meet conditions."); | |
| } |