Skip to content

GitHub

GH CLI

Delete repo alias

bash
gh alias set repo-delete 'api -X DELETE "repos/$1"'

Transfer repo ownership alias

bash
gh alias set transfer 'api repos/$1/transfer -f new_owner=$2'

Set Actions secrets

bash
gh secret set -f .env

Github Actions

Cookbook

Ignore dependabot PRs

yaml
jobs:
  pre-commit:
    if: github.actor != 'dependabot[bot]'