Skip to content

git work pr update #5

@mdbs99

Description

@mdbs99

Let's create a new command option: pr update
This command should update the current pr.
When the contributor updates his PR and it wasn't merged into master yet, we need to update the local pr to continue working.

The commands should be:

git fetch origin pull/<id>/head
git merge pull/<id>/head

The script needs to check if the current branch is a PR by prefix pr. Otherwise, the user gets an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions