Skip to content

Commit

Permalink
Merge pull request #2842 from alphagov/signpost-github
Browse files Browse the repository at this point in the history
Point developer to the schema that needs updating
  • Loading branch information
ChrisBAshton authored Nov 6, 2024
2 parents b300bd3 + b0288b4 commit 7a68ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/admin_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def support_payload
subject: "Specialist Finder Edit Request: #{current_format.title.pluralize}",
tags: %w[specialist_finder_edit_request],
priority: "normal",
description: "```\r\n#{params[:proposed_schema]}\r\n```",
description: "Developer - raise a PR replacing this schema with the schema below: " \
"https://github.com/alphagov/specialist-publisher/edit/main/lib/documents/schemas/#{current_format.document_type.pluralize}.json" \
"\r\n---\r\n" \
"```\r\n#{params[:proposed_schema]}\r\n```",
requester: {
name: current_user.name,
email: current_user.email,
Expand Down
1 change: 1 addition & 0 deletions spec/controllers/admin_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
tags: %w[specialist_finder_edit_request],
priority: "normal",
requester: { name: user.name, email: user.email },
description: /^Developer - raise a PR replacing this schema with the schema below: https:\/\/github\.com\/alphagov\/specialist-publisher\/edit\/main\/lib\/documents\/schemas\/cma_cases\.json\r\n---\r\n```\r\n{/,
}))

post :zendesk, params: { document_type_slug: "cma-cases", proposed_schema: CmaCase.finder_schema.schema }
Expand Down

0 comments on commit 7a68ccf

Please sign in to comment.