COMMENT
Retrieve and concatenate GitHub Issue contents and comments into a single draft.
Full documentation: https://davidblue.wtf/issuedraft
𝗠𝘆 𝗰𝗼𝗻𝘁𝗮𝗰𝘁 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Email: davidblue@extratone.com
Contact card: https://davidblue.wtf/db.vcf
RoutineHub Profile: https://routinehub.co/user/blue
GitHub: https://github.com/extratone
iOS-specific Repository: https://github.com/extratone/i
Telegram: https://t.me/DavidBlue
Telegram Channel: https://t.me/extratone
Discord: https://davidblue.wtf/discord
Twitter: https://twitter.com/NeoYokel
Reddit: https://reddit.com/u/asphaltapostle
Mastodon: https://mastodon.social/@DavidBlue
EVERYWHERE: https://davidblue.wtf/socialdrop
URL
Get
Scheme
from
Shortcut Input

Component of URL
TEXT
Split
Component of URL
by
Custom
/

Split Text
SCRIPTING
Get
Item At Index
2
from
Split Text

Item from List
VARIABLES
Set variable
owner
to
Item from List
SCRIPTING
Get
Item At Index
3
from
Split Text

Item from List
VARIABLES
Set variable
repo
to
Item from List
TEXT
Text

Text
VARIABLES
Set variable
auth
to
Text
URL
https://api.github.com/repos
Component of URL

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
SCRIPTING
Get
Value
for
html_url
in
Contents of URL

Dictionary Value
VARIABLES
Set variable
link
to
Dictionary Value
SCRIPTING
Get
Value
for
user.login
in
Contents of URL

Dictionary Value
VARIABLES
Set variable
username
to
Dictionary Value
SCRIPTING
Get
Value
for
created_at
in
Contents of URL

Dictionary Value
CALENDAR
Get dates from
Dictionary Value

Dates
VARIABLES
Set variable
created
to
Dates
SCRIPTING
Get
Value
for
updated_at
in
Contents of URL

Dictionary Value
CALENDAR
Get dates from
Dictionary Value

Dates
VARIABLES
Set variable
updated
to
Dates
SCRIPTING
Get
Value
for
title
in
Contents of URL

Dictionary Value
VARIABLES
Set variable
title
to
Dictionary Value
SCRIPTING
Get
Value
for
labels
in
Contents of URL

Dictionary Value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
Get
Value
for
name
in
Repeat Item

Dictionary Value
SCRIPTING
End Repeat

Repeat Results
VARIABLES
Set variable
tags
to
Repeat Results
SCRIPTING
Get
Value
for
body
in
Contents of URL

Dictionary Value
VARIABLES
Set variable
body
to
Dictionary Value

Text
VARIABLES
Set variable
md
to
Text
SCRIPTING
Get
Value
for
comments
in
Contents of URL

Dictionary Value
SCRIPTING
If
Dictionary Value
is greater than
0
URL
URL
/comments

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
SCRIPTING
Repeat with each item in
Contents of URL

Repeat Results
SCRIPTING
Get
Value
for
user.login
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
user.html_url
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
updated_at
in
Repeat Item

Dictionary Value
CALENDAR
Get dates from
Dictionary Value

Dates
SCRIPTING
Get
Value
for
body
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
html_url
in
Repeat Item

Dictionary Value
TEXT
[※](
association
)‑[
commentURL
](
authorURL
)

Text
VARIABLES
Set variable
ref
to
Text
TEXT
ref
*
commentContent
*
---

Text
VARIABLES
Add
Text
to
comments
SCRIPTING
End Repeat

Repeat Results
TEXT
Combine
comments
with
New Lines

Combined Text
DOCUMENTS
Replace
#
with
##
in
Combined Text

Updated Text
VARIABLES
Add
Updated Text
to
md
SCRIPTING
End If

If Result
TEXT
Combine
md
with
New Lines

Combined Text
LIST

List
MISSING
Under Construction
SHARING
Copy
Draft
to clipboard
MISSING
Under Construction