Skip to main content

GitHub Commands

Commands for managing GitHub repository settings, labels, workflows, and more.


change runner ๐Ÿ”’ ๐Ÿงชโ€‹

Changes the GitHub Actions runner in a workflow file.

Usage:

@gstraccini change runner <runner> <workflow> [jobs]

Parameters:

ParameterRequiredDescription
runnerโœ…The runner name (e.g., ubuntu-latest, windows-latest)
workflowโœ…The workflow filename (with or without the .yml/.yaml extension)
jobsโŒComma-separated list of jobs to update. Omitting this updates all jobs in the workflow

Examples:

@gstraccini change runner ubuntu-latest build
@gstraccini change runner windows-latest ci.yml lint,test
info

This command is currently in development and may not be fully stable.


copy issue ๐Ÿงชโ€‹

Copies an issue from the current repository to another.

Usage:

@gstraccini copy issue <repository>

Parameters:

ParameterRequiredDescription
repositoryโœ…The target repository where the issue will be copied (format: owner/repo)

Example:

@gstraccini copy issue guibranco/another-repo
info

This command is currently in development and may not be fully stable.


copy labelsโ€‹

Copies labels from another repository into the current one.

Usage:

@gstraccini copy labels <repository>

Parameters:

ParameterRequiredDescription
repositoryโœ…The source repository to copy labels from (format: owner/repo)

Example:

@gstraccini copy labels guibranco/gstraccini-bot-service

create labelsโ€‹

Creates the default labels in the repository.

Usage:

@gstraccini create labels [style] [categories]

Parameters:

ParameterRequiredDescription
styleโŒThe label style: icons or text
categoriesโŒComma-separated list of label categories to create

Examples:

@gstraccini create labels
@gstraccini create labels icons
@gstraccini create labels text bug,feature,documentation

rerun checks ๐Ÿ”’โ€‹

Reruns the checks in the target pull request matching a specific conclusion.

Usage:

@gstraccini rerun checks [conclusion]

Parameters:

ParameterRequiredDescription
conclusionโŒFilter checks by conclusion: success, failure, neutral, cancelled, timed_out, or action_required. Omitting this reruns all checks

Examples:

@gstraccini rerun checks
@gstraccini rerun checks failure
@gstraccini rerun checks timed_out

rerun workflows ๐Ÿ”’โ€‹

Reruns the GitHub Actions workflows in the target pull request. Only applicable for GitHub Actions.

Usage:

@gstraccini rerun workflows [conclusion]

Parameters:

ParameterRequiredDescription
conclusionโŒFilter workflows by conclusion: success, failure, neutral, cancelled, timed_out, or action_required. Omitting this reruns all workflows

Examples:

@gstraccini rerun workflows
@gstraccini rerun workflows failure
@gstraccini rerun workflows cancelled

revert commit ๐Ÿ”’โ€‹

Reverts a commit using its SHA1. The revert is committed directly into the PR branch.

Usage:

@gstraccini revert commit <sha1>

Parameters:

ParameterRequiredDescription
sha1โœ…The full or short SHA1 of the commit to revert

Example:

@gstraccini revert commit a1b2c3d

pin actionโ€‹

Pins GitHub Actions references to their commit SHA using pin-github-action.

Usage:

@gstraccini pin action [workflow]

Parameters:

ParameterRequiredDescription
workflowโŒThe workflow file path or glob pattern to pin. Defaults to .github/workflows/*.yml when omitted

Examples:

@gstraccini pin action
@gstraccini pin action .github/workflows/ci.yml