Skip to content

Conversation

@iangmaia
Copy link
Contributor

@iangmaia iangmaia commented Oct 30, 2024

What does it do?

Follow-up to the discussions in https://github.com/woocommerce/woocommerce-android/pull/12839/files#r1821331463. This PR:

  • Makes sure all values passed in the environment parameter are strings
  • Always prepend .buildkite to the pipeline_file parameter , enforcing our conventions

Checklist before requesting a review

  • Run bundle exec rubocop to test for code style violations and recommendations
  • Add Unit Tests (aka specs/*_spec.rb) if applicable
  • Run bundle exec rspec to run the whole test suite and ensure all your tests pass
  • Make sure you added an entry in the CHANGELOG.md file to describe your changes under the appropriate existing ### subsection of the existing ## Trunk section.
  • If applicable, add an entry in the MIGRATION.md file to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.

Comment on lines 10 to 11
# Both keys and values need to be passed as strings
environment = params[:environment].to_h { |k, v| [k.to_s, v.to_s] }
Copy link
Contributor

Choose a reason for hiding this comment

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

👌

@iangmaia iangmaia marked this pull request as ready for review October 30, 2024 14:30
iangmaia and others added 2 commits October 30, 2024 15:31
Co-authored-by: Olivier Halligon <[email protected]>
…ake the absolute vs. relative path handling
@iangmaia iangmaia added this to the 2️⃣ Next Minor Release milestone Oct 30, 2024
Copy link
Contributor

@mokagio mokagio left a comment

Choose a reason for hiding this comment

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

Thanks @iangmaia

FastlaneCore::ConfigItem.new(
key: :pipeline_file,
description: 'The path to the YAML pipeline file to upload',
description: 'The path to the YAML pipeline file to upload. If a relative path is provided, it will be prefixed with the `.buildkite/` folder path. Absolute paths are used as-is',
Copy link
Contributor

Choose a reason for hiding this comment

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

Leaving the option to pass an absolute path is excellent

@iangmaia iangmaia merged commit 31bb328 into trunk Oct 31, 2024
@iangmaia iangmaia deleted the iangmaia/environment-keys-values-to-string branch October 31, 2024 13:34
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.

4 participants