Skip to content

Commit 79363ed

Browse files
authored
Merge pull request #1 from Wacken2012/test/pr-labeler-check
test: PR labeler + template check
2 parents 0e01ed3 + 649b946 commit 79363ed

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
feature:
2+
- src/**
3+
bug:
4+
- src/**
5+
docs:
6+
- docs/**
7+
- README*.md
8+
tests:
9+
- tests/**
10+
ci:
11+
- .github/workflows/**
12+
tests:
13+
- "tests/**"
14+
docs:
15+
- "docs/**"
16+
- "README*.md"
17+
ci:
18+
- ".github/workflows/**"
19+
directives:
20+
- "src/directives/**"
21+
services:
22+
- "src/services/**"
23+
stores:
24+
- "src/stores/**"

.github/workflows/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "PR Labeler"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
6+
jobs:
7+
label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/labeler@v5
11+
with:
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

tests/services/permissionService.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('PermissionService', () => {
2424

2525
it('denies access for undefined/unknown role', () => {
2626
// simulate an unknown role at runtime
27+
// non-functional comment added to trigger PR labeler test
2728
const user = { role: 'gast' as unknown as Role }
2829
expect(canAccessCalendar(user)).toBe(false)
2930
})

0 commit comments

Comments
 (0)