diff --git a/README.md b/README.md index 50b8b32..32119d4 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -# ddg_release_automation plugin +# ddg_apple_automation plugin -[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-ddg_release_automation) +[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-ddg_apple_automation) ## Getting Started -This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-ddg_release_automation`, add it to your project by running: +This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-ddg_apple_automation`, add it to your project by running: ```bash -fastlane add_plugin ddg_release_automation +fastlane add_plugin ddg_apple_automation ``` -## About ddg_release_automation +## About ddg_apple_automation This plugin contains actions used by DuckDuckGo iOS and macOS release automation. It's meant for internal use only. We do not accept contributions to this repository at this time. diff --git a/fastlane-plugin-ddg_release_automation.gemspec b/fastlane-plugin-ddg_apple_automation.gemspec similarity index 66% rename from fastlane-plugin-ddg_release_automation.gemspec rename to fastlane-plugin-ddg_apple_automation.gemspec index 67a1fa5..4444a91 100644 --- a/fastlane-plugin-ddg_release_automation.gemspec +++ b/fastlane-plugin-ddg_apple_automation.gemspec @@ -1,15 +1,15 @@ lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'fastlane/plugin/ddg_release_automation/version' +require 'fastlane/plugin/ddg_apple_automation/version' Gem::Specification.new do |spec| - spec.name = 'fastlane-plugin-ddg_release_automation' + spec.name = 'fastlane-plugin-ddg_apple_automation' spec.version = Fastlane::DdgReleaseAutomation::VERSION spec.author = 'DuckDuckGo' spec.email = 'ios@duckduckgo.com' - spec.summary = 'This plugin contains actions used in DuckDuckGo iOS and macOS release automation' - spec.homepage = "https://github.com/duckduckgo/apple-toolbox" + spec.summary = 'This plugin contains actions used for workflow automation in DuckDuckGo Apple repositories' + spec.homepage = "https://github.com/duckduckgo/fastlane-plugin-ddg_apple_automation" spec.license = "MIT" spec.files = Dir["lib/**/*"] + %w(README.md LICENSE) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2eec8bb..348a7dc 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,3 +1,3 @@ lane :test do - ddg_release_automation + ddg_apple_automation end diff --git a/lib/fastlane/plugin/ddg_release_automation.rb b/lib/fastlane/plugin/ddg_apple_automation.rb similarity index 88% rename from lib/fastlane/plugin/ddg_release_automation.rb rename to lib/fastlane/plugin/ddg_apple_automation.rb index 874c8b0..93da60b 100644 --- a/lib/fastlane/plugin/ddg_release_automation.rb +++ b/lib/fastlane/plugin/ddg_apple_automation.rb @@ -1,4 +1,4 @@ -require 'fastlane/plugin/ddg_release_automation/version' +require 'fastlane/plugin/ddg_apple_automation/version' module Fastlane module DdgReleaseAutomation diff --git a/lib/fastlane/plugin/ddg_release_automation/actions/asana_extract_task_assignee_action.rb b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_extract_task_assignee_action.rb similarity index 86% rename from lib/fastlane/plugin/ddg_release_automation/actions/asana_extract_task_assignee_action.rb rename to lib/fastlane/plugin/ddg_apple_automation/actions/asana_extract_task_assignee_action.rb index 7091b94..5fd7781 100644 --- a/lib/fastlane/plugin/ddg_release_automation/actions/asana_extract_task_assignee_action.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_extract_task_assignee_action.rb @@ -2,7 +2,7 @@ require "fastlane_core/configuration/config_item" require "httparty" require "json" -require_relative "../helper/ddg_release_automation_helper" +require_relative "../helper/ddg_apple_automation_helper" require_relative "../helper/github_actions_helper" module Fastlane @@ -10,8 +10,8 @@ module Actions class AsanaExtractTaskAssigneeAction < Action def self.run(params) task_id = params[:task_id] - token = Helper::DdgReleaseAutomationHelper.fetch_asana_token - url = Helper::DdgReleaseAutomationHelper::ASANA_API_URL + "/tasks/#{task_id}?opt_fields=assignee" + token = Helper::DdgAppleAutomationHelper.fetch_asana_token + url = Helper::DdgAppleAutomationHelper::ASANA_API_URL + "/tasks/#{task_id}?opt_fields=assignee" response = HTTParty.get(url, headers: { 'Authorization' => "Bearer #{token}" }) diff --git a/lib/fastlane/plugin/ddg_release_automation/actions/asana_extract_task_id_action.rb b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_extract_task_id_action.rb similarity index 96% rename from lib/fastlane/plugin/ddg_release_automation/actions/asana_extract_task_id_action.rb rename to lib/fastlane/plugin/ddg_apple_automation/actions/asana_extract_task_id_action.rb index 15ac412..8360b38 100644 --- a/lib/fastlane/plugin/ddg_release_automation/actions/asana_extract_task_id_action.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_extract_task_id_action.rb @@ -1,6 +1,6 @@ require "fastlane/action" require "fastlane_core/configuration/config_item" -require_relative "../helper/ddg_release_automation_helper" +require_relative "../helper/ddg_apple_automation_helper" require_relative "../helper/github_actions_helper" module Fastlane diff --git a/lib/fastlane/plugin/ddg_release_automation/helper/ddg_release_automation_helper.rb b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb similarity index 73% rename from lib/fastlane/plugin/ddg_release_automation/helper/ddg_release_automation_helper.rb rename to lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb index 7dee361..b4d94cf 100644 --- a/lib/fastlane/plugin/ddg_release_automation/helper/ddg_release_automation_helper.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb @@ -4,15 +4,15 @@ module Fastlane UI = FastlaneCore::UI unless Fastlane.const_defined?(:UI) module Helper - class DdgReleaseAutomationHelper + class DdgAppleAutomationHelper # class methods that you define here become available in your action - # as `Helper::DdgReleaseAutomationHelper.your_method` + # as `Helper::DdgAppleAutomationHelper.your_method` # ASANA_API_URL = "https://app.asana.com/api/1.0" def self.show_message - UI.message("Hello from the ddg_release_automation plugin helper!") + UI.message("Hello from the ddg_apple_automation plugin helper!") end def self.fetch_asana_token diff --git a/lib/fastlane/plugin/ddg_release_automation/helper/github_actions_helper.rb b/lib/fastlane/plugin/ddg_apple_automation/helper/github_actions_helper.rb similarity index 100% rename from lib/fastlane/plugin/ddg_release_automation/helper/github_actions_helper.rb rename to lib/fastlane/plugin/ddg_apple_automation/helper/github_actions_helper.rb diff --git a/lib/fastlane/plugin/ddg_release_automation/version.rb b/lib/fastlane/plugin/ddg_apple_automation/version.rb similarity index 100% rename from lib/fastlane/plugin/ddg_release_automation/version.rb rename to lib/fastlane/plugin/ddg_apple_automation/version.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 34d89cc..7d6e6f5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,6 +10,6 @@ module SpecHelper end require 'fastlane' # to import the Action super class -require 'fastlane/plugin/ddg_release_automation' # import the actual plugin +require 'fastlane/plugin/ddg_apple_automation' # import the actual plugin Fastlane.load_actions # load other actions (in case your plugin calls other actions or shared values)