We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here are some patterns I've created after having this installed for only a few hours, it's been awesome!
To jump to Rubygems from a Gemfile (or it's alternative name, gems.rb):
gems.rb
{ pattern = "gem ['\"]([^%s]*)['\"]", prefix = "https://rubygems.org/gems/", suffix = "", file_patterns = { "Gemfile", "gems.rb" }, excluded_file_patterns = nil, },
Or to load the URL for a base image in Dockerhub:
-- Dockerfile images: unprefix, unnamespaced (the library images, like `ruby:3.2`) -- results in: https://hub.docker.com/_/ruby/ { pattern = "^FROM ([^:.]+):", prefix = "https://hub.docker.com/_/", suffix = "/", file_patterns = { "Dockerfile%S*", "Containerfile%S*" }, excluded_file_patterns = nil, extra_condition = function(matched_pattern) return not matched_pattern:match("/") end, }, -- Dockerfile images: unprefixed but namespaced (like crystallang/crystal) -- results in: https://hub.docker.com/r/crystallang/crystal { pattern = "FROM ([^:.]+):", prefix = "https://hub.docker.com/r/", suffix = "/", file_patterns = { "Dockerfile%S*", "Containerfile%S*" }, excluded_file_patterns = nil, extra_condition = function(matched_pattern) return matched_pattern:match("/") end, },
The text was updated successfully, but these errors were encountered:
Thanks for this, I will add it as the default setting for plugins.
Sorry, something went wrong.
No branches or pull requests
Here are some patterns I've created after having this installed for only a few hours, it's been awesome!
To jump to Rubygems from a Gemfile (or it's alternative name,
gems.rb
):Or to load the URL for a base image in Dockerhub:
The text was updated successfully, but these errors were encountered: