Commit Graph

354 Commits

Author SHA1 Message Date
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
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
90ef37079a Merge branch 'actions:main' into main 2023-03-18 16:44:40 -04:00
Josh Dales
f40b38734d Correct errors and typos in the README
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
2023-03-17 17:14:59 -04:00
github-actions[bot]
ca88756804 Update configuration files (#513)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-15 00:45:03 +01:00
Marko Zivic
59036c7b95 Merge pull request #509 from akv-platform/reusable-workflow
Turn on automatic update of ESLint and Prettier configuration files
2023-03-10 10:56:35 +01:00
IvanZosimov
a589a5f6e6 Add update-config-files.yml 2023-03-09 14:03:36 +01:00
Ivan
8d81f881dd Add and configure ESLint and update configuration for Prettier (#508)
* Add ESLint and update Prettier

* Rebuild action

* Update package.json
2023-03-09 15:02:17 +02:00
Josh Dales
84e83a9b19 Merge branch 'main' into main 2023-03-08 18:10:37 -05:00
Michaël De Boey
ba790c862c feat: default repo-token to github.token (#227)
* feat: default `repo-token` to `github.token`

* Update README.md

* Update labeler.ts

* Update index.js

* Update action.yml

* Update dist/index.js

* Update index.js

* Update dist/index.js
v4.0.3
2023-03-07 12:25:56 +01: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
2a5bc55cbf Fix bad test descriptions
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2023-03-03 09:28:40 -05:00
Josh Dales
2e10ffb6ec Reference minimatch in docs
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2023-03-03 09:26:43 -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
8943ca20c9 Merge pull request #3 from joshdales/new-config-structure 2023-02-21 08:38:50 -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
Milos Pantic
b3338513be Merge pull request #498 from actions/dependabot/npm_and_yarn/prettier-2.8.4
Bump prettier from 2.8.2 to 2.8.4
2023-02-08 19:11:52 +01:00
Milos Pantic
7500838c8c Merge pull request #496 from actions/dependabot/npm_and_yarn/typescript-4.9.5
Bump typescript from 4.9.4 to 4.9.5
2023-02-08 19:11:36 +01:00
Milos Pantic
46f10bd82e Merge pull request #493 from actions/dependabot/npm_and_yarn/vercel/ncc-0.36.1
Bump @vercel/ncc from 0.36.0 to 0.36.1
2023-02-08 19:11:21 +01:00
dependabot[bot]
cfabdea1fa Bump prettier from 2.8.2 to 2.8.4
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.2 to 2.8.4.
- [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.2...2.8.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 15:00:39 +00:00
dependabot[bot]
826c4e60e2 Bump typescript from 4.9.4 to 4.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.4 to 4.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 15:01:02 +00:00
Ivan
8e3e86e548 Update workflow badges (#495) 2023-01-31 08:47:18 +02: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