Commit Graph

60 Commits

Author SHA1 Message Date
Patrick Ellis
00c66bce75 Merge pull request #56 from actions/dependabot/npm_and_yarn/acorn-5.7.4
Bump acorn from 5.7.3 to 5.7.4
2021-06-04 17:03:03 -04:00
Patrick Ellis
f3a996235b Merge pull request #134 from actions/dependabot/npm_and_yarn/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1
2021-06-04 17:02:13 -04:00
Patrick Ellis
51b8a262c5 Merge pull request #98 from actions/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2021-06-04 17:02:00 -04:00
Patrick Ellis
eb35148f10 Merge pull request #142 from actions/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.15 to 4.17.21
2021-06-04 17:01:31 -04:00
Patrick Ellis
ef43dea39d Merge pull request #143 from actions/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9
2021-06-04 17:01:10 -04:00
Patrick Ellis
63f27e3a01 Merge pull request #138 from pllim/patch-1
DOC: Example to use released version
2021-06-04 17:00:50 -04:00
Patrick Ellis
5682b7c513 3.0.1 v3.0.1 2021-06-04 16:29:03 -04:00
Patrick Ellis
8469b2cf3f Merge pull request #151 from actions/prettier-2.3.0
Update prettier to the latest version and re-prettify everything
2021-06-04 16:23:48 -04:00
Patrick Ellis
c97a9580dd Update prettier to 2.3.0 and re-prettify everything
Gotta love those trailing commas!
2021-06-04 16:14:32 -04:00
Patrick Ellis
ca69a1eb30 Merge pull request #150 from actions/fix-format-script-globbing
Fix recursive globbing in our npm `format` script command and run all ts files through prettier 💅
2021-06-04 16:08:22 -04:00
Patrick Ellis
a1aa618e7a Fix recursive glob behavior in our npm format script command 2021-06-04 15:55:26 -04:00
Patrick Ellis
84a53dc124 Regenerate dist/index.js 2021-06-04 15:43:55 -04:00
Patrick Ellis
a51aacbf8f Regenerate package-lock.json (result of npm install) 2021-06-04 15:43:12 -04:00
Patrick Ellis
f2e6c011a1 rebuild dist/index.js 2021-06-04 15:00:20 -04:00
Patrick Ellis
c9d0dfc82e 🧹 Add tests that run the whole action (#149) 2021-06-04 14:46:22 -04:00
Patrick Ellis
b884ad6838 Merge pull request #125 from HollowMan6/patch-1
Fix typo in README.md
2021-06-04 14:45:15 -04:00
Patrick Ellis
9019323db1 🧹 Add basic unit tests (#148)
This is not intended to be a comprehensive test suite; I'm just trying to get us started by adding tests for some of the most important functionality.

This necessitated some minor refactoring. Previously, `main.ts` just directly invoked the main entrypoint function `run()`, which made it impossible to unit test the module without causing the side-effects of `run`. 

As a workaround I created  a new module `labeler.ts`, which just exports the functions we want to test without executing the main entrypoint, and simplified `main.ts` so that it only imports the entrypoint and executes it.

It's basically just a re-org. The diff makes it look way more complicated than it is.
2021-06-03 16:15:47 -04:00
Patrick Ellis
ffa3fbeb8f 🧹 Update documentation (#147)
- Document the release process in `CONTRIBUTING.md`
- Add development instructions to `CONTRIBUTING.md` (adapted from [download-artifact](https://github.com/actions/download-artifact))
- Add a test badge to the `README`
- Link to `CONTRIBUTING.md` in `README`
- Unify copy between `README.md` and `action.yml`
- Copy-pasta the CoC from [download-artifact](https://github.com/actions/download-artifact)
2021-06-03 12:43:19 -04:00
Patrick Ellis
bc80d164ed Two minor fixes to the README (#80) (#146)
* Use consistent indentation style in YAML examples
* Fix typo 'indvidual'
2021-06-03 12:39:48 -04:00
Patrick Ellis
4d65903a95 🧹 Add "Build & Test" Workflow (#145) 2021-06-02 12:16:40 -04:00
dependabot[bot]
d5f97ac860 Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 00:59:30 +00:00
dependabot[bot]
f6ac868a00 Bump lodash from 4.17.15 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 07:09:36 +00:00
P. L. Lim
1b79008a03 DOC: Example to use released version 2021-04-22 15:06:22 -04:00
dependabot[bot]
f3270f08b4 Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 22:00:11 +00:00
Hollow Man
b7d89ab657 Fix typo
indvidual -> individual
2021-02-05 15:02:00 +08:00
Ross Brodbeck
69990a6043 Create CODEOWNERS 2021-02-04 12:26:33 -05:00
Thomas Boop
9794b1493b Add Licensed To Help Verify Prod Licenses (#91)
* Add Licensed Workflows and config files

* Manually verify licenses

* Ignore Generated Files in Git PR's
v3.0.0
2020-09-16 10:01:44 -04:00
Eric Cornelissen
e26bf79ffc Draft contributors.md update (#97)
* Draft contributors.md update

This is a proposed updated to the contributors.md document inspired by
the contributing guidelines of the actions/cache project [1]. There are
some differences, most notable the inclusion of "Development Details"
which explains and motivates the development tools (to an extend).

--
1. eed9cfe64d/CONTRIBUTING.md

* Split Contributing Guidelines and Development Handbook

Split the "Contributing Guidelines" currently found in
docs/contributors.md into a CONTRIBUTING.md file, containing the
Contributing Guidelines, and a docs/development.md file, containing
details on how the development/testing of this project works.
2020-09-15 09:57:36 -04:00
dependabot[bot]
b86a46ada0 Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-11 11:53:51 +00:00
David Kale
bab130482f Update README.md 2020-09-08 14:49:21 -04:00
ylemkimon
c45f41c777 Update README to use pull_request_target event (#90) 2020-09-08 14:33:55 -04:00
David Kale
9042c970f2 Update zeit->vercel 2020-09-08 14:00:23 -04:00
David Kale
fa244eaba5 Paginate and remove old labels (#96)
* Paginate to get all changed files. Add option to remove labels

* build

* format and build
v3-preview
2020-09-08 13:09:16 -04:00
Thomas Boop
ebdf5d5f9f Add Third Party License Information to Dist files (#89)
* Add Third Party License Information

* Update licenses for @actions npm modules
2020-08-07 14:32:22 -04:00
Jameel Al-Aziz
efc1b29f09 Fix "any" matching when not all globs match (#75)
The previous logic had a bug where the "any" pattern list could match
against changed files even when not all globs matched a single changed
file. The bug arose individual globs in the "any" list were tested
against all changed files individually. Therefore, as long as at least
one changed file matched an individual glob in the list, a successful
match would be found.

The correct behavior is to match all the globs in the list against each
individual file. This ensures that is possible to define exlcusions
correctly and matched the documented behavior.
2020-06-19 10:55:47 -04:00
Jameel Al-Aziz
4b52aec09b Add support for exclusions (#22)
* Add support for exclusions

Paths can be negated to stop searching through the remaining patterns in
a the glob list. All changed files tested and at least one matching file
will result in a label being added.

Fixes actions/labeler#9

* Add support for "AND"-ed matches

A new "rich" matcher object can be provided instead of a normal glob.

The matcher object has two fields that accept an array of globs:
* Globs in "all" must all match every changed file.
* Globs in "some" must all match at least one changed file.

Combined with negated globs, this allows for a precise control of when
labels are applied.

* Rename `some` to `any`

* Update README
2020-06-01 17:01:37 -04:00
PJ Quirk
9984882865 Merge pull request #69 from pjquirk/users/paquirk/ghesfixes
Bumping actions/core and actions/github dependencies for GHES
2020-05-12 16:15:25 -04:00
PJ Quirk
937b16c09f Rerun build/pack 2020-05-12 16:00:39 -04:00
PJ Quirk
e10270bed6 Clarify the build command 2020-05-12 16:00:28 -04:00
PJ Quirk
5aa8259793 Ignore lib files 2020-05-12 16:00:08 -04:00
PJ Quirk
ce29b1babf Fixed build/pack steps to be more predictable 2020-05-12 14:26:07 -04:00
PJ Quirk
06ad9709b1 Bump actions/core to 1.2.4 2020-05-12 14:08:27 -04:00
PJ Quirk
912b1d0ff0 Bumping actions/github to 2.2.0 2020-05-08 17:07:38 -04:00
dependabot[bot]
5dbcd19697 Bump acorn from 5.7.3 to 5.7.4
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-16 11:17:30 +00:00
David Kale
d2c408e7ed V3 preview (#53)
* Covert to use ncc, publish under name Labeler

* Get the filename right
2020-03-05 12:57:26 -05:00
Edward Thomson
58187b6094 Merge pull request #51 from actions/ethomson/docs
Minor doc improvements
2020-02-05 17:32:54 +00:00
Edward Thomson
05785e27d6 README: tweak documentation on token permissions 2020-02-05 17:30:53 +00:00
Josh Goebel
2b75d22987 Explain this action fails for fork/PR model
Resolves #12 via documentation.
2020-02-05 17:27:39 +00:00
Edward Thomson
317937c3d2 Update description 2020-02-05 17:23:08 +00:00
Shawn Napora
1a043751b2 Merge pull request #26 from csi-lk/patch-1
Re-worded readme with clearer examples
2019-10-01 13:42:49 -04:00