Module 9 · In Studio · challenge 3 of 3 in this lesson
challenges/work/code_owners.luau returns the owners of the last rule that matches a path
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Write the matcher that GitHub's review rule needs. Start from the m14-ship tag in the game repo, then run it with game.ServerScriptService.RunGameTests:Invoke("team-workflow").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("team-workflow")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/code_owners.luau returns the owners of the last rule that matches a path
- A folder pattern does not match a longer folder name, and no match gives an empty list
- reviewers lists each owner of a changed file once, sorted
- The team-workflow challenge prints TEST PASS for all nine checks