labeler
Assigns labels based on branch names
#203
Merged

Assigns labels based on branch names #203

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

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone