Structure
GitAction
Performs Git operations via SwiftyShell.
struct GitActionOverview
Supports status checks, committing version bumps, tagging releases, and pushing to remote.
Usage
let result = try await GitAction().run(
with: .init(operation: .ensureClean),
context: context
)Topics
Structures
struct OptionsConfiguration for the git action.
struct ResultResult of a git operation.
Initializers
init()Creates a
GitAction.
Instance Methods
func run(with: GitAction.Options, context: ActionContext) async throws -> GitAction.ResultExecute the action with the given options.
Type Properties
static let description: StringLong-form description for
--helpoutput and documentation.static let name: StringHuman-readable identifier, e.g.
"build","upload".static var validationRules: [ActionValidationRule]
Enumerations
enum GitOperationGit operations.
Default Implementations
Relationships
Conforms To
ActionSwift.SendableSwift.SendableMetatype