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

pr-pull: support globbing artifacts #17097

Merged
merged 7 commits into from
Apr 17, 2024

Conversation

ZhongRuoyu
Copy link
Member

@ZhongRuoyu ZhongRuoyu commented Apr 16, 2024

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Artifact actions v3 is deprecated and will soon be unavailable 1. This adds support for v4 by allowing brew pr-pull to accept a glob pattern for artifact names, like actions/download-artifact does 2.

Footnotes

  1. https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

  2. https://github.com/actions/download-artifact/tree/v4/#usage

@ZhongRuoyu ZhongRuoyu changed the title utils/github: support globbing artifacts pr-pull: support globbing artifacts Apr 16, 2024
Artifact actions v3 is deprecated and will soon be unavailable [^1].
This adds support for v4 by allowing `brew pr-pull` to accept a glob
pattern for artifact names, like actions/download-artifact does [^2].

[^1]: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
[^2]: https://github.com/actions/download-artifact/tree/v4/#usage
Copy link
Member

@Bo98 Bo98 left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @ZhongRuoyu!

@MikeMcQuaid
Copy link
Member

Artifact actions v3 is deprecated and will soon be unavailable

Note to anyone coming here later: this is the reason that deprecating this command-line argument doesn't make sense here. This is going to be broken soon due to reasons outside of Homebrew's control.

@ZhongRuoyu
Copy link
Member Author

ZhongRuoyu commented Apr 17, 2024

Merge order and note:

The two PRs above should work with existing v3 artifacts too because they only involve the REST APIs.

@ZhongRuoyu
Copy link
Member Author

ZhongRuoyu commented Apr 17, 2024

Merging. Will then try to test some PRs in core for each PR merged.

@ZhongRuoyu ZhongRuoyu merged commit 84d7318 into Homebrew:master Apr 17, 2024
26 checks passed
@ZhongRuoyu ZhongRuoyu deleted the artifact-actions-v4 branch April 17, 2024 16:58
@github-actions github-actions bot added the outdated PR was locked due to age label May 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants