mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
* ci: auto release * fix: bug getting version in qlib/__init__.py * fix: bug getting version in setup.py * fix: bug getting version in qlib/__init__.py * fix: make the code in CI more complete * fix: specify the root directory in the get_verison method * fix: parameter error * update: optimize code && add comments
36 lines
877 B
YAML
36 lines
877 B
YAML
name: Lint pull request title
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- edited
|
|
|
|
concurrency:
|
|
cancel-in-progress: true
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
lint-title:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# This step is necessary because the lint title uses the .commitlintrc.js file in the project root directory.
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '16'
|
|
|
|
- name: Install commitlint
|
|
run: npm install --save-dev @commitlint/{config-conventional,cli}
|
|
|
|
- name: Validate PR Title with commitlint
|
|
env:
|
|
BODY: ${{ github.event.pull_request.title }}
|
|
run: |
|
|
echo "$BODY" | npx commitlint --config .commitlintrc.js
|