Skip to content

Commit 9fe2be9

Browse files
committed
add explanation-in argument
1 parent 42d6a57 commit 9fe2be9

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
student-files: tests/sample_code.py
4242
api-key: ${{ secrets.GOOGLE_API_KEY }}
4343
readme-path: tests/sample_readme.md
44+
explanation-in: Korean
4445
timeout-minutes: 5
4546

4647
- name: Output the outputs of the integration test of the action

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111
* API key as a required input.
1212
* Future plans & more in README.md.
13+
* International support
14+
1315

1416
### Changed
1517
* append integration step feedback output to the GITHUB_OUTPUT file of verification step.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
api-key: ${{ secrets.GOOGLE_API_KEY }}
5757
student-files: exercise.py
5858
readme-path: README.md
59+
explanation-in: English
5960
timeout-minutes: 5
6061
6162
```
@@ -66,6 +67,7 @@ jobs:
6667
* `api-key`: Your Google API key. (Required)
6768
* `student-files`: Comma-separated list of Python files containing the student's code for review. (Required)
6869
* `readme-path`: Path to the assignment instructions (README.md). (Optional)
70+
* `explanation-in`: Language for explanations (e.g., English, Korean). (Optional, default: English)
6971

7072
### Example with multiple JSON files and student files
7173
``` yaml
@@ -74,6 +76,7 @@ with:
7476
api-key: ${{ secrets.GOOGLE_API_KEY }}
7577
student-files: 'exercise1.py, exercise2.py'
7678
readme-path: README.md
79+
explanation-in: English
7780
```
7881

7982
## Limitations

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ inputs:
2525
required: false
2626
default: 'README.md'
2727
type: string
28+
explanation-in:
29+
description: 'Generate explanations in the specified language'
30+
required: false
31+
default: 'English'
32+
type: string
2833
outputs:
2934
feedback:
3035
description: 'Feedback from the tutor'

0 commit comments

Comments
 (0)