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
[action][git_commit] remove all instances of is_string
in options and use type
#18883
Conversation
@@ -71,7 +67,7 @@ def self.is_supported?(platform) | |||
|
|||
def self.example_code | |||
[ | |||
'git_commit(path: "./version.txt", message: "Version Bump")', | |||
# 'git_commit(path: "./version.txt", message: "Version Bump")', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Force to disable this otherwise test_sample_code
is failing...same as last PR: #18882 (comment)
waiting for Josh's recommendation here 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crazymanish What did you run to get this error? 🤔 I checked out this branch and wasn't getting this 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step1: Uncomment below example code (remove #)
# 'git_commit(path: "./version.txt", message: "Version Bump")',
Step2: Run bundle exec fastlane validate_docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, duh! You commented them out 😛
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
@crazymanish Added a fix for |
Thank you, thank you! 🚀 |
|
||
# Arrays can be an either be an array or string that gets split by comma in auto_convert_type | ||
if !value.kind_of?(Array) && !value.kind_of?(String) | ||
UI.user_error!("'#{self.key}' value must be either `true` or `false`! Found #{value.class} instead.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI.user_error!("'#{self.key}' value must be either `true` or `false`! Found #{value.class} instead.") | |
UI.user_error!("'#{self.key}' value must be either `array` or `comma seperated string`! Found #{value.class} instead.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
Hey @crazymanish 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
is_string
is slowly being replaced bytype
to make the docs clearer, options safer, and Swift generation more correct.git_commit
action.Description
is_string: true
from optionsTesting Steps
bundle exec rspec fastlane/spec/actions_specs/git_commit_spec.rb