Skip to content

Commit 018db7c

Browse files
Merge pull request #10 from chrisreddington/instructions-and-tsdocs
Enhance documentation and add copilot instructions
2 parents f79c09b + 7d3c224 commit 018db7c

12 files changed

Lines changed: 712 additions & 388 deletions

File tree

.github/copilot-instructions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Core Requirements
2+
3+
- The end goal is to create a custom GitHub Action which validates the
4+
devcontainer.json of a given repository.
5+
6+
## Code Quality Requirements
7+
8+
- Follow standard TypeScript conventions and best practices
9+
- Use clear, descriptive variable and function names
10+
- Add comments to explain complex logic or non-obvious implementations
11+
- Include TSDoc comments throughout the code.
12+
- Write unit tests for core functionality
13+
- Keep functions focused and manageable (generally under 50 lines)
14+
- Use error handling patterns consistently

__tests__/index.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ jest.mock('../src/main', () => ({
44
run: jest.fn()
55
}))
66

7+
/**
8+
* Test suite for the GitHub Action's entry point.
9+
* Validates that the action is properly initialized and the main run function is called.
10+
*/
711
describe('index', () => {
812
it('calls run when imported', async () => {
913
await import('../src/index')

0 commit comments

Comments
 (0)