Skip to content

Commit

Permalink
test: add more coverage for the stale label behaviour (actions#352) (#17
Browse files Browse the repository at this point in the history
)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
C0ZEN and dependabot[bot] authored Mar 9, 2021
1 parent 6c29691 commit d485d43
Show file tree
Hide file tree
Showing 15 changed files with 3,276 additions and 289 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: |
npm install
npm ci
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
Expand Down
104 changes: 59 additions & 45 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __tests__/constants/default-processor-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export const DefaultProcessorOptions: IIssuesProcessorOptions = Object.freeze({
exemptAllAssignees: false,
exemptAllIssueAssignees: undefined,
exemptAllPrAssignees: undefined,
enableStatistics: false
enableStatistics: true
});
2,919 changes: 2,769 additions & 150 deletions dist/index.js

Large diffs are not rendered by default.

65 changes: 59 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pack": "ncc build",
"test": "jest",
"test:only-errors": "jest --reporters jest-silent-reporter --silent",
"test:watch": "jest --watch --notify --expandf",
"test:watch": "jest --watch --notify --expand",
"all": "npm run build && npm run format && npm run lint && npm run pack && npm test"
},
"repository": {
Expand Down Expand Up @@ -44,6 +44,7 @@
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"@vercel/ncc": "^0.27.0",
"chalk": "^4.1.0",
"eslint": "^7.21.0",
"eslint-plugin-github": "^4.1.2",
"eslint-plugin-jest": "^24.1.5",
Expand All @@ -52,6 +53,7 @@
"jest-silent-reporter": "^0.4.0",
"js-yaml": "^4.0.0",
"prettier": "^2.2.1",
"terminal-link": "^2.1.1",
"ts-jest": "^26.5.3",
"typescript": "^4.2.3"
}
Expand Down
4 changes: 2 additions & 2 deletions src/classes/assignees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Assignees {

if (exemptAssignees.length === 0) {
this._issueLogger.info(
`No option was specified to skip the stale process for this $$type`
`No assignee option was specified to skip the stale process for this $$type`
);
this._logSkip();

Expand All @@ -52,7 +52,7 @@ export class Assignees {
this._issueLogger.info(
`Found ${exemptAssignees.length} assignee${
exemptAssignees.length > 1 ? 's' : ''
} on this $$type`
} that can exempt stale on this $$type`
);

const hasExemptAssignee: boolean = exemptAssignees.some(
Expand Down
Loading

0 comments on commit d485d43

Please sign in to comment.