镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix per issue operation count - #662

Merged
luketomlinson merged 2 commits into
actions:mainfrom
Mike-Bell:FixIssueOperationCount
Feb 4, 2022
Merged

luketomlinson merged 2 commits into
actions:mainfrom
Mike-Bell:FixIssueOperationCount

Conversation

@Mike-Bell

Copy link
Copy Markdown
Contributor

Changes

  • Fixes an issue where per-issue operation count could be inaccurate in some cases

Context

fixes #661

I wanted to add some unit tests and fix the problem TDD-style, but this proved to be tough given the way that issues-processor is currently mocked out, so I gave up. Related, I also think that some of the tests in https://github.com/actions/stale/blob/main/__tests__/operations-per-run.spec.ts are making incorrect assertions because some of the methods that increment operation count get mocked. This all seems pretty fixable, but I think that would require more churn than I'm comfortable introducing right now, so if tests are required for this PR I think I'll leave it to someone else.

@Mike-Bell
Mike-Bell requested a review from a team as a code owner January 27, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

per-issue operation count can be inaccurate

2 participants