Skip to content

Commit

Permalink
Revert "feat: enable using the package.json repo url as the repositor…
Browse files Browse the repository at this point in the history
…yUrl for sentry"

This reverts commit d094c5b.
  • Loading branch information
lgaticaq committed Sep 2, 2020
1 parent 6ede7bb commit 17c14af
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ The plugin can be configured in the [**semantic-release** configuration file](ht
| `org` | The slug of the organization. Optional. Required if not present in environment variables |
| `url` | The URL to use to connect to sentry. Optional to set an on-premise instance |
| `repositoryUrl` | A valid repository name for add link to commits of new release. Optional. Ex: 'myorg / myapp' |
| `usePackageRepositoryUrl` | If set to `true`, the repository defined in the `package.json` is used. |
| `tagsUrl` | A valid url for add link to new release. Optional. Ex: https://github.com/owner/repo/releases/tag/vx.y.z |
| `environment` | Sentry environment. Optional for deploy. Default production |
| `deployName` | Deploy name. Optional for deploy |
Expand Down
6 changes: 0 additions & 6 deletions src/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ module.exports = async (pluginConfig, ctx) => {
}
if (pluginConfig.repositoryUrl) {
newCommit.repository = pluginConfig.repositoryUrl
} else if (
!pluginConfig.repositoryUrl &&
pluginConfig.usePackageRepositoryUrl === true &&
ctx.options.repositoryUrl
) {
newCommit.repository = ctx.options.repositoryUrl
}
return newCommit
}),
Expand Down
1 change: 0 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export interface Context extends SemanticReleaseContext, SemanticReleaseConfig,
export interface Config {
// Set url of repository tags. Ex: https://gitlab.com/my-org/my-repo
repositoryUrl?: string
usePackageRepositoryUrl?: boolean
// Set url of repository tags. Ex: https://gitlab.com/my-org/my-repo/-/tags
tagsUrl?: string
environment?: string
Expand Down

0 comments on commit 17c14af

Please sign in to comment.