Skip to content

feat: add a new file yutouqwq #3

feat: add a new file yutouqwq

feat: add a new file yutouqwq #3

Workflow file for this run

name: Pull Request Checker
on:
pull_request:
branches:
- main
permissions:
pull-requests: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- run: |
npm install --save-dev @commitlint/config-angular @commitlint/cli
echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
# Run the commitlint action, considering its own dependencies and yours as well 🚀
# `github.workspace` is the path to your repository.
- uses: wagoid/commitlint-github-action@v5
env:
NODE_PATH: ${{ github.workspace }}/node_modules
with:
helpURL: 'https://github.com/FrogDar/code-contributing-practice/blob/main/CONTRIBUTING.md'
# check if the PR close an issue in PR body
- name: Check if the PR close an issue in PR body
run: |
if ! echo "${{ github.event.pull_request.body }}" | grep -q "close" ; then
echo "No issue closed in the PR body. Please add a line like 'close #123' to the PR body."
exit 1
fi