Skip to content

Commit

Permalink
How to link issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessom committed Jun 1, 2020
1 parent dc7c90f commit 8efe227
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ $ readme-template (bug/bug-xpto)> git commit -a -m "Fix bug"
$ readme-template (bug/bug-xpto)> git push origin bug/bug-xpto
```

A nice feature of Github is the [link to issue](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue), see the example below:

```shell
$ readme-template (master) > git pull origin master
$ readme-template (master) > git checkout -b feature/link-issue
$ readme-template (feature/link-issue) > git commit -a -m "Fixes bug related to issue #1"
$ readme-template (feature/link-issue) > git push origin feature/link-issue
```

Then open a Pull Request for your modification.
9 changes: 9 additions & 0 deletions CONTRIBUTING_pt_BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ $ readme-template (bug/bug-xpto) > git commit -a -m "Corrigi bug"
$ readme-template (bug/bug-xpto) > git push origin bug/bug-xpto
```

Um recurso bacana do Github é o [link para issue](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue), veja o exemplo abaixo:

``` shell
$ readme-template (master) > git pull origin master
$ readme-template (master) > git checkout -b bug/bug-xpto
$ readme-template (feature/link-issue) > git commit -a -m "Corrige bug relacionado a issue #1"
$ readme-template (feature/link-issue) > git push origin feature/link-issue
```

Depois abra um Pull Request para sua modificação.

0 comments on commit 8efe227

Please sign in to comment.