[datadog_metrics] add 'datadog_metrics' data source #9214
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: "Ensure labels" | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| types: | |
| - labeled | |
| - unlabeled | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| - edited | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check changelog label | |
| if: github.event.pull_request.draft == false && false == contains(join(github.event.pull_request.labels.*.name, ','), 'changelog/') | |
| run: |- | |
| echo "::error::Add 'changelog/*' label"; | |
| exit 1; | |
| - name: Check PR title | |
| if: github.event.pull_request.draft == false && false == contains(join(github.event.pull_request.labels.*.name, ','), 'changelog/note') && false == contains(join(github.event.pull_request.labels.*.name, ','), 'changelog/no-changelog') | |
| uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 | |
| with: | |
| script: | | |
| const re = new RegExp('\\[\\w+\\] \\w+'); | |
| const title = context.payload.pull_request.title; | |
| if (!re.test(title)) { | |
| core.setFailed("Invalid title format: use '[resource_name] Description'"); | |
| } |