Skip to content

Conversation

Copy link

Copilot AI commented Sep 20, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original description:

Original prompt

Add a GH action that is both manually triggerable and also runs every 5 mins. Check gallery code as to how we currently fetch airtable and render cards. I want you to make a gallery template file and store a gallery checksum in .github folder. If checksum and api json checksum changes then use the template file to generate the whole gallery (incl all cards etc) but make sure that kmages are lazy loaded with the correct atteibutes! We need as little if not none js as possible. Also - here is cdn api:
Code of conduct
Contributing
flag
cdn.hackclub.com
Deep under the waves and storms there lies a vault...

Banner
Banner illustration by @maxwofford.

Slack Channel
📡 API Usage
All API endpoints require authentication via Authorization: Bearer api-token header
Use the API_TOKEN from your environment configuration
Failure to include a valid token will result in 401 Unauthorized responses
V3 API (Latest)
Version 3

Endpoint: POST https://cdn.hackclub.com/api/v3/new

Headers:

Authorization: Bearer api-token
Content-Type: application/json
Request Example:

curl --location 'https://cdn.hackclub.com/api/v3/new'
--header 'Authorization: Bearer beans'
--header 'Content-Type: application/json'
--data '[
"https://assets.hackclub.com/flag-standalone.svg",
"https://assets.hackclub.com/flag-orpheus-left.png"
]'
Response:

{
"files": [
{
"deployedUrl": "https://hc-cdn.hel1.your-objectstorage.com/s/v3/64a9472006c4472d7ac75f2d4d9455025d9838d6_flag-standalone.svg",
"file": "0_64a9472006c4472d7ac75f2d4d9455025d9838d6_flag-standalone.svg",
"sha": "64a9472006c4472d7ac75f2d4d9455025d9838d6",
"size": 4365
},
{
"deployedUrl": "https://hc-cdn.hel1.your-objectstorage.com/s/v3/d926bfd9811ebfe9172187793a171a5cbcc61992_flag-orpheus-left.png",
"file": "1_d926bfd9811ebfe9172187793a171a5cbcc61992_flag-orpheus-left.png",
"sha": "d926bfd9811ebfe9172187793a171a5cbcc61992",
"size": 8126
}
],
"cdnBase": "https://hc-cdn.hel1.your-objectstorage.com"
} - please convert images into webp and then use the cdn to upload/actually show these. Be careful and thorough. Do not add code comments.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants