Skip to content

Conversation

Vestergaard32
Copy link

This PR fixes 2 issues in the admin-support-cli.

  1. The issue-check in main.ts breaks the check-workflow as that workflow is running independent on any issues.
  2. Using the included issue-template, the issueparser fails to resolve a "duration" property, as it is case sensitive.

Ran npm run all before creating the PR to ensure the linter and tests works as expected

@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 10:33
@Vestergaard32 Vestergaard32 requested a review from a team as a code owner August 7, 2025 10:33
Copy link
Contributor

@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 fixes two issues in the admin-support-cli related to GitHub Action workflow execution and issue parsing. The main goal is to ensure that workflows can run independently without breaking when no issue is present, and to correctly parse issue properties with proper case sensitivity.

  • Moves issue validation from global scope to specific actions that require issues
  • Fixes case-sensitive property parsing for issue duration field
  • Adds error handling guard for GitHub issue comment creation

Reviewed Changes

Copilot reviewed 3 out of 16 changed files in this pull request and generated 1 comment.

File Description
admin-support-cli/src/main.ts Relocates issue validation to action-specific cases and adds error handling guard
admin-support-cli/src/commands/actions/check-auto-demotion-action.ts Corrects property name from lowercase to capitalized Duration
admin-support-cli/tests/commands/actions/check-auto-demotion-action.test.ts Updates test mock to match corrected property name

@Vestergaard32
Copy link
Author

This PR is in response to this issue; #200

@Vestergaard32
Copy link
Author

Ping @ActionsDesk/services-delivery

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.

1 participant