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

Fix blocked issues action regex #10132

Closed
DitwanP opened this issue Aug 21, 2024 · 3 comments
Closed

Fix blocked issues action regex #10132

DitwanP opened this issue Aug 21, 2024 · 3 comments
Assignees
Labels
4 - verified Issues that have been released and confirmed resolved. estimate - 2 Small fix or update, may require updates to tests. p - low Issue is non core or affecting less that 10% of people using the library tooling Issues relating to build system fixes or improvements.

Comments

@DitwanP
Copy link
Contributor

DitwanP commented Aug 21, 2024

Priority impact

p - low

Summary

The regex in action is not correctly matching for the "Blocked Issues:" part of the comment. Instead its just matching any mention of a number preceded by a #.

This is causing the action to run and fail on issues that don't actually have any blocked issues listed like this one #7748.

Here's the failed attempt: https://github.com/Esri/calcite-design-system/actions/runs/10477994663/job/29020354524

Desired Outcome

The action should correctly exit with the comment that there are no blocked issues listed on a closed issue.

Resources

No response

@DitwanP DitwanP added tooling Issues relating to build system fixes or improvements. p - low Issue is non core or affecting less that 10% of people using the library 1 - assigned Issues that are assigned to a sprint and a team member. estimate - 2 Small fix or update, may require updates to tests. labels Aug 21, 2024
@DitwanP DitwanP self-assigned this Aug 21, 2024
DitwanP added a commit that referenced this issue Aug 21, 2024
…sue action (#10135)

**Related Issue:** #10132 

## Summary
Changes the regex to better match the "Blocked issue:" so that randomly
mentioned issues don't get matched and attempted to be unblocked.

Also, catches the issue not found error in case somehow a issue that
doesn't actually exist gets listed as blocked.

[Codepen to test
regex](https://codepen.io/Ditwan-Price/pen/QWXmmRL?editors=0012)
@DitwanP DitwanP added this to the 2024-08-27 - Aug Release milestone Aug 21, 2024
@DitwanP DitwanP added 3 - installed Issues that have been merged to master branch and are ready for final confirmation. and removed 1 - assigned Issues that are assigned to a sprint and a team member. labels Aug 21, 2024
Copy link
Contributor

Installed and assigned for verification.

Copy link
Contributor

Issue #10119 has been closed, this issue is ready for re-evaluation.

cc @geospatialem,@DitwanP

@DitwanP
Copy link
Contributor Author

DitwanP commented Aug 21, 2024

🍠 Verified the issue was resolved and automation is still working as expected (see the bot comment above). Also checked that there was no comment on an issue that I intentionally listed without "Blocked issues: " in front of it.

Also also...
Screenshot 2024-05-21 at 11 06 30 AM

@DitwanP DitwanP closed this as completed Aug 21, 2024
@DitwanP DitwanP added 4 - verified Issues that have been released and confirmed resolved. and removed 3 - installed Issues that have been merged to master branch and are ready for final confirmation. labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - verified Issues that have been released and confirmed resolved. estimate - 2 Small fix or update, may require updates to tests. p - low Issue is non core or affecting less that 10% of people using the library tooling Issues relating to build system fixes or improvements.
Projects
None yet
Development

No branches or pull requests

2 participants