Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dot option #316

Merged
merged 29 commits into from
Jun 5, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b0d9292
Implement dot option
kachkaev Feb 4, 2022
6a0b726
Rebuild
kachkaev Feb 4, 2022
409a5a2
Fix typo in test caption
kachkaev Feb 4, 2022
920e9b6
Add comments
kachkaev Feb 4, 2022
8b8677b
Improve warning
kachkaev Feb 4, 2022
e05b7c1
Update README.md
kachkaev Feb 4, 2022
f3632d3
Update README.md
kachkaev Feb 4, 2022
d89797c
Merge remote-tracking branch 'upstream/main' into dot-option
kachkaev Sep 14, 2022
2025154
Simplify glob
kachkaev Oct 5, 2022
866eff5
Merge remote-tracking branch 'origin/main' into dot-option
kachkaev Jan 16, 2023
305cfeb
Rebuild
kachkaev Jan 16, 2023
4a96e77
Merge branch 'main' into dot-option
kachkaev Mar 12, 2023
b898cc8
Merge remote-tracking branch 'u/main' into dot-option
kachkaev Mar 27, 2023
b28379f
Cleanup
kachkaev Mar 27, 2023
a7cc8a6
Fix
kachkaev Mar 27, 2023
012b892
Merge remote-tracking branch 'u/main' into dot-option
kachkaev May 19, 2023
cecbd94
Merge remote-tracking branch 'u/main' into dot-option
kachkaev May 31, 2023
092c979
Update src/labeler.ts
kachkaev May 31, 2023
60f44e7
Fix unrelated test
kachkaev May 31, 2023
9776203
Update build
kachkaev May 31, 2023
a27020c
Undo unwanted change in diff
kachkaev May 31, 2023
44414db
Fix tests
kachkaev May 31, 2023
673c7e2
Rebuild
kachkaev May 31, 2023
e3b3815
Further diff reduction
kachkaev May 31, 2023
54d434d
Remove `required: false`
kachkaev May 31, 2023
59d3310
Rebuild
kachkaev May 31, 2023
71d2484
Address review comment
kachkaev May 31, 2023
639ba81
Rebuild
kachkaev May 31, 2023
d40596e
micromatch → minimatch
kachkaev Jun 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Automatically label new pull requests based on the paths of files being changed.

Create a `.github/labeler.yml` file with a list of labels and [minimatch](https://github.com/isaacs/minimatch) globs to match to apply the label.

The key is the name of the label in your repository that you want to add (eg: "merge conflict", "needs-updating") and the value is the path (glob) of the changed files (eg: `src/**/*`, `tests/*.spec.js`) or a match object.
The key is the name of the label in your repository that you want to add (eg: "merge conflict", "needs-updating") and the value is the path (glob) of the changed files (eg: `src/**`, `tests/*.spec.js`) or a match object.

#### Match Object

Expand Down Expand Up @@ -57,7 +57,7 @@ From a boolean logic perspective, top-level match objects are `OR`-ed together a
```yml
# Add 'label1' to any changes within 'example' folder or any subfolders
label1:
- example/**/*
- example/**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# Add 'label2' to any file changes within 'example2' folder
label2: example2/*
Expand All @@ -72,15 +72,15 @@ repo:

# Add '@domain/core' label to any change within the 'core' package
@domain/core:
- package/core/**/*
- package/core/**

# Add 'test' label to any change to *.spec.js files within the source dir
test:
- src/**/*.spec.js

# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- any: ['src/**/*', '!src/docs/*']
- any: ['src/**', '!src/docs/*']

# Add 'frontend` label to any change to *.js files as long as the `main.js` hasn't changed
frontend:
Expand Down Expand Up @@ -134,7 +134,7 @@ If `dot` is enabled:

```yml
label1:
- path/to/folder/**/*
- path/to/folder/**
```

## Contributions
Expand Down