Skip to content

Commit fdcae0b

Browse files
authored
Merge pull request #1103 from code-corps/update-docs
Update exdoc to add groups for modules and improve some docs
2 parents 3e51fc2 + 8fd7ff4 commit fdcae0b

File tree

88 files changed

+469
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+469
-19
lines changed

lib/code_corps/github/sync/pull_request/pull_request.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
defmodule CodeCorps.GitHub.Sync.PullRequest do
22
alias CodeCorps.GitHub.Sync.PullRequest.GithubPullRequest, as: GithubPullRequestSyncer
3-
alias CodeCorps.GitHub.Sync.User.RecordLinker, as: UserRecordLinker
43
alias Ecto.Multi
54

65
@doc ~S"""

lib/code_corps/github/sync/sync.ex

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,26 +100,19 @@ defmodule CodeCorps.GitHub.Sync do
100100
|> transact()
101101
end
102102

103-
@doc ~S"""
104-
Finds the `CodeCorps.GithubRepo` using `GitHub.Sync.Utils.RepoFinder`.
105-
"""
103+
@doc false
106104
def find_repo(_, payload) do
107105
Multi.new
108106
|> Multi.run(:repo, fn _ -> RepoFinder.find_repo(payload) end)
109107
end
110108

111-
@doc ~S"""
112-
Fetches an issue from the GitHub API using `GitHub.API.Issue.from_url/2`.
113-
"""
109+
@doc false
114110
def fetch_issue(%{repo: %GithubRepo{} = github_repo}, url) do
115111
Multi.new
116112
|> Multi.run(:fetch_issue, fn _ -> GitHub.API.Issue.from_url(url, github_repo) end)
117113
end
118114

119-
@doc ~S"""
120-
Fetches a pull request from the GitHub API using
121-
`GitHub.API.PullRequest.from_url/2`.
122-
"""
115+
@doc false
123116
def fetch_pull_request(%{repo: %GithubRepo{} = github_repo}, url) do
124117
Multi.new
125118
|> Multi.run(:fetch_pull_request, fn _ -> GitHub.API.PullRequest.from_url(url, github_repo) end)

lib/code_corps/stripe_service/stripe_platform_customer.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule CodeCorps.StripeService.StripePlatformCustomerService do
3333
end
3434

3535
@doc """
36-
Updates a `CodeCorps.StripePlatformCustomer` local and associated `%Stripe.Customer{} API record
36+
Updates a `CodeCorps.StripePlatformCustomer` local and associated `%Stripe.Customer{}` API record
3737
with provided attributes
3838
3939
Returns
@@ -55,15 +55,15 @@ defmodule CodeCorps.StripeService.StripePlatformCustomerService do
5555
end
5656

5757
@doc """
58-
Updates a `CodeCorps.StripePlatformCustomer` local record using `%Stripe.Customer{} API record
58+
Updates a `CodeCorps.StripePlatformCustomer` local record using `%Stripe.Customer{}` API record
5959
retrieved from API using the provided Stripe ID
6060
6161
Returns
6262
6363
- `{:ok, %CodeCorps.StripePlatformCustomer{}}` if the local record was updated
6464
- `{:error, :not_found}` - If there was no record witht he specified Stripe ID
6565
- `{:error, %Ecto.Changeset{}}` -if there was a validation issue while updating the local record
66-
- `{:error, %Stripe.APIErrorResposne{}}` - if there was a problem with retrieving the API record
66+
- `{:error, %Stripe.APIErrorResponse{}}` - if there was a problem with retrieving the API record
6767
- `{:error, :unhandled}` -if something unexpected went wrong
6868
"""
6969
def update_from_stripe(id_from_stripe) do

lib/code_corps/stripe_service/webhook_processing/ignored_event_handler.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule CodeCorps.StripeService.WebhookProcessing.IgnoredEventHandler do
4545
Determines the reason for ignoring the event, then updates the record to
4646
`status: "ignored"` and `ignored_reason: inferred_message`
4747
48-
Returns `{:ok, %CodeCorps.StripeEvent{}}
48+
Returns `{:ok, %CodeCorps.StripeEvent{}}`
4949
"""
5050
@spec handle(StripeEvent.t, module) :: {:ok, StripeEvent.t}
5151
def handle(%StripeEvent{type: type} = local_event, handler) do

lib/code_corps_web/controllers/category_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule CodeCorpsWeb.CategoryController do
2+
@moduledoc false
23
use CodeCorpsWeb, :controller
34

45
alias CodeCorps.{Category, User, Helpers.Query}

lib/code_corps_web/controllers/comment_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule CodeCorpsWeb.CommentController do
2+
@moduledoc false
23
use CodeCorpsWeb, :controller
34

45
alias CodeCorps.{Comment, User, Helpers.Query}

lib/code_corps_web/controllers/donation_goal_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule CodeCorpsWeb.DonationGoalController do
2+
@moduledoc false
23
use CodeCorpsWeb, :controller
34

45
alias CodeCorps.Services.DonationGoalsService

lib/code_corps_web/controllers/fallback_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule CodeCorpsWeb.FallbackController do
2+
@moduledoc false
23
use CodeCorpsWeb, :controller
34

45
alias Ecto.Changeset

lib/code_corps_web/controllers/github_app_installation_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule CodeCorpsWeb.GithubAppInstallationController do
2+
@moduledoc false
23
use CodeCorpsWeb, :controller
34

45
import CodeCorps.Helpers.Query, only: [id_filter: 2]

lib/code_corps_web/controllers/github_events_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
defmodule CodeCorpsWeb.GitHubEventsController do
2+
@moduledoc false
23
use CodeCorpsWeb, :controller
34

45
alias CodeCorps.GitHub.Webhook.{

0 commit comments

Comments
 (0)