Commit Graph

20 Commits

Author SHA1 Message Date
Geoffrey Testelin
552e4c60f0 feat(stale-and-close): add new options to change the days before close (#224)
* docs(readme): add new options in the documentation

* chore: update the action schema

* chore: parse the new arguments

* feat(stale-and-close): add new options to change the days before close

to avoid a breaking change and simplify the configuration the old options 'daysBeforeStale' and 'daysBeforePrClose' are kept and new options are available to override them with 'daysBeforeIssueStale', 'daysBeforePrStale', 'daysBeforeIssueClose' and 'daysBeforePrClose'

* chore: rename the issue type enum to remove the enum suffix

* chore: add missing dependency for eslint and typescript

also upgrade the parser

* chore: fix an issue with the linter for the shadow rules

it was not configured properly for TypeScript

* chore: use camelCase for constants

* chore: use camelCase for enum members

* chore: fix the tests

* chore: enhance prettier to also lint other kind of files

it was configured to only work with ts and it was not working well to be honest
also now the lint scripts will also run prettier
2021-01-16 08:28:29 -05:00
Sora Morimoto
39de730f99 Provide the GitHub token by default (#253)
* Provide the GitHub token by default

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* npm run build

Signed-off-by: Sora Morimoto <sora@morimoto.io>
2021-01-15 07:07:08 -05:00
Andy McKay
62b357a603 Change cron time
Let's suggest a time that isn't so busy and matches whats in starter-workflows
2020-10-13 08:24:23 -07:00
Gaurav Chaudhari
f75b3c75ce Add arguments table (#194) 2020-10-12 10:48:16 -04:00
Christophe Coevoet
250a2d2fc5 Add the only-labels option in the readme (#141) 2020-08-21 07:18:40 -04:00
Ross Brodbeck
1e900bc060 Update docs and version so we can move to v3 (#63)
* Update docs and version

* Fix readme typo
2020-05-11 10:54:55 -04:00
Farhad Safarov
8743296016 Correct example (#47) 2020-05-04 13:18:22 -04:00
eric sciple
2b063ba4d4 Update readme to reference major version channel (#49) 2020-05-04 13:16:31 -04:00
Ross Brodbeck
a23bda33c4 Update the readme, add a test (#46)
* Add a test to days = -1
* Update the readme on how to build it
2020-04-16 14:23:28 -04:00
Ross Brodbeck
aad6ffa865 Refactor issue processor (#45)
* Refctor into an issue processor, add debug mode
* Move processor to use its own types so testing is easier
* Add more tests
2020-04-16 13:57:59 -04:00
Ryan Wilson-Perkin
6127f8ef7a Allow multiple exempt labels (#19)
* Update description to clarify exempt labels

* [breaking change] Use array for exempt labels

* Switch to a comma separated string for exempt labels

* Update descriptions for multiple labels

* Update examples for exempt labels

* lint: apply fixes

* Re-generate transpiled output
2020-04-15 21:33:09 -04:00
Ross Brodbeck
ee2e3ba115 Merge pull request #25 from actions/IAmHughes/update-docs
Update README.md example workflows to latest release version
2020-04-13 07:11:27 -04:00
Alberto Gimeno
c2f51ac751 Update README.md 2019-11-27 16:04:40 +01:00
Thomas Hughes
1a8e37e7ad Update README to latest release version 2019-11-01 13:43:25 +01:00
Kayla Ngan
ded3b10c18 Example runs once per day instead of per hour 2019-08-29 14:50:13 -04:00
Ryan Wilson-Perkin
9f69ef12ad Feature: Exempt labels from action (#11)
* Change name to isLabeled for re-use with "exempt"

* Add args for exempt labels

* Skip operation if labeled exempt

* Only check for exempt label if defined

Since the exempt label parameter is not required, we don't want to both
checking for it if it was not defined.

* Don't reduce operationsLeft if exempt

This variable just tracks the number of operations we're using to avoid
rate limiting. Since the exempt check wouldn't result in a rate-limited
request, we don't need to reduce the variable.

* Update the action.yml with new exempt values

* Update README with example of exempt labels

* Remove redundant defaults
2019-08-27 15:58:14 -04:00
Shawn Napora
8b3b2f9d81 Clean up workflow yaml examples. 2019-08-06 17:51:08 -04:00
Shawn Napora
a2d191623a update readme 2019-08-06 17:44:47 -04:00
Danny McCormick
dc7133054e Add most recent action 2019-08-06 16:25:08 -04:00
Chris Patterson
62b122fb5f Initial import 2019-08-03 21:34:59 -04:00