Add Gaussian noise 3D transform and augmentation #94
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: pr-policy | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, labeled] | |
| jobs: | |
| branch-name: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check branch | |
| run: | | |
| BRANCH="${{ github.head_ref }}" | |
| echo "Branch: $BRANCH" | |
| if [[ "$BRANCH" =~ ^(feature|bugfix|hotfix|refactor|docs|chore|ci|tests|perf|build)\/[a-z0-9][a-z0-9_-]*$ ]]; then | |
| echo "Branch name conforms to policy."; exit 0 | |
| elif [[ "$BRANCH" =~ ^(release|dependabot)\/.*$ ]]; then | |
| echo "Branch is an allowed exception (release/dependabot)."; exit 0 | |
| else | |
| echo "::error ::Branch name '$BRANCH' does not match required pattern (feature|bugfix|hotfix|refactor|docs|chore|ci|tests|perf|build)/[a-z0-9][a-z0-9_-]*"; exit 1 | |
| fi | |
| pr-labels: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check labels | |
| uses: actions-ecosystem/action-release-label@v1 | |
| if: always() | |
| - name: Validate labels manually | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const required = ["feature","enhancement","bug","fix","documentation","maintenance","release","refactor","tests","ci","breaking-change"]; | |
| const pr = context.payload.pull_request; | |
| const labels = pr.labels.map(l => l.name); | |
| core.info(`PR labels: ${labels.join(', ')}`); | |
| if (!labels.some(l => required.includes(l))) { | |
| core.setFailed("At least one category label (feature|bug|fix|documentation|maintenance|release|refactor|tests|ci|breaking-change) is required."); | |
| } |