Skip to content

anaverage-enri/.github

Repository files navigation

.github

Contributor: Enri

A fallback .github repository that applies community health files and shared workflows across all of my repositories that don't define their own.

Contents

.
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       β”œβ”€β”€ label-sync.yml
β”‚       β”œβ”€β”€ path-labeler.yml
β”‚       └── size-labeler.yml
β”œβ”€β”€ ISSUE_TEMPLATE/
β”‚   β”œβ”€β”€ bug_report.yml
β”‚   β”œβ”€β”€ config.yml
β”‚   └── feature_request.yml
β”œβ”€β”€ CODE_OF_CONDUCT.md
β”œβ”€β”€ CODEOWNERS
β”œβ”€β”€ path-labels.yml
β”œβ”€β”€ LICENSE
β”œβ”€β”€ PULL_REQUEST_TEMPLATE.md
└── README.md

Workflows

Workflow Description
path-labeler.yml Labels PRs by changed file paths
size-labeler.yml Labels PRs by size (XS–XXL)
label-sync.yml Syncs repository label definitions from the central manifest

Usage in consumer repos

Add thin callers in each consumer repo under .github/workflows/.

Label PR by Changed Paths β€” .github/workflows/path-labeler.yml

name: Label PR by Changed Paths

on:
  pull_request:
    types:
      - opened
      - synchronize
      - reopened

jobs:
  labels:
    uses: anaverage-enri/.github/.github/workflows/path-labeler.yml@main

Label PR by Size β€” .github/workflows/size-labeler.yml

name: Label PR by Size

on:
  pull_request:
    types:
      - opened
      - synchronize
      - reopened

jobs:
  size:
    uses: anaverage-enri/.github/.github/workflows/size-labeler.yml@main

Sync Repository Label Definitions β€” .github/workflows/label-sync.yml

name: Sync Repository Label Definitions

on:
  workflow_dispatch:

jobs:
  sync:
    uses: anaverage-enri/.github/.github/workflows/label-sync.yml@main
    # Optionally:
    # with:
    #   delete-other-labels: true

Any suggestion or contribution is welcome.

About

πŸ—‚οΈ Default community health files & shared GitHub Actions workflows for my personal repos

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors