From 09d17127267ead3869e75aaf7f2b03600a771084 Mon Sep 17 00:00:00 2001 From: TESTELIN Geoffrey Date: Tue, 8 Jun 2021 18:49:04 +0200 Subject: [PATCH] docs(readme): add permissions only for the new options --- README.md | 9 ++++++--- __tests__/main.spec.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5800acf3b..5909d38e2 100644 --- a/README.md +++ b/README.md @@ -316,19 +316,22 @@ Default value: unset Automatically remove the stale label when the issues or the pull requests are commented. -Default value: `true` +Default value: `true` +Required Permission: `issues: write` and `pull-requests: write` #### remove-issue-stale-when-commented Override [remove-stale-when-commented](#remove-stale-when-commented) but only to automatically remove the stale label when the issues are commented. -Default value: unset +Default value: unset +Required Permission: `issues: write` and `pull-requests: write` #### remove-pr-stale-when-commented Override [remove-stale-when-commented](#remove-stale-when-commented) but only to automatically remove the stale label when the pull requests are commented. -Default value: unset +Default value: unset +Required Permission: `issues: write` and `pull-requests: write` #### labels-to-add-when-unstale diff --git a/__tests__/main.spec.ts b/__tests__/main.spec.ts index 5e0735a06..da3357191 100644 --- a/__tests__/main.spec.ts +++ b/__tests__/main.spec.ts @@ -1259,7 +1259,7 @@ test('when the option "labelsToAddWhenUnstale" is set, the labels should be adde expect.assertions(4); const opts = { ...DefaultProcessorOptions, - removeStaleWhenUpdated: true, + removeStaleWhenCommented: true, labelsToAddWhenUnstale: 'test' }; const TestIssueList: Issue[] = [