Skip to content

Conversation

@npmccallum
Copy link
Collaborator

If the repo doesn't contain the milestone, we still need to create the issue. This prevents losing the results of the test run. It also may handle the case where the repo is forked and the milestone is missing from the fork.

This means that we make a best-effort attempt to attach a milestone to the issue. But if we cannot find one, we file the issue with no milestone linkage.

If the repo doesn't contain the milestone, we still need to
create the issue. This prevents losing the results of the test
run. It also may handle the case where the repo is forked and the
milestone is missing from the fork.

This means that we make a best-effort attempt to attach a
milestone to the issue. But if we cannot find one, we file the
issue with no milestone linkage.
Copilot AI review requested due to automatic review settings October 15, 2025 21:23
Copy link

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 modifies the milestone handling logic when filing GitHub issues to prevent test run results from being lost when a milestone doesn't exist in the repository. Instead of failing with an error when a milestone isn't found, the code now files the issue without a milestone attachment.

Key Changes:

  • Removed the milestone() helper function that would error when a milestone wasn't found
  • Changed milestone assignment to use and_then() for optional milestone lookup, allowing issues to be created even when the milestone is missing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@amd-aliem amd-aliem left a comment

Choose a reason for hiding this comment

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

Tested and I see the issue created even if I give a bogus milestone now: amd-aliem/sev-certify#26

@npmccallum npmccallum merged commit 31ba7a4 into AMDEPYC:main Oct 15, 2025
7 checks passed
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.

2 participants