Skip to content

Commit 41bf5ad

Browse files
authored
Merge pull request #5 from 42ByteLabs/labeler
Add Labeler
2 parents cf32bfb + 8c480ce commit 41bf5ad

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.github/labeler.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
docs:
2+
- changed-files:
3+
- any-glob-to-any-file: '**/*.md'
4+
5+
action:
6+
- changed-files:
7+
- any-glob-to-any-file: '.github/action/*'
8+
9+
lib:
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- 'src/'
13+
14+
cli:
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- 'geekorm-cli/'
18+
19+
lib-core:
20+
- changed-files:
21+
- any-glob-to-any-file:
22+
- 'geekorm-core/'
23+
24+
lib-derive:
25+
- changed-files:
26+
- any-glob-to-any-file:
27+
- 'geekorm-derive/'
28+
29+
examples:
30+
- changed-files:
31+
- any-glob-to-any-file:
32+
- 'examples/'
33+

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,36 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
19+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
20+
id: changes
21+
with:
22+
filters: |
23+
src:
24+
- '**/Cargo.*'
25+
- 'rust-toolchain.toml'
26+
- 'src/**'
27+
- 'geekorm-*'
28+
- 'examples/**'
29+
- 'tests/**'
30+
1831
- uses: dtolnay/rust-toolchain@nightly
32+
if: steps.changes.outputs.src == 'true'
1933
with:
2034
components: clippy
2135

2236
- name: Build
37+
if: steps.changes.outputs.src == 'true'
2338
run: |
2439
cargo build
2540
2641
- name: Run tests
42+
if: steps.changes.outputs.src == 'true'
2743
run: |
2844
cargo test --all-features --workspace
2945
3046
- name: Run Analysis
47+
if: steps.changes.outputs.src == 'true'
3148
run: |
3249
cargo clippy --all-targets
3350

.github/workflows/labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5
13+

0 commit comments

Comments
 (0)