Skip to content

sort order to get issues/pullrequests should be updated not created #1231

Open
@nakamasato

Description

@nakamasato

Description:

Strictly speaking, it's not a bug but the current behavior makes the stale feature less efficient.

As the default value of sort is created, when having many old issues, the retrieved issues are almost same until they're gradually closed especially when setting operations-per-run is set. https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

Expected behavior:
A description of what you expected to happen.

Sort by updated

Actual behavior:
A description of what is actually happening.

Sort by created

https://github.com/nakamasato/stale/blob/ee7ef89499a3de6e4fe1fc1acb994e67c64e0a2a/src/classes/issues-processor.ts#L565-L576

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions