git_commit_all.rb 960 B

1234567891011121314151617181920212223242526272829303132333435
  1. module Fastlane
  2. module Actions
  3. class GitCommitAllAction < Action
  4. def self.run(params)
  5. Actions.sh "git commit -am \"#{params[:message]}\""
  6. end
  7. #####################################################
  8. # @!group Documentation
  9. #####################################################
  10. def self.description
  11. "Commit all unsaved changes to git."
  12. end
  13. def self.available_options
  14. [
  15. FastlaneCore::ConfigItem.new(key: :message,
  16. env_name: "FL_GIT_COMMIT_ALL",
  17. description: "The git message for the commit",
  18. is_string: true)
  19. ]
  20. end
  21. def self.authors
  22. # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  23. ["onevcat"]
  24. end
  25. def self.is_supported?(platform)
  26. true
  27. end
  28. end
  29. end
  30. end