Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reunión 2024/07/10 #7

Open
crguezl opened this issue Jul 10, 2024 · 1 comment
Open

Reunión 2024/07/10 #7

crguezl opened this issue Jul 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@crguezl
Copy link

crguezl commented Jul 10, 2024

  • La memoria está sin hacer. Faltas de ortografía y frases ilegibles.
  • gh browse parece funcionar bien
  • gh codespace -R testear
  • gh issue -R testear
➜  cli git:(feat/gh-owner-core) gh codespace code --help
Open a codespace in Visual Studio Code

USAGE
  gh codespace code [flags]

FLAGS
  -c, --codespace string    Name of the codespace
      --insiders            Use the insiders version of Visual Studio Code
  -R, --repo string         Filter codespace selection by repository name (user/repo)
      --repo-owner string   Filter codespace selection by repository owner (username or org)
  -w, --web                 Use the web version of Visual Studio Code
@crguezl crguezl added the bug Something isn't working label Jul 10, 2024
@crguezl
Copy link
Author

crguezl commented Jul 10, 2024

The GitHub CLI (gh) uses the -R option in several commands to specify an alternative repository. This allows you to perform operations on repositories other than the one currently set as your default or the one you are working in.

Commands that Use the -R Option

Here are some common gh commands that utilize the -R option:

  1. gh issue: Manage issues for a repository.

    • Example: gh issue list -R owner/repo
  2. gh pr: Manage pull requests for a repository.

    • Example: gh pr list -R owner/repo
  3. gh repo: Manage GitHub repositories.

    • Example: gh repo view -R owner/repo
  4. gh release: Manage releases for a repository.

    • Example: gh release list -R owner/repo
  5. gh workflow: Manage GitHub Actions workflows.

    • Example: gh workflow list -R owner/repo

Examples

Here are some examples demonstrating how to use the -R option:

  1. List Issues in an Alternative Repository:

    gh issue list -R owner/alternative-repo
  2. List Pull Requests in an Alternative Repository:

    gh pr list -R owner/alternative-repo
  3. View Details of an Alternative Repository:

    gh repo view -R owner/alternative-repo
  4. List Releases in an Alternative Repository:

    gh release list -R owner/alternative-repo
  5. List Workflows in an Alternative Repository:

    gh workflow list -R owner/alternative-repo

General Syntax

The general syntax for using the -R option is:

gh <command> <subcommand> -R owner/repo

Summary

The -R option is a versatile feature of the GitHub CLI that allows you to perform various operations on repositories other than the current or default one. It is particularly useful for managing multiple repositories from the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants