Wir veröffentlichen regelmäßig Aktualisierungen unserer Dokumentation, und die Übersetzung dieser Seite kann noch im Gange sein. Die neuesten Informationen findest Du in der englischsprachigen Dokumentation. Informieren Sie uns bitte, falls auf dieser Seite ein Problem mit den Übersetzungen vorliegt.

Diese Version von GitHub Enterprise wurde eingestellt am 2020-11-12. Es wird keine Patch-Freigabe vorgenommen, auch nicht für kritische Sicherheitsprobleme. Für eine bessere Leistung, verbesserte Sicherheit und neue Features nimm ein Upgrade auf die neueste Version von GitHub Enterprise vor. Wende Dich an den GitHub Enterprise-Support, um Hilfe beim Upgrade zu erhalten.

Einen Pull Request zu einem Issue verknüpfen

You can link a pull request to an issue to show that a fix is in progress and to automatically close the issue when the pull request is merged.

Inhalt dieses Artikels

Note: The special keywords in a pull request description are interpreted when the pull request targets the repository's default branch. However, if the PR's base is any other branch, then these keywords are ignored, no links are created and merging the PR has no effect on the issues. If you want to link a pull request to an issue using a keyword, the PR must be on the default branch.

Über verknüpfte Issues und Pull Requests

You can link an issue to a pull request using a supported keyword in the pull request description.

Wenn Du einen Pull Request mit dem Issue verknüpfst, der vom Pull Request adressiert wird, dann können Mitarbeiter sehen, dass jemand am Issue arbeitet. If the pull request and the issue are in different repositories, GitHub Enterprise Server will display the link after the pull request is merged, if the person who merges the pull request also has permission to close the issue.

Wenn Du einen verknüpften Pull Request in den Standard-Branch eines Repository zusammenführst, werden seine verknüpften Issues automatisch geschlossen. For more information about the default branch, see "Changing the default branch."

Einen Pull Request über ein Stichwort mit einem Issue verknüpfen

You can link a pull request to an issue by using a supported keyword in the pull request's description or in a commit message (please note that the pull request must be on the default branch).

  • close (schließen)
  • closes (wird geschlossen)
  • closed (geschlossen)
  • fix (korrigieren)
  • fixes (korrigiert)
  • fixed (ist korrigiert)
  • beheben
  • resolves (löst)
  • resolved (gelöst)

Die Syntax für schließende Schlüsselwörter hängt davon ab, ob der Issue im gleichen Repository ist wie der Pull Request.

Verknüpfter IssueSyntaxBeispiel
Issue ist im gleichen RepositorySCHLÜSSELWORT #ISSUE-NUMMERCloses #10
Issue ist in einem unterschiedlichen RepositorySCHLÜSSELWORT INHABER/REPOSITORY#ISSUE-NUMMERFixes octo-org/octo-repo#100
Mehrfache IssuesVerwende für jeden Issue die vollständige SyntaxResolves #10, resolves #123, resolves octo-org/octo-repo#100

Du kannst schließende Schlüsselwörter auch in einer Commit-Mitteilung verwenden. The issue will be closed when you merge the commit into the default branch, but the pull request that contains the commit will not be listed as a linked pull request.

Weiterführende Informationen