Commit Graph

104 Commits

Author SHA1 Message Date
Sergey Dolin 1e059ce975 Do not mutate state in debug mode 2023-06-23 09:12:13 +02:00
Sergey Dolin 650b0fa951 Handle error during rehydration & persistings 2023-06-22 14:36:24 +02:00
Sergey Dolin eae709c29e fix artifact 2023-06-22 14:08:18 +02:00
Sergey Dolin 79fe616082 Add state 2023-06-22 13:54:24 +02:00
Sergey Dolin 51c18470e1 optimize pull request 2023-06-19 22:32:23 +02:00
Ivan 03af7c36d3
Cumulative update of dependencies (#987)
* Update deps

* Update licenses
2023-04-12 16:23:03 +02:00
Milos Pantic 52903732a4 Rebuild dist after rebase 2023-03-21 23:39:03 +01:00
Milos Pantic 75d4d955ac
Remove labels on stale (#959) 2023-03-21 14:11:19 +01:00
Sergey Dolin 1226ccf00a Resolve conflicts 2023-03-13 19:39:37 +01:00
Sergey Dolin fd837a17e5 Resolve changes requests 2023-03-13 19:39:37 +01:00
Sergey Dolin b5b320bc53 fix licenses 2023-03-13 19:39:37 +01:00
Sergey Dolin 6bc202284c abort the build on the error 2023-03-13 19:35:42 +01:00
Ivan 47a58a6ddf
Configure ESLint and update configuration for Prettier (#949)
* Update ESLint and Prettier configurations

* Rebuild action

* Update package.json
2023-03-09 14:57:55 +02:00
Sergey Dolin c4a13d8dca
Merge pull request #913 from akv-platform/v-sdolin/push-ref
Skip deleting the branch in the upstream of a forked repo
2023-01-26 08:58:51 +01:00
Sergey Dolin c933d5be9d Build dist 2023-01-24 07:40:40 +00:00
Ivan a8c816994c
Bump npm dependencies (#915)
* Update dependencies

* Update semver dependency license
2023-01-17 10:54:58 +02:00
IvanZosimov 5325f2f14e Merge branch 'main' into apply-reusable-workflows 2022-12-22 10:00:56 +01:00
John Sudol eed91cbd05
Update how stale handles exempt items (#874) 2022-12-20 15:35:06 -05:00
IvanZosimov aab1763e57 Update npm all:ci script 2022-12-19 14:24:45 +01:00
Iván Reinoso García 65b52aff67
Allow daysBeforeStale options to be float (#841)
* feat: allow daysBeforeStale options to be float

* update dist
2022-10-19 12:08:31 +02:00
Francesco Renzi 5ebf00ea0e Update @actions/core to 1.10.0 2022-10-06 12:19:32 +01:00
Luke Tomlinson 8e8a0e6680
[Bugfix-795] Fix date comparison edge case (#816)
* Fix updatedAt and markedStaleOn date comparison

* Delete accidental file

* Refactor

* Cleanup

* cleanup
2022-09-12 09:38:46 -04:00
JoannaaKL 3e4418e47e
Issue 596/include only assigned (#817)
* Add new 'include-only-assigned' option

If set, only issues containing assignees will be processed

* Test new flag

* Update code comment

* Update src/classes/issues-processor.ts

Co-authored-by: Francesco Renzi <rentziass@github.com>

* Update index.js with typo fix

Co-authored-by: Francesco Renzi <rentziass@github.com>
2022-09-12 13:20:57 +02:00
Luke Tomlinson 33e37032bb
Update actions core to 1.9.1 (#812)
* Update @actions/core to 1.9.1

* Update dist/

* Fix conflicts
2022-09-07 11:23:27 -04:00
Luke Tomlinson 2b58cc900f
Fix issue when days-before-close is more than days-before-stale (#775) 2022-07-25 09:24:15 -04:00
Jacob Bandes-Storch 06d2a3904b
Add close-issue-reason option (#764)
* Add close-as-not-planned option

* update readme

* add to Option enum

* improve wording

* npm run pack

* updates from review

* fix tests and improve error message

* fix readme order
2022-06-23 17:43:36 -04:00
0x5c 29e800e1c8
Remove stale when updated without comment (#717)
The existing logic for `remove-stale-when-updated` only considers presence of
comments, ignoring the value of `issueHasUpdate`.

This commits fixes it so it follows the documented behaviour for that setting.

Fixes #715
2022-06-20 15:38:43 -04:00
Adam Stachowicz a78f1809b1
Fix spaces in `issues-processor.ts` (#748)
* Fix spaces in `issues-processor.ts`

* `npm run build` and `npm run pack`
2022-06-20 13:43:08 -04:00
Luke Tomlinson 65d24b7092
Don't process a stale issue in the same run it's marked stale (#696) 2022-04-29 10:07:39 -04:00
Luke Tomlinson a88f7b30b9
Update @actions/github to 5.0.1 (#707)
* Update github package

* Update dist

* Use @actions/github@5.0.1

* Cleanup

* More cleanup
2022-03-31 15:38:16 -04:00
m.bell 7a7efcae1f
Fix per issue operation count (#662)
* Fix per issue operation count

* Run pack
2022-02-04 09:54:35 -05:00
Luke Tomlinson 3a971aeb80 Revert "Merge pull request #586 from C0ZEN/feature/split-pr-and-issue-options"
This reverts commit db699ab3b1, reversing
changes made to b83d488cb9.
2021-10-20 09:25:24 -04:00
TESTELIN Geoffrey b9a40762bf
feat: remove the remove-stale-when-updated option
BREAKING CHANGE:
The option remove-stale-when-updated was removed
2021-10-08 21:30:39 +02:00
TESTELIN Geoffrey bab816b473
feat: remove the days-before-stale option
BREAKING CHANGE:
The option days-before-stale was removed
2021-10-08 21:06:12 +02:00
TESTELIN Geoffrey 6299c36a0d
feat: remove the only-labels option
BREAKING CHANGE:
The option only-labels was removed
2021-10-08 20:39:44 +02:00
TESTELIN Geoffrey a8c5bb1c29
feat: remove the only-labels option
BREAKING CHANGE:
The option only-labels was removed
2021-10-08 20:26:58 +02:00
TESTELIN Geoffrey 1c81c38e2f
feat: remove the any-of-labels option
BREAKING CHANGE:
The option any-of-labels was removed
2021-10-08 20:18:01 +02:00
TESTELIN Geoffrey f6a70aa856
feat: remove the exempt-milestones option
BREAKING CHANGE:
The option exempt-milestones was removed
2021-10-08 19:48:38 +02:00
TESTELIN Geoffrey 315391885d
feat: remove the exempt-all-milestones option
BREAKING CHANGE:
The option exempt-all-milestones was removed
2021-10-08 19:19:07 +02:00
TESTELIN Geoffrey 4665995b65
feat: remove the exempt-assignees option
BREAKING CHANGE:
The option exempt-assignees was removed
2021-10-08 19:06:51 +02:00
TESTELIN Geoffrey b80ae639fa
feat: remove the exempt-all-assignees option
BREAKING CHANGE:
The option exempt-all-assignees was removed
2021-10-08 18:50:37 +02:00
Geoffrey Testelin b98591d49e
docs(stale-issue-comment): update the docs to remove that omitting the option will not send a message (#522)
* chore(assignees): add logs

* docs(stale-issue-comment): update the docs to remove that omitting will not send a message

To be sure, what would be even better is to add a test using the default config (because the main issue is that the default options of the specs are not matching the ones from the action).

Closes #521

* test(comment): add more coverage to test the stale issue message

* docs(readme): improve the wording

Co-authored-by: Luke Tomlinson <luketomlinson@github.com>

* refactor: simplify the code to use the stats for the specs

* chore(rebase): fix rebase issue

* chore(statistics): fix issue due to rebase

Co-authored-by: Luke Tomlinson <luketomlinson@github.com>
2021-09-22 09:18:19 -04:00
Geoffrey Testelin 9912fa74d1
feat(draft-pr): add new option to not process PRs which are in draft (#539)
* chore(assignees): add logs

* feat(draft-pr): add new option to not process PRs which are in draft

* refactor(draft-pr): create a dedicated class to handle the logic

* chore(index): update index file
2021-09-20 09:37:32 -04:00
Geoffrey Testelin 1cdda06bb3
feat(options): add new option ignore-updates to stale even with activity (#540)
* chore(assignees): add logs

* docs(readme): use the override syntax to simplify the reading

* docs(readme): add missing default options

* docs(readme): add 3 new options to ignore activity before stale

* chore(action): add 3 new options

* fix(removeStaleWhenUpdated): use the value of the action config as expected

Fixes #451

* chore(main): add 3 new options

* feat(ignore): add new class to ignore all activities before stale

* feat(option): add new options to ignore all activities before stale

* chore(index): update index file

* docs(readme): fix typo

* docs(readme): add missing empty row

* chore(rebase): fix logger issues due to rebase

* chore: aplly changes due to rebase

* refactor(naming): change the name of the options as suggested

* chore(logs): reverse the logs as well

* docs(readme): format the table of options

* refactor(naming): rename the the options

* style(rename): rename more updates wording to activities

* build(ci): run the test step as expected for a CI

instead of using a real linter with auto fix and the tests verbose as fuck

* chore: handle breaking changes due to new changes

* refactor(naming): rename and reverse the options

* style(tests): use plural for some describe

* docs(days-before-stale): list the new option

* chore(index): update index file

* chore: keep static methods on top

* chore(logs): remove useless log
2021-09-17 09:54:38 -04:00
Marko Kungla 002bc97450
add missing inputs to action.yml closes #551 (#554) 2021-09-14 10:13:17 -04:00
Luke Tomlinson a78d0b721e
Make label comparison case insensitive (#517)
* Make label comparison case insensitive

* PR Feedback
2021-07-12 13:56:58 -04:00
Luke Tomlinson d901397e11
Filter comments by content instead of actor (#519)
* Filter comments by content instead of actor

* Remove dead actor code

* WIP fix tests

* Fix test
2021-07-12 10:37:47 -04:00
Geoffrey Testelin d3bfc50685
Revert "feat(options): add new options to avoid stale base on comments (#494)" (#507)
This reverts commit 1efddcbe9f.
2021-06-15 17:16:31 -04:00
Geoffrey Testelin 1efddcbe9f
feat(options): add new options to avoid stale base on comments (#494)
* feat(options): add new options to avoid stale based on comments

Helping to close #441, #470, #435?
Closes #390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false

* style(readme): fix table syntax due to rebase

* docs(readme): add permissions only for the new options
2021-06-14 09:56:55 -04:00
Geoffrey Testelin f1017f33dd
fix(dry-run): forbid mutations in dry-run (#500)
Bring back the dry-run by default for the tests - bad idea to disable it sorry
Fix bad documentation array format
Fixes #499
2021-06-10 10:14:45 -04:00