Commit Graph

399 Commits

Author SHA1 Message Date
Josh Dales
c1b0ca76ee Run the build command 2023-04-13 15:02:40 -04:00
Josh Dales
2637d23bca Add test for when not all globs match any changed file 2023-04-13 14:58:52 -04:00
Josh Dales
d4d4a104a2 Have a single isMatch for checking changed files 2023-04-13 14:38:41 -04:00
Josh Dales
7f169bc0f2 Merge pull request #4 from joshdales/another-config-setup
Change the structure of the config
2023-03-27 17:25:27 -04:00
Josh Dales
2f1dfd1ef0 Adjust the indenting again 2023-03-27 17:15:14 -04:00
Josh Dales
b1a2f85ed8 Update debugging indentation on the branch checks 2023-03-27 16:37:55 -04:00
Josh Dales
67604ee822 Update more debugging statements 2023-03-27 16:26:58 -04:00
Josh Dales
4be192c7d6 Run the build command 2023-03-27 16:23:04 -04:00
Josh Dales
3ddce51a65 Update the debug values 2023-03-27 16:15:03 -04:00
Josh Dales
938f9c9893 Update the readme a little more 2023-03-26 09:46:29 -04:00
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
8e6367ddee Merge branch 'main' into main 2023-03-23 09:02:46 -04:00
Milos Pantic
7012d51fe0 Merge pull request #525 from panticmilos/vmpantic/bump-minimatch
Bump license version
2023-03-23 12:36:22 +01:00
Milos Pantic
9edd2bf941 Bump license version 2023-03-23 12:16:28 +01:00
Milos Pantic
ebf4aac003 Merge pull request #523 from actions/dependabot/npm_and_yarn/prettier-2.8.6
Bump prettier from 2.8.4 to 2.8.6
2023-03-23 12:15:48 +01:00
Adam Azarchs
751921c443 fix: correct reading of sync-labels input. (#480)
* fix: correct reading of sync-labels input.

Contrary to the assumptions made in the unit tests, core.getInput
always returns a string, and !!'false' is true.

Also updates the unit test to reduce changes of regressions by ensuring
that the mocked getInput returns a string, as it would in production.

Fixes https://github.com/actions/labeler/issues/112

Make sure test catches regressions.

* Rebuild dist/index.js.
2023-03-23 10:47:14 +01:00
Milos Pantic
468a5e0250 Rebuild minimatch (#522)
* Rebuild minimatch and adapt changed interface

* Apply formatting

* Update minimatch license
2023-03-23 10:45:05 +01:00
dependabot[bot]
1ed0c2c7a6 Bump prettier from 2.8.4 to 2.8.6
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.4 to 2.8.6.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.4...2.8.6)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 15:56:46 +00:00
Milos Pantic
72bf170dc0 Merge pull request #521 from actions/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.56.0
Bump @typescript-eslint/eslint-plugin from 5.54.0 to 5.56.0
2023-03-22 15:15:44 +01:00
Milos Pantic
e761520c9d Merge pull request #520 from actions/dependabot/npm_and_yarn/eslint-config-prettier-8.8.0
Bump eslint-config-prettier from 8.6.0 to 8.8.0
2023-03-22 15:13:07 +01:00
dependabot[bot]
5ecb1a5c3f Bump @typescript-eslint/eslint-plugin from 5.54.0 to 5.56.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.54.0 to 5.56.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.56.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 14:10:01 +00:00
dependabot[bot]
edfedeeea2 Bump eslint-config-prettier from 8.6.0 to 8.8.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.6.0 to 8.8.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.6.0...v8.8.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 14:08:56 +00:00
Milos Pantic
bf8c2560d4 Merge pull request #519 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.56.0
Bump @typescript-eslint/parser from 5.54.0 to 5.56.0
2023-03-22 15:06:45 +01:00
Milos Pantic
113f4f535c Merge pull request #514 from actions/dependabot/npm_and_yarn/eslint-8.36.0
Bump eslint from 8.35.0 to 8.36.0
2023-03-22 15:04:16 +01:00
dependabot[bot]
e22b544e48 Bump @typescript-eslint/parser from 5.54.0 to 5.56.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.54.0 to 5.56.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.56.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 15:58:11 +00: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
64ce5e9235 Update README with better description for branches
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2023-03-20 15:38:14 -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