git_commit_all.rb 993 B

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