Skip to content
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

GH Project Workflow: Handle case where issue number is empty in 'Fixes' notation #10925

Merged
merged 1 commit into from
May 2, 2024

Conversation

nwmac
Copy link
Member

@nwmac nwmac commented May 1, 2024

This PR makes a small tweak to the GH Project workflow when parsing, looking for the fixes notation, to ensure an empty reference or an invalid reference is ignored (e.g. #10922 and #10921)

We check that the extracted issue number can be parsed as an integer and only use it, if it can.

@nwmac nwmac added this to the v2.9.0 milestone May 1, 2024
@nwmac nwmac requested a review from richard-cox May 1, 2024 08:26
@nwmac nwmac self-assigned this May 1, 2024
@nwmac nwmac changed the title Handle case where issue number if empty in fixed notation GH Project Workflow: Handle case where issue number is empty in fixed notation May 1, 2024
@nwmac nwmac changed the title GH Project Workflow: Handle case where issue number is empty in fixed notation GH Project Workflow: Handle case where issue number is empty in 'Fixes' notation May 1, 2024
@richard-cox
Copy link
Member

I hit something similar with #10761 and had to catch an exception instead, plus two other tweaks were needed (https://github.com/rancher/dashboard/pull/10761/files#diff-674cd4244c5f71d475138dd411bb5959bac74710742c60a2e8c5363f999db827). Shall we iterate with this solution, maybe those tweaks aren't needed now?

@nwmac nwmac merged commit a2b28e7 into rancher:master May 2, 2024
28 checks passed
@nwmac nwmac deleted the gh-project-workflow-fix branch May 2, 2024 09:59
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