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
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# EditorConfig helps maintain consistent coding styles
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
max_line_length = 120

[*.{yml,yaml}]
indent_size = 2

[*.json]
indent_size = 2

[*.py]
indent_size = 4

[*.{c,cpp,h,hpp}]
indent_size = 4

[*.{sh,bash}]
indent_size = 2

[Makefile]
indent_style = tab

[*.go]
indent_style = tab
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Default owners for this repo and shared config
* @professoroakz

# Workflows
.github/workflows/ @professoroakz
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [professoroakz]
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Report something that isn't working
title: '[Bug] '
labels: bug
assignees: ''
---

## Description

A clear and concise description of the bug.

## Steps to reproduce

1. ...
2. ...
3. ...

## Expected behavior

What you expected to happen.

## Actual behavior

What actually happened.

## Environment

- OS:
- Browser (if applicable):
- Version/commit:

## Additional context

Logs, screenshots, or other relevant details.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Security vulnerability report
url: https://github.com/professoroakz/.github/security/policy
about: Please report security vulnerabilities privately (see SECURITY.md).
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Documentation
about: Suggest an improvement or correction to documentation
title: '[Docs] '
labels: documentation
assignees: ''
---

## What needs improvement?

Describe the doc issue or missing content.

## Where is it?

Link to the page/file/section.

## Proposed change

What should be changed or added?

## Additional context

Screenshots, examples, or references.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea or improvement
title: '[Feature] '
labels: enhancement
assignees: ''
---

## Problem

What problem are you trying to solve?

## Proposal

What do you want to happen?

## Alternatives

What other approaches have you considered?

## Additional context

Links, mockups, examples, etc.
6 changes: 6 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Security Policy

Please do **not** open public issues for vulnerabilities.

- Use GitHub "Report a vulnerability" (preferred, if enabled)
- Or email: **security@professoroakz.org**

Check failure on line 6 in .github/SECURITY.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Bare URL used

.github/SECURITY.md:6:15 MD034/no-bare-urls Bare URL used [Context: "security@professoroakz.org"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md034.md
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 10
38 changes: 38 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Auto-label pull requests based on changed files
# Format for actions/labeler@v5

documentation:
- changed-files:
- any-glob-to-any-file: '**/*.md'
- changed-files:
- any-glob-to-any-file: 'docs/**/*'

workflows:
- changed-files:
- any-glob-to-any-file: '.github/workflows/**/*'

ci:
- changed-files:
- any-glob-to-any-file: ['.github/workflows/**/*', '.github/actions/**/*']

dependencies:
- changed-files:
- any-glob-to-any-file: ['package.json', 'package-lock.json', 'Dockerfile']

scripts:
- changed-files:
- any-glob-to-any-file: ['bin/**/*', 'scripts/**/*']

tests:
- changed-files:
- any-glob-to-any-file: ['test/**/*', '**/*.test.js', '**/*.spec.js']

configuration:
- changed-files:
- any-glob-to-any-file:
['**/.*.yml', '**/.*.yaml', '**/.*.json', '.editorconfig', '.gitignore']

community:
- changed-files:
- any-glob-to-any-file:
['CODE_OF_CONDUCT.md', 'CONTRIBUTING.md', 'SECURITY.md', 'SUPPORT.md', 'LICENSE']
12 changes: 12 additions & 0 deletions .github/mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"ignorePatterns": [
{ "pattern": "^http://localhost" },
{ "pattern": "^https://localhost" },
{ "pattern": "^(mailto:)" },
{ "pattern": "https://www.npmjs.com/package/@professoroakz/github" },
{ "pattern": "https://github.com/orgs/professoroakz/discussions" }
],
"retryOn429": true,
"retryCount": 2,
"aliveStatusCodes": [200, 201, 202, 203, 204, 206, 301, 302, 303, 307, 308, 403, 404]
}
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Summary

Describe what this PR changes and why.

## Changes

- [ ] Bug fix
- [ ] Feature
- [ ] Docs
- [ ] Chore / maintenance

## Validation

How did you test/verify this change?

- [ ] CI passes
- [ ] Manual validation (describe)

## Checklist

- [ ] No secrets / credentials committed
- [ ] Docs updated (if needed)
- [ ] Related issue linked (if applicable)
18 changes: 18 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
}
],
"schedule": ["before 6am on Monday"],
"labels": ["dependencies"],
"assignees": ["@professoroakz"],
"lockFileMaintenance": {
"enabled": true,
"automerge": true
}
}
22 changes: 22 additions & 0 deletions .github/workflows/auto-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto Sync

on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 1' # weekly

permissions:
contents: write

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: No-op placeholder (document intent)
run: |
echo "Auto-sync is intentionally a placeholder."
echo "If you want cross-repo sync, implement with GitHub CLI and PAT with appropriate scopes."
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
pull_request:
push:
branches: ['main']

jobs:
repo_hygiene:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Require core files
shell: bash
run: |
set -euo pipefail

required_files=(
"README.md"
"CODE_OF_CONDUCT.md"
"CONTRIBUTING.md"
"SECURITY.md"
"LICENSE"
".github/ISSUE_TEMPLATE/bug_report.md"
".github/ISSUE_TEMPLATE/feature_request.md"
".github/pull_request_template.md"
)

missing=0
for f in "${required_files[@]}"; do
if [[ ! -f "$f" ]]; then
echo "Missing required file: $f"
missing=1
fi
done

if [[ "$missing" -ne 0 ]]; then
echo "Required files missing."
exit 1
fi

- name: Markdown link check
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'no'
config-file: '.github/mlc_config.json'
42 changes: 42 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Labeler

on:
pull_request:
types: [opened, synchronize, reopened]
issues:
types: [opened]

permissions:
contents: read
issues: write
pull-requests: write

jobs:
label-pr:
name: Label Pull Request
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml

label-size:
name: Label PR Size
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/xs'
xs_max_size: '10'
s_label: 'size/s'
s_max_size: '100'
m_label: 'size/m'
m_max_size: '500'
l_label: 'size/l'
l_max_size: '1000'
xl_label: 'size/xl'
fail_if_xl: 'false'
Loading
Loading