feat: define custom clinets for management identity #21811
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: Repo - Pull Request Conventions | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| jobs: | |
| check: | |
| name: Check PR Conventions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| types: | | |
| feat | |
| fix | |
| refactor | |
| revert | |
| test | |
| docs | |
| style | |
| build | |
| ci | |
| cd | |
| chore | |
| chore(deps) | |
| chore(release) | |
| deps | |
| # Configure additional validation for the subject based on a regex. | |
| # Ensures the subject doesn't start with an uppercase character. | |
| # Also ensures the subject doesn't contain parentheses (we don't use scope in commit titles). | |
| subjectPattern: ^(?![A-Z])(?!.*[()]).+$ | |
| # Ignore release PR since it's different and already automated. | |
| ignoreLabels: | | |
| release/pr | |
| dependencies | |
| automation/renovatebot | |
| # When using "Squash and merge" on a PR with only one commit, GitHub | |
| # will suggest using that commit message instead of the PR title for the | |
| # merge commit, and it's easy to commit this by mistake. Enable this option | |
| # to also validate the commit message for one commit PRs. | |
| validateSingleCommit: true | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| fetch-depth: 0 | |
| - name: Ensure PR branch is up to date | |
| run: | | |
| (git rev-list --left-right --count origin/main...HEAD | grep -q "^0") \ | |
| || (echo "PR branch is not up to date with main. Please rebase or merge main into your branch." && exit 1) \ | |
| && echo "PR branch is up to date with main." |