Assigns labels based on branch names #203
Add branch to MatchConfig interface
2bf42e44
Add function for checking branches
ad73546c
include checkBranch in checkMatch
6c50d094
Add a new fixture and test for the branch checking
ee0e0eb5
Add another test to make sure that partial branch naming works
a01b9aeb
Update new test description
bce88a9e
Run build
765934f2
Fix PR branch labeler
827e1186
Run build
8aa7614b
Use correct branch name and update tests
cb5f4480
Run build
2ced1f32
Format
d9ed3e87
Include a test for branching
79c0cc7c
Update src/labeler.ts
27a1d899
Merge pull request #1 from bentohq/fix-branch-labeler
76242143
Allow branch config to be an array as well
2d63815c
Add tests for array branh labelling
ab49f7a2
Run build
2246b667
minor adjustment for successful branch matching.
89f6b773
Update the tests for applying multiple branch based labels
7aadc17f
run the build script
71fc6644
m4tob
approved these changes
on 2022-06-01
Merge branch 'main' into main
818399d1
Update README with reference to branch options
6e276063
Merge branch 'main' into main
0ad789cf
Run the build command
0861fa5a
amiel
approved these changes
on 2022-09-14
Fix typo in the README
4c74e844
Merge branch 'main' into main
7f8d8e47
Run prettier
c54c5a20
Run the build command
7b1327b4
Rename the getBranchName helper
8c59eccb
Update the matching to use a regexp rather than minimatch
f2b2513f
Move all the branch checking into its own file
23437107
Create a test file for branch
cd3a8df8
Add options for getting the head or base branch
0b6e68d7
Add an extra test now that we can check the base branch
2daf35ae
Remove the branch option and replace with just head-branch and base-b…
231de6bc
Remove deprecated IMinimatch import from labeler.ts
922ffdf5
Create new interfaces for MatchConfig
7a5c5250
Add the changedFiles key and update logic in labeler
969899da
Update the labeler tests
7d175313
Run the build command
b071d82c
reverse the conditions of checkMatch
0eb9d493
Fix some typos in the branch checks
09f08537
Rename some functions and variables to match what they are doing
ed31b27f
Make sure that the changed files config values are an array
da83a184
Add unit tests for toBranchMatchConfig
56347d54
Merge pull request #3 from joshdales/new-config-structure
8943ca20
Update the README with documentation about the new config structure
e5b1bddf
Reference minimatch in docs
2e10ffb6
Fix bad test descriptions
2a5bc55c
Make getBranchName argument non-optional
394a01bd
update the example workflow in the readme
5e6bdf6d
Merge branch 'main' into main
84e83a9b
Correct errors and typos in the README
f40b3873
Merge branch 'actions:main' into main
90ef3707
Update the syntax for checking a match
3eec5d8c
Revert "reverse the conditions of checkMatch"
fc5eb711
Throw an error if the config is the wrong type
e4486e9e
Simplfy the conditions in toBranchMatchConfig
e9395503
Update comments in getMatchConfigs to represent updated types
51b763cb
Condense assignment of further config options in toChangedFilesMatchC…
c08f5faa
Rename checkGlobs to checkMatchConfigs and check each property
9f259ee1
Move all changedFiles logic into it's own file
1ce9b356
Convert the yaml output to a matchConfig in getLabelConfigMapFromObject
ef108a9d
Add todo tests for changedFiles
a988f4eb
Add unit tests for toChangedFilesMatchConfig
3af9a47a
Add more unit tests for changedFiles.ts
c31ee1fd
Update the argument type for toMatchConfig
17694aa2
Fix linting and formatting
e9a1777e
Add unit tests for toMatchConfig
65b7640e
Run the build command
7741e57c
Update README with better description for branches
64ce5e92
Update object assignment in toChangedFilesMatchConfig
cc1e0258
Add extra tests and use toEqual matcher.
d0d36280
Don't allow empty changed-files objects through
92990c0c
Make sure that empty config options don't accidently label things
d31255f7
Better wording for the new test
b25e3a8c
Run the build command
1c9c27e1
Merge branch 'main' into main
8e6367dd
Run build and fix bad merge
9bfc9998
Run the build command again
5d0a66ed
Change the structure of the config
e51b1187
Add some new tests
a9e07ce8
Add any and all functions for both checks
3bec9227
Get all the tests passings
432b275f
Run the build command
49676461
Add a bunch more tests
4554c0d1
Update the README
5ac9519c
Add function for checking if any path matches
ef6ab1b6
Run the build command
62f22bde
Im an idiot, bad copy pasta
0b2cfb01
Build command
29382eb4
Yikes, still missed that
fa7f98c7
Run the build command
210043ee
Update the readme a little more
938f9c98
Update the debug values
3ddce51a
Run the build command
4be192c7
Update more debugging statements
67604ee8
Update debugging indentation on the branch checks
b1a2f85e
Adjust the indenting again
2f1dfd1e
Merge pull request #4 from joshdales/another-config-setup
7f169bc0
Have a single isMatch for checking changed files
d4d4a104
Add test for when not all globs match any changed file
2637d23b
Run the build command
c1b0ca76
Better description for the new test
2a3422a6
minor update to the readme
13e75b43
Merge branch 'actions:main' into main
68a25980
Revert "Have a single isMatch for checking changed files"
11812c37
Update tests and build
9488def2
Better test description
3aa0d436
Consolidate the new any change files test into the old one
9cfddd01
Update text in test descriptions and logging
51cc5e07
Move the allowed Matchconfig keys into a constant
09645fd4
Update the validation when there are no options in the matchConfigs
34a5bf6e
Add a guard clause to stop false changed-files positives
4ac17648
Run the build command
a5bed11d
Add check for empty objects in checkAll
a256a58e
Better check for empty configs in checkAll
57d34076
Bring test I accidently deleted
3352df1f
MaksimZhukov
changed the base branch from
main
to
v5.0.0-beta.1
2 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub