Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 38 additions & 0 deletions Xplore-workshop/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions Xplore-workshop/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
32 changes: 32 additions & 0 deletions Xplore-workshop/.github/ISSUE_TEMPLATE/project-undertaking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Project Undertaking
about: Describe what you would like to build in short.
title: "[PROJECT NAME] - [YOUR NAME]"
labels: ''
assignees: ''

---

# Project Idea

- Mention your idea in brief.

*......description....*

- State what difficulties you are facing

1. difficulty 1

2. difficulty 2

...

- List the important libraries you believe would be necessary

1. ...

2. ...

...

- Any more notes, do add
49 changes: 49 additions & 0 deletions Xplore-workshop/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# πŸ“ CoC Python Workshop – Submission PR

---

## πŸ‘€ Student Details

- **Name:**
- **GitHub Username:**
- **University ID:**
- **Branch / Section:**

---

## πŸ“‚ Submission Details

- **Folder Name:** `<githubid>_solutions`
- **Number of Files Changed/Added:**

### πŸ“„ List of Files Changed/Added
-
-
-

---

## πŸ›  Description of Changes

Briefly describe:
- What bugs you fixed
- What improvements you made
- Any new files or features added
- Any assumptions you made

---

## βœ… Self-Declaration

I confirm that:

- [ ] I have followed the repository submission guidelines.
- [ ] I worked on my own fork.
- [ ] I confirm my folder is correctly named
- [ ] All changes are inside my `<githubid>_solutions` folder.
- [ ] I have tested my code before submission.
- [ ] This is my own work to the best of my knowledge.

---

🎯 Thank you for your submission!
67 changes: 67 additions & 0 deletions Xplore-workshop/.github/workflows/checkvalidpr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: PR Auto Grader

on:
pull_request_target:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
grade:
name: PR Auto Grader
runs-on: ubuntu-latest

steps:

# 1️⃣ Checkout PR code
- name: Checkout PR Code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

# 2️⃣ Checkout Private Grader Repository
- name: Checkout Private Grader
uses: actions/checkout@v4
with:
repository: Once-1296/CoC-workshop-test-runner
token: ${{ secrets.GRADER_REPO_TOKEN }}
path: grader_repo
# validate cloned Repo
- name: Validate Cloned Repo
run: |
if [ ! -d "grader_repo" ]; then
echo "❌ Failed to clone grader repo"
exit 1
fi

# 3️⃣ Fetch main branch
- name: Fetch Main Branch
run: git fetch origin main

- name: Assemble Workspace
run: |
mkdir workspace
mkdir workspace/student_repo
cp -r grader_repo/grader workspace/
cp -r grader_repo/hidden_tests workspace/
cp -r "${{ github.event.pull_request.user.login }}_solutions/." workspace/student_repo/
ls
pwd


# 4️⃣ Validate Repository Structure
- name: Validate Structure
run: python3 grader_repo/grader/validate_structure.py

# 5️⃣ Validate Only Allowed Files Modified
- name: Validate Diff
run: python3 grader_repo/grader/validate_diff.py
env:
GITHUB_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PULL_REQUEST_AUTHOR: ${{ github.event.pull_request.user.login }}
Loading
Loading