Skip to content

Commit

Permalink
Merge pull request #3 from bzy-debug/pingpong
Browse files Browse the repository at this point in the history
Pingpong
  • Loading branch information
bzy-debug authored Sep 18, 2024
2 parents 25c987d + 5cf6047 commit 14452be
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const starSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" w
fs.rmSync('dist', { recursive: true, force: true })
fs.mkdirSync('dist')

async function getPRInfo(prNumber: number) {
async function getPRInfo(teamName: string) {
const prNumber = getPrNumber(teamName)
const res = await ghClient.request(
'GET /repos/{owner}/{repo}/pulls/{pull_number}',
{
Expand Down Expand Up @@ -72,10 +73,9 @@ function getPrNumber(teamName: string): number {
}

async function collectMetaInfo(teamName: string): Promise<MetaInfo> {
const prNumber = getPrNumber(teamName)
const prInfo = process.env.DEV
? JSON.parse(fs.readFileSync('data.json', 'utf8'))
: await getPRInfo(prNumber)
: await getPRInfo(teamName)

const metaInfo: MetaInfo = {
teamName,
Expand Down
1 change: 1 addition & 0 deletions teams/MoonBit官方样例2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MoonBit 官方提交样例
1 change: 1 addition & 0 deletions teams/MoonBit官方样例2/control
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
P1 controls: Arrows
Binary file added teams/MoonBit官方样例2/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added teams/MoonBit官方样例2/game.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions teams/MoonBit官方样例2/title
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PingPong

0 comments on commit 14452be

Please sign in to comment.