# \[번역] Pull Request와 이슈 연결하기

### Pull Request를 이슈에 연결하여 수정이 진행중임을 표시하고 Pull Request가 병합될 때 자동으로 이슈를 닫을 수 있습니다.

### 연결된 이슈와 Pull Request

Pull Request Description에서 지원하는 키워드를 사용하거나 수동으로 Pull Request를 이슈에 연결할 수 있습니다.

Pull Request를 이슈와 연결하면 같이 작업하는 사람은 누군가가 문제를 해결하고 있음을 알 수 있습니다.

연결된 Pull Request를 저장소의 기본 브랜치에 병하면 연결된 이슈가 자동으로 닫힙니다. 기본 브랜치에 대한 자세한 내용은 \[Setting the default branch]\(<https://help.github.com/en/github/administering-a-repository/setting-the-default-branch>)를 참고하세요.

### Pull Request를 수동으로 이슈에 연결하기

저장에 쓰기 권한이 있는 사람은 Pull Request를 이슈에 수동으로 연결할 수 있습니다.

각 Pull Request에 최대 10개의 이슈를 수동으로 연결할 수 있습니다. 이슈 및 Pull Request를 동일한 저장소에 있어야 합니다.

* Github 에서 저장의 메인페이지로 이동하세요.
* 저장 이름 아래에 **Pull Requests** 를 클릭하세요.

![](/files/-M6ZrS8PVlGc2GA1rjyo)

* Pull Request 목록에서 이슈에 연결할 Pull Request를 클릭하세요.&#x20;
* 오른쪽 사이드바에 연결된 **Linked Issues** 를 클릭하세요.

![](/files/-M6ZsHeL9Vg7rSf3gCLK)

* Pull Request에 연결할 이슈를 선택하세요.

![](/files/-M6ZsRXLuMt7DQTau3Mr)

### 키워드를 사용해 Pull Request를 이슈에 연결하기

Pull Request Description에서 지원하는 키워드를 사용하여 Pull Request를 이슈에 연결할 수 있습니다.

* close
* closes
* closed
* fix
* fixes
* fixed
* resolve
* resolves
* resolved

닫는 키워드는 이슈가 Pull Request와 동일한 저장소에 있는지에 따라 다릅니다.

| **Linked issue** |                   **Syntax**                  | **Example**                                                    |
| ---------------- | :-------------------------------------------: | -------------------------------------------------------------- |
| 이슈가 같은 저장소에 있을   |           *KEYWORD* #*ISSUE-NUMBER*           | `Closes #10`                                                   |
| 이슈가 다른 저장소에 있을   | *KEYWORD* *OWNER*/*REPOSITORY*#*ISSUE-NUMBER* | `Fixes octo-org/octo-repo#100`                                 |
| 이슈가 여러개일 때       |         Use full syntax for each issue        | `Resolves #10, resolves #123, resolves octo-org/octo-repo#100` |

수동으로 연결된 Pull Request만 수동으로 연결을 해제할 수 있습니다. 키워드를 사용해  연결한 이슈를 연결 해제 하기 위해선 Pull Request Description을 수정해서 키워드를 제거해야 합니다.

커밋 메시지에서 닫기 키워드를 사용할 수 있습니다. 커밋을 기본 브랜치로 병합하면 이슈는 종료되지만 커밋이 포함된 Pull Request는 연결된 Pull Request로 표시되지 않습니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bumkeyy.gitbook.io/bumkeyy-code/project-management/pull-request.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
