Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions fetch_commits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env python3
import requests
import json

# List of OWASP repos
repos = [
"OWASP/OWASP-Top-10",
"OWASP/ASVS",
"OWASP/wstg",
"OWASP/CheatSheetSeries",
"OWASP/owasp-masvs",
"OWASP/owasp-mstg",
"OWASP/owasp-api-security",
"OWASP/owasp-testing-guide-v4",
"OWASP/owasp-testing-guide-v5",
"OWASP/owasp-zap"
]

# Preserve order while preventing accidental duplicates.
repos = list(dict.fromkeys(repos))

commits = []

for repo in repos:
try:
url = f"https://api.github.com/repos/{repo}/commits?per_page=10"
response = requests.get(url)
if response.status_code == 200:
data = response.json()
for commit in data:
message = commit['commit']['message']
commits.append(message)
if len(commits) >= 100:
break
if len(commits) >= 100:
break
except Exception:
pass

# Save to file
with open('commits.json', 'w') as f:
json.dump(commits[:100], f, indent=2)

print(f"Collected {len(commits[:100])} commits")
24 changes: 24 additions & 0 deletions review_prototype.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Review UI Prototype</title>
</head>
<body>
<h1>Content Review</h1>
<p id="content">Sample content to review</p>
<button onclick="approve()">Approve (Y)</button>
<button onclick="reject()">Reject (N)</button>
<script>
function approve() {
alert('Approved');
}
function reject() {
alert('Rejected');
}
document.addEventListener('keydown', function(e) {
if (e.key === 'y') approve();
if (e.key === 'n') reject();
});
</script>
</body>
</html>