跳到正文
cccskills
免费在 GitHub 公开

change-sponsor-logo

Use when a sponsor has rebranded or sent an updated logo and it must change on current and future events without altering how they appeared at past devopsdays events.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Change a sponsor's logo

Sponsor logos and data are shared globally, so overwriting assets/sponsors/<c>/<id>.png would retroactively change every event that sponsor has ever supported. This project deliberately does not rewrite history — a 2018 event should still show the 2018 logo.

The fix is to keep the old logo under a date-stamped id, repoint past events at it, and give the new logo the original id so current and future events pick it up with no action from their organizers.

When you do not need any of this

If this event is the only one that has ever listed the sponsor, just replace the image and open a normal PR. Check first:

grep -rl "id: <sponsor-id>" data/events/ | sort

One result → simple replacement. More than one → continue.

Run the script

This is the one utility script worth calling directly: it takes arguments, has no interactive loop, and validates its inputs.

./utilities/change_sponsor_logo.sh <sponsor-id> /full/path/to/new-logo.png

Use the exact existing id as it appears in data/sponsors/, not the display name. The path to the new image must be absolute.

It will:

  1. Copy the current logo to assets/sponsors/<c>/<id>-before-<YYYYMMDD>.png
  2. Copy it again to static/img/sponsors/<id>-before-<YYYYMMDD>.png (the legacy tree — this filename pattern is the one exemption to the CI block on that directory)
  3. Copy the current data/sponsors/<id>.yml to <id>-before-<YYYYMMDD>.yml
  4. Overwrite assets/sponsors/<c>/<id>.png with the new image
  5. Rewrite past events' id: <sponsor-id> to id: <sponsor-id>-before-<YYYYMMDD>

Check what it actually did — this part matters

The script's idea of "past" is a path prefix match on the current calendar year, so it does not exclude future years. An event in a later year gets wrongly rewritten to the old logo.

git diff --stat
git diff -- data/events/ | grep '^[-+].*id:'

Then revert any event whose year is the current year or later:

git checkout -- data/events/2027/

Also check nothing was missed. The script enumerates through git ls-tree HEAD, so an event whose data file is not yet committed is invisible to it:

git status --short data/events/

Finish the sponsor data

Update data/sponsors/<id>.yml with anything else that changed — a new name after a rebrand, a new URL. The -before- copy keeps the old values for the old events.

Confirm the new logo meets the requirements: at least 200px wide (600px preferred), white or transparent background, and it really is a PNG.

Verify

  • A past event's sponsor page still shows the old logo
  • A current or upcoming event shows the new one
  • data/sponsors/<id>-before-<date>.yml exists and has the old values
  • Nothing under static/img/sponsors/ changed except the -before-<date> file, or CI blocks the PR
  • Preview two events — one old, one current — side by side

Submit

Follow .claude/skills/submit-changes/SKILL.md.

PR title: [SITE] Update <Sponsor> logo, since this is not scoped to one event.

Mention in the PR body which events were repointed to the -before- id, so a reviewer can sanity check the year boundary.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when adding, removing, or updating a local organizer on a devopsdays event team - covers the team_members entry, the photo, and the mandatory email to info@devopsdays.org that gates the merge.

中文简介正在准备中。当前显示原文说明。

devopsdays/devopsdays-web1932026年10月16日 更新

Use when a devopsdays event has confirmed a speaker and their talk, workshop, ignite, or keynote needs to appear on the event site - covers the speaker bio page, the talk page, the headshot, and multi-speaker talks.

中文简介正在准备中。当前显示原文说明。

devopsdays/devopsdays-web1932026年10月16日 更新

Use when a devopsdays event has sold or confirmed a sponsorship and the sponsor needs to appear on the event's site - covers both sponsors already in the shared directory and brand-new ones needing a logo and data file.

中文简介正在准备中。当前显示原文说明。

devopsdays/devopsdays-web1932026年10月16日 更新

Use when a devopsdays event has finished and the slides or video recordings need to be attached to the talk pages, or when a speaker sends a link to their deck afterwards.

中文简介正在准备中。当前显示原文说明。

devopsdays/devopsdays-web1932026年10月16日 更新

Use when building or editing a devopsdays event's schedule - adding talks, ignites, open spaces, breaks, and evening events to the program, or moving time slots around.

中文简介正在准备中。当前显示原文说明。

devopsdays/devopsdays-web1932026年10月16日 更新

Use when a devopsdays event that is already listed on the site has to be cancelled or postponed, and its pages need to stop advertising dates, registration, and sponsorship.

中文简介正在准备中。当前显示原文说明。

devopsdays/devopsdays-web1932026年10月16日 更新

查看 devopsdays 的全部技能

报告此技能的问题