Skip to content

Commit

Permalink
Rename to ddg_apple_automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Aug 25, 2024
1 parent ccea3f4 commit a4a52fc
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
Original file line number Diff line number Diff line change
@@ -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 = '[email protected]'

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)
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
lane :test do
ddg_release_automation
ddg_apple_automation
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'fastlane/plugin/ddg_release_automation/version'
require 'fastlane/plugin/ddg_apple_automation/version'

module Fastlane
module DdgReleaseAutomation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
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
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}" })

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a4a52fc

Please sign in to comment.