Git Hub Issue Tracker
Project feature enabling integration with GitHub issue tracker
Example. It is not recommended to store secure values such as tokens directly in the DSL code, see Managing Tokens section of our documentation.
project {
// Other Project settings ...
features {
// Other Project Features ...
githubIssues {
id = "<Connection ID>" // arbitrary ID, must be unique in the project
displayName = "<Connection display name>"
repositoryURL = "<GitHub repository URL>"
authType = accessToken {
accessToken = "credentialsJSON:*****"
}
issuesPattern = "<Issue id pattern>" // optional, assumed #(\d+) if omitted
}
Content copied to clipboard }
}
Example. Uses a GitHub App installation token stored in TeamCity.
project {
// Other Project settings ...
features {
// Other Project Features ...
githubIssues {
id = "<Connection ID>" // arbitrary ID, must be unique in the project
displayName = "<Connection display name>"
repositoryURL = "<GitHub repository URL>"
authType = storedToken {
tokenId = "tc_token_id:*****"
}
issuesPattern = "<Issue id pattern>" // optional, assumed #(\d+) if omitted
}
Content copied to clipboard }
}
See also
Properties
Functions
Copies parameters of this object to the specified target
Creates an instance of this project feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Use GitHub App credentials
Authentication via login/password is no longer supported by GitHub. We highly recommend that you authenticate with access tokens instead.
Validates this object and reports found errors to the provided consumer