Skip to content

fix(cli): handle piped config pull input (CLI-2425) #8171

fix(cli): handle piped config pull input (CLI-2425)

fix(cli): handle piped config pull input (CLI-2425) #8171

name: Lint Pull Request
# Release-notes PRs (head ref `release-notes/*`) skip CI; only
# apply-release-notes.yml runs for those.
#
# Draft PRs skip this check unless they carry `run-ci` (same opt-in as Test).
# Label events retrigger this cheap check so adding `run-ci` on a draft starts
# lint without waiting for a push.
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- labeled
- unlabeled
merge_group:
types:
- checks_requested
branches:
- develop
permissions:
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
main:
if: |
github.event_name == 'merge_group' ||
(github.event_name == 'pull_request_target' &&
!startsWith(github.event.pull_request.head.ref, 'release-notes/') &&
(github.event.pull_request.draft == false ||
contains(github.event.pull_request.labels.*.name, 'run-ci')))
name: Lint Pull Request
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'pull_request_target'
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Keep this scope list in sync with commitlint.config.js.
with:
scopes: |
api
cli
cli-e2e
cli-go
cli-test-helpers
config
docs
process-compose
stack
ci
repo
misc
release
- if: github.event_name == 'merge_group'
run: echo "Merge queue entry does not have a pull request payload; reporting success for the required lint check."