An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
April 27, 2022 07:58 pm GMT
Original Link: https://dev.to/adriens/github-cli-v290-is-out-clone-labels-feature-5452-is-here-3odk
Github CLI v2.9.0 is out : clone labels feature 5452 is here
Intro
GitHub CLI v2.9.0
is out and brings some nice new features around labels :
As recently I felt the need (for organizational level reporting) to synchronize labels on distinct repos (see dedicated feedback) :
, this latest release was the perfect match
The demo
A short video worths a thousand words so here go
Movie script
Replace with your account
clear# So a new release is avilable for Gtihub Cli # What's new on v2.9.0... let's find out gh release view v2.9.0 --repo cli/cli# ... and what is cli/cli #5452 "label clone" feature gh issue view 5452 --repo cli/cli# Let's give it a try # 1 Create a master repo gh repo create gh-cli-demo-labels-master --public # See labels on the newly created repo gh label list --repo adriens/gh-cli-demo-labels-master# Create a custom label gh label create SOMETHING_PINK --description "I love pink things" --color FFC0CB --repo adriens/gh-cli-demo-labels-master# And check it has been created gh label list --repo adriens/gh-cli-demo-labels-master# Look for the newly created label gh label list --repo adriens/gh-cli-demo-labels-master | grep PINK# Now, create a new repo...gh repo create gh-cli-demo-labels-synced --public # ... List existing labels on te newly created repogh label list --repo adriens/gh-cli-demo-labels-synced# Check that the PINK label does not existsgh label list --repo adriens/gh-cli-demo-labels-synced | grep PINK# Sync labels gh label clone adriens/gh-cli-demo-labels-master --repo adriens/gh-cli-demo-labels-synced# See if the clone command did work gh label list --repo adriens/gh-cli-demo-labels-synced | grep PINK# Job done # Cleanup the mess gh repo delete adriens/gh-cli-demo-labels-master --confirmgh repo delete adriens/gh-cli-demo-labels-synced --confirm# That's all folksgh repo view cli/cli# Go like it gh repo view cli/cli --web
Resources
Original Link: https://dev.to/adriens/github-cli-v290-is-out-clone-labels-feature-5452-is-here-3odk
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To