8000 Add `only-issue-types` option to filter issues by type by Bibo-Joshi · Pull Request #1255 · actions/stale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add only-issue-types option to filter issues by type #1255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Bibo-Joshi
Copy link

Description:
Tries to implement a filter based on the issue type on issues as described in #1187. I tried following the suggestions in #1187 (comment). Copilot did help me, though I reviewed everything manually and made sure to follow the instructions in the contribution guide. Hopefully I didn't miss anything …

Related issue:
closes #1187

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@Copilot Copilot AI review requested due to automatic review settings May 19, 2025 19:54
@Bibo-Joshi Bibo-Joshi requested a review from a team as a code owner May 19, 2025 19:54
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new option ("only-issue-types") to filter issues by their type as part of the stale process.

  • Adds a new filter option in the issues processor options and corresponding enum.
  • Integrates issue type filtering within the processor with tests and documentation updates.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/interfaces/issues-processor-options.ts Added an optional property for filtering by issue type.
src/interfaces/issue.ts Added a new property for holding the issue type.
src/enums/option.ts Added the OnlyIssueTypes enum option.
src/classes/issues-processor.ts Updated logic to filter issues based on allowed types and log skipped ones.
src/classes/issue.ts Set issue_type based on provided issue information.
action.yml Added a new input parameter for only-issue-types.
tests/only-issue-types.spec.ts Added tests validating the behavior of filtering on issue types.
tests/functions/generate-issue.ts Extended the generateIssue function to support issue_type.
README.md Updated documentation to include details about the new option.
Comments suppressed due to low confidence (1)

src/classes/issues-processor.ts:261

  • The log message uses '$$type' which appears to be a typo or unclear wording; consider replacing it with a clearer reference such as 'issue'.
          `Skipping this $$type because its type ('${ issue.issue_type }') is not in onlyIssueTypes (${allowedTypes.join(', ')})`

Co-authored-by: andig <cpuidle@gmail.com>
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.

Filter based on issue type
2 participants
0