简体中文
这是一个教学,旨在帮助你学习创建GitHub的pull request,这是向世界上任何开源项目贡献代码的第一步。
- 修改
brave-people.json,在里面加入你的GitHub用户ID (不是你自己的名字),坐标和喜欢的颜色,然后创建一个pull request。 - 回到字节传说,然后查看
(V, 92)游戏坐标处的公告牌。
This is inspired by https://open-pixel-art.com/. This is a part of ByteLegend, a game to learn programming.
This challenge is intended to teach you how to create a pull request.
- Change
brave-people.json, add your GitHub ID (NOT your name), coordinate and favorite color, then create a pull request. - Go back to ByteLegend and check out the noticeboard at
(V, 92)game coordinate.
There are 3 GitHub jobs:
remember-brave-people: triggered upon PR with changes onbrave-people.json.- If there are changes other than
brave-people.json, cancel the workflow. - Otherwise, do
sanityCheck, make sure the player only change allowed part. - Generate the new image and JSON at
build/brave-people.png/build/brave-people-output.json - Move
build/brave-people.pngto root directory, commit and push. - Push
build/brave-people.png/build/brave-people-output.jsonto CDN so the player can see it in the game. - Merge current branch to
master.
- If there are changes other than
check: triggered upon PR with changes other thanbrave-people.json.- Run
testto make sure nothing is broken. - Wait for administrator review and merge the PR.
- Run
refresh-data-daily: for better performance,remember-brave-peopleonly writes the modified tile, not all. This job runs per day to refresh the data.