InditexTech / gh-sherpa

Streamline branch and pull request creation for Jira or GitHub issues from command line
Apache License 2.0
48 stars 2 forks source link

Adding Labels from cpr command #97

Open tomasmrtempe opened 3 weeks ago

tomasmrtempe commented 3 weeks ago

Motivation

Every time we develop new features, we need to set some labels on GitHub web after creating PRs from Sherpa CLI. Then, it would be a very insteresting skill for teams because they would use it from the first moment

Examples: gh sherpa cpr -i XXXX -labels autodeploy gh sherpa cpr -i XXXX -labels autopublish/snapshot-binaries

Acceptance criteria

hielfx commented 3 weeks ago

Hi @tomasmrtempe ! Thank you for opening this issue.

We will discuss internally about the implementation of the flag you mention. Currently you can do it with gh pr edit --add-label command after creating the pull request with Sherpa. E.g.:

# Create the pull request with Sherpa
gh sherpa cpr -i XXXX

# Add `autodeploy` and `autopublish/snapshot-binaries` labels to the pull request
gh pr edit --add-label autodeploy,autopublish/snapshot-binaries

Hope this helps you in the mean time.

Thanks!

tomasmrtempe commented 2 weeks ago

Hi @hielfx. Thanks for your advice. Bear in mind, if we want to create PRs with autodeploy flag, we'll need a commit after label editing in order to generate snapshot for example,

Thanks!