GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - nikunjdecyb/.github

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
PULL_REQUEST_TEMPLATE
PULL_REQUEST_TEMPLATE
 
 
profile
profile
 
 
scripts
scripts
 
 
CODE_REVIEW_GUIDE.md
CODE_REVIEW_GUIDE.md
 
 
ISSUE_TEMPLATE_SETUP_GUIDE.md
ISSUE_TEMPLATE_SETUP_GUIDE.md
 
 
LABEL_SETUP_GUIDE.md
LABEL_SETUP_GUIDE.md
 
 
PR_TEMPLATE_SETUP_GUIDE.md
PR_TEMPLATE_SETUP_GUIDE.md
 
 
PULL_REQUEST_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
 
 
README.md
README.md
 
 
SETUP_WORKFLOW_DEPLOYMENT.md
SETUP_WORKFLOW_DEPLOYMENT.md
 
 
TEMPLATE_SYNC_GUIDE.md
TEMPLATE_SYNC_GUIDE.md
 
 
TESTING_GUIDE.md
TESTING_GUIDE.md
 
 
WORKFLOW_DEPLOYMENT_GUIDE.md
WORKFLOW_DEPLOYMENT_GUIDE.md
 
 
pr-labeler.yml
pr-labeler.yml
 
 
size-labeler.yml
size-labeler.yml
 
 

Repository files navigation

🌐 Open Resilience Initiative

Organization-wide Standards & Automation

Organization


πŸ“– About This Repository

.github is a special repository that defines reusable workflows and standards for all repositories in the Open Resilience Initiative. This is not just for PR validationβ€”it's a framework for all automation across the organization.

What This Repository Provides

  • πŸ“‹ PR Templates - Standardized templates for consistent pull requests
  • πŸ› Issue Templates - Structured issue forms for bug reports, features, docs, and questions
  • βš™οΈ Reusable Workflows - Centralized GitHub Actions for ANY automation need
  • 🏷️ Label Configuration - Consistent labeling rules across all repositories
  • πŸ“š Documentation & Templates - Guidelines for creating new workflows
  • πŸ”„ Centralized Management - Update once, apply everywhere automatically

πŸ’‘ Key Principle: Define workflows once in .github, use them everywhere. This eliminates duplication and ensures consistency across all 16+ repositories.


πŸš€ Reusable Workflow Framework

Current Reusable Workflows

Workflow Purpose Used By
pr-validation.yml PR validation, labeling, security scanning All repositories
create-labels.yml Create standardized labels All repositories
deploy-workflows.yml Deploy workflows to all repos This repository only
template-sync.yml Sync changes from template repository Any repository created from template

How Reusable Workflows Work

1. Define workflow in .github (this repository):

# .github/.github/workflows/my-workflow.yml
name: My Reusable Workflow

on:
  workflow_call:  # Makes it reusable

jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
      - name: Do something
        run: echo "Works everywhere!"

2. Call it from any repository:

# Any repository: .github/workflows/use-my-workflow.yml
name: Use My Workflow

on:
  push:
    branches: [main]

jobs:
  call-workflow:
    uses: OpenResilienceInitiative/.github/.github/workflows/my-workflow.yml@main

Result: The workflow runs in that repository automatically!


πŸ“ Creating New Reusable Workflows

For New Contributors

Follow this pattern to create ANY new reusable workflow:

Step 1: Create the Reusable Workflow

Location: .github/.github/workflows/your-workflow.yml

name: Your Workflow Name (Reusable)

on:
  workflow_call:  # Required: Makes it reusable
    inputs:
      optional-input:
        description: 'Optional input parameter'
        required: false
        type: string

permissions:
  contents: read  # Set minimum required permissions

jobs:
  your-job:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      
      - name: Your step
        run: |
          echo "This workflow can be used by any repository"
          echo "Input: ${{ inputs.optional-input }}"

Step 2: Create a Caller Template

Location: .github/.github/workflows/your-workflow-caller.yml

This is the template that gets deployed to repositories:

name: Your Workflow Name

on:
  push:  # Trigger when you need it
    branches: [main]
  workflow_dispatch:  # Optional: Manual trigger

jobs:
  run-workflow:
    uses: OpenResilienceInitiative/.github/.github/workflows/your-workflow.yml@main
    with:
      optional-input: "value"

Step 3: Deploy to All Repositories

Update deploy-workflows.sh to include your new workflow:

# Add your workflow to the deploy script
REPOS=(...all repos...)
for repo in "${REPOS[@]}"; do
  # Copy your caller template
  cp your-workflow-caller.yml .github/workflows/your-workflow.yml
done

That's it! Your workflow is now available across all repositories.


🎯 Use Cases for Reusable Workflows

You can create reusable workflows for:

  • βœ… PR Validation (already implemented)
  • βœ… CI/CD Pipelines - Build, test, deploy
  • βœ… Security Scanning - SAST, dependency checks
  • βœ… Code Quality - Linting, formatting checks
  • βœ… Documentation - Auto-generate docs, check links
  • βœ… Label Management - Create/update labels (already implemented)
  • βœ… Template Syncing - Pull updates from template repos (already implemented)
  • βœ… Dependency Updates - Automated dependency management
  • βœ… Release Management - Automated versioning and releases
  • βœ… Any automation you need across multiple repos!

Pattern: If you need the same automation in multiple repositories, make it a reusable workflow in .github!


✨ Automated Features (Current)

PR Validation Workflow

All pull requests automatically get:

  • βœ… Semantic PR title validation (feat:, fix:, docs:, etc.)
  • βœ… PR body completeness checks
  • βœ… Auto-labeling (work type, area, priority, size)
  • βœ… Security scanning (Trivy)
  • βœ… Code quality checks

How to Use in Your Repository

Just add this file to any repository:

# .github/workflows/pr-validation.yml (in any repo)
name: PR Validation & Quality Checks

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

jobs:
  validate-and-label:
    uses: OpenResilienceInitiative/.github/.github/workflows/pr-validation.yml@main

That's it! All PR validation features work automatically.

Template Sync Workflow

Pull changes from the .github template repository into repositories created from it:

# .github/workflows/template-sync.yml (in any repo)
name: Sync from Template Repository

on:
  workflow_dispatch:
    inputs:
      create_pr:
        description: 'Create a PR instead of pushing directly'
        required: false
        default: true
        type: boolean
  schedule:
    # Run weekly on Monday at 2 AM UTC
    - cron: '0 2 * * 1'

jobs:
  sync-template:
    uses: OpenResilienceInitiative/.github/.github/workflows/template-sync.yml@main
    with:
      template_repo: 'OpenResilienceInitiative/.github'
      template_branch: 'main'
      target_branch: 'main'
      create_pr: ${{ inputs.create_pr != false }}

Features:

  • βœ… Handles unrelated git histories (template repositories)
  • βœ… Automatic merge conflict resolution (template wins)
  • βœ… Optional PR creation for review
  • βœ… Sync specific paths only (optional)
  • βœ… Weekly automatic sync (optional)

πŸ“– See: Template Sync Guide for detailed instructions.


πŸ“‹ Contributing Guidelines

Creating Your First Reusable Workflow

1. Plan your workflow:

  • What problem does it solve?
  • Will it be used by multiple repositories?
  • What triggers should it respond to?

2. Create the reusable workflow:

  • File: .github/.github/workflows/my-workflow.yml
  • Use workflow_call: trigger
  • Set minimum required permissions
  • Keep it simple and focused

3. Create the caller template:

  • File: .github/.github/workflows/my-workflow-caller.yml
  • Simple wrapper that calls your reusable workflow
  • Deploy this to repositories

4. Document it:

  • Add to this README
  • Explain what it does
  • Show example usage

5. Deploy it:

  • Update deploy-workflows.sh if needed
  • Or deploy manually to specific repos

🏷️ Labels

Labels are automatically applied via reusable workflows:

Category Labels Auto-detection
Work Type story, task, bug, hotfix Branch name
Priority P0-Critical, P1-High, P2-Medium, P3-Low PR content
Area frontend, backend, api, database, infra, docs Files changed
Size S, M, L, XL File count

πŸ“š Documentation

  • PR Template Guide - How to create proper PRs
  • Issue Template Guide - How to use and customize issue templates
  • Label Setup Guide - Understanding our label system
  • Workflow Deployment Guide - How to deploy workflows
  • Template Sync Guide - Sync changes from template repository
  • Code Review Guide - Review standards

πŸ”„ Workflow Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  .github Repository                  β”‚
β”‚  (This repository - Source of Truth) β”‚
β”‚                                      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚ Reusable Workflows            β”‚   β”‚
β”‚  β”‚ - pr-validation.yml          β”‚   β”‚
β”‚  β”‚ - create-labels.yml          β”‚   β”‚
β”‚  β”‚ - YOUR-NEW-WORKFLOW.yml      β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚                                      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚ Caller Templates              β”‚   β”‚
β”‚  β”‚ (deployed to repos)           β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           ↓ (automatic)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  All Organization Repositories       β”‚
β”‚  - ORISO-Frontend                   β”‚
β”‚  - ORISO-Backend                    β”‚
β”‚  - ORISO-Docs                       β”‚
β”‚  - ... (16+ repositories)          β”‚
β”‚                                      β”‚
β”‚  Each repo has caller workflows      β”‚
β”‚  that use reusable workflows         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Benefits:

  • βœ… Update once β†’ All repos get updates automatically
  • βœ… No duplication β†’ Single source of truth
  • βœ… Consistency β†’ Same workflow behavior everywhere
  • βœ… Easy to add β†’ New repos automatically get workflows

🌐 Organization

Open Resilience Initiative - Building accessible mental health support through open-source technology.

  • Website: openresilience.cc
  • Documentation: Platform Docs
  • GitHub: @OpenResilienceInitiative

Centralized automation framework for all repositories

License

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.