feat: Show filename when importing with PartSeg in napari #1866
This file contains 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: Check PR title | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
- labeled | |
- unlabeled | |
pull_request: | |
paths: | |
- '.github/workflows/check_pr_title.yml' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
permissions: | |
statuses: write | |
steps: | |
- uses: aslafy-z/conventional-pr-title-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
spellcheck: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip check PR title') }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Install aspell | |
run: sudo apt-get install aspell | |
- name: Check PR title spelling | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
echo "$PR_TITLE" | |
if aspell --personal="./.github/project_dict.pws" list <<< "$PR_TITLE" | grep -q .; then | |
echo "Misspelled words found." | |
aspell --personal="./.github/project_dict.pws" list <<< "$PR_TITLE" | |
exit 1 | |
else | |
echo "No misspelled words found." | |
exit 0 | |
fi |