Commit Graph
64 Commits
Author SHA1 Message Date
Josh Dales 210043eed1 Run the build command 2023-03-25 19:09:30 -04:00
Josh Dales fa7f98c785 Yikes, still missed that 2023-03-25 19:09:06 -04:00
Josh Dales 29382eb4ff Build command 2023-03-25 17:42:44 -04:00
Josh Dales 0b2cfb01d7 Im an idiot, bad copy pasta 2023-03-25 17:42:17 -04:00
Josh Dales 62f22bdebe Run the build command 2023-03-25 17:24:52 -04:00
Josh Dales ef6ab1b64a Add function for checking if any path matches 2023-03-25 17:22:04 -04:00
Josh Dales 5ac9519cbf Update the README 2023-03-25 16:31:45 -04:00
Josh Dales 4554c0d1af Add a bunch more tests 2023-03-25 16:07:56 -04:00
Josh Dales 49676461cb Run the build command 2023-03-24 22:29:57 -04:00
Josh Dales 432b275f71 Get all the tests passings 2023-03-24 22:29:41 -04:00
Josh Dales 3bec9227d1 Add any and all functions for both checks 2023-03-24 21:51:33 -04:00
Josh Dales a9e07ce8ff Add some new tests 2023-03-24 21:23:51 -04:00
Josh Dales e51b118725 Change the structure of the config 2023-03-24 21:08:59 -04:00
Josh Dales 5d0a66ed59 Run the build command again 2023-03-23 09:09:29 -04:00
Josh Dales 9bfc9998ab Run build and fix bad merge 2023-03-23 09:08:08 -04:00
Josh Dales 1c9c27e128 Run the build command 2023-03-20 21:53:16 -04:00
Josh Dales b25e3a8c27 Better wording for the new test 2023-03-20 17:51:58 -04:00
Josh Dales d31255f7be Make sure that empty config options don't accidently label things 2023-03-20 17:40:28 -04:00
Josh Dales 92990c0c57 Don't allow empty changed-files objects through 2023-03-20 17:40:28 -04:00
Josh Dales d0d3628020 Add extra tests and use toEqual matcher.
Turns out that toMatchObject would allow extra properties through
2023-03-20 17:40:28 -04:00
Josh Dales cc1e02580b Update object assignment in toChangedFilesMatchConfig 2023-03-20 17:40:28 -04:00
Josh Dales 7741e57c6a Run the build command 2023-03-18 17:16:58 -04:00
Josh Dales 65b7640e45 Add unit tests for toMatchConfig 2023-03-18 17:15:18 -04:00
Josh Dales e9a1777eb0 Fix linting and formatting 2023-03-18 16:46:54 -04:00
Josh Dales 17694aa238 Update the argument type for toMatchConfig 2023-03-18 16:44:50 -04:00
Josh Dales c31ee1fd86 Add more unit tests for changedFiles.ts 2023-03-18 16:44:50 -04:00
Josh Dales 3af9a47a26 Add unit tests for toChangedFilesMatchConfig 2023-03-18 16:44:49 -04:00
Josh Dales a988f4eb9d Add todo tests for changedFiles 2023-03-18 16:44:49 -04:00
Josh Dales ef108a9d83 Convert the yaml output to a matchConfig in getLabelConfigMapFromObject 2023-03-18 16:44:49 -04:00
Josh Dales 1ce9b356f6 Move all changedFiles logic into it's own file 2023-03-18 16:44:49 -04:00
Josh Dales 9f259ee115 Rename checkGlobs to checkMatchConfigs and check each property 2023-03-18 16:44:49 -04:00
Josh Dales c08f5faa12 Condense assignment of further config options in toChangedFilesMatchConfig 2023-03-18 16:44:49 -04:00
Josh Dales 51b763cbf2 Update comments in getMatchConfigs to represent updated types 2023-03-18 16:44:49 -04:00
Josh Dales e939550344 Simplfy the conditions in toBranchMatchConfig 2023-03-18 16:44:49 -04:00
Josh Dales e4486e9ed9 Throw an error if the config is the wrong type 2023-03-18 16:44:49 -04:00
Josh Dales fc5eb711b0 Revert "reverse the conditions of checkMatch"
This reverts commit 0eb9d49330.
2023-03-18 16:44:49 -04:00
Josh Dales 3eec5d8ccc Update the syntax for checking a match 2023-03-18 16:44:49 -04:00
Josh Dales 5e6bdf6d89 update the example workflow in the readme 2023-03-03 11:17:10 -05:00
Josh Dales 394a01bde3 Make getBranchName argument non-optional 2023-03-03 11:15:48 -05:00
Josh Dales e5b1bddf5e Update the README with documentation about the new config structure 2023-02-21 11:51:45 -05:00
Josh Dales 56347d54a1 Add unit tests for toBranchMatchConfig 2023-02-21 08:30:24 -05:00
Josh Dales da83a1845f Make sure that the changed files config values are an array 2023-02-19 18:10:19 -05:00
Josh Dales ed31b27f2e Rename some functions and variables to match what they are doing 2023-02-19 16:46:14 -05:00
Josh Dales 09f085373a Fix some typos in the branch checks 2023-02-19 12:17:15 -05:00
Josh Dales 0eb9d49330 reverse the conditions of checkMatch 2023-01-29 15:58:23 -05:00
Josh Dales b071d82cb8 Run the build command 2023-01-29 15:09:44 -05:00
Josh Dales 7d175313b7 Update the labeler tests 2023-01-29 15:09:06 -05:00
Josh Dales 969899da68 Add the changedFiles key and update logic in labeler 2023-01-29 14:10:07 -05:00
Josh Dales 7a5c525049 Create new interfaces for MatchConfig 2023-01-28 23:14:53 -05:00
Josh Dales 922ffdf5ad Remove deprecated IMinimatch import from labeler.ts 2023-01-28 22:43:56 -05:00
Josh Dales 231de6bc24 Remove the branch option and replace with just head-branch and base-branch 2023-01-28 22:30:05 -05:00
Josh Dales 2daf35ae4b Add an extra test now that we can check the base branch 2023-01-28 18:08:48 -05:00
Josh Dales 0b6e68d75a Add options for getting the head or base branch 2023-01-28 17:57:52 -05:00
Josh Dales cd3a8df80d Create a test file for branch 2023-01-28 16:45:29 -05:00
Josh Dales 2343710777 Move all the branch checking into its own file 2023-01-28 15:58:00 -05:00
Josh Dales f2b2513f41 Update the matching to use a regexp rather than minimatch 2023-01-28 15:34:31 -05:00
Josh Dales 8c59eccb9d Rename the getBranchName helper 2023-01-28 15:14:15 -05:00
Josh Dales 765934f274 Run build 2021-08-07 15:26:22 -04:00
Josh Dales bce88a9ea3 Update new test description 2021-08-07 15:26:13 -04:00
Josh Dales a01b9aebb2 Add another test to make sure that partial branch naming works 2021-08-07 15:20:20 -04:00
Josh Dales ee0e0eb513 Add a new fixture and test for the branch checking 2021-08-07 15:12:02 -04:00
Josh Dales 6c50d09410 include checkBranch in checkMatch 2021-08-07 15:09:15 -04:00
Josh Dales ad73546cad Add function for checking branches 2021-08-07 15:07:47 -04:00
Josh Dales 2bf42e445d Add branch to MatchConfig interface 2021-08-07 15:06:24 -04:00