Skip to content

Commit c59c99f

Browse files
committed
fix: update endpoint for creating/updating custom properties
1 parent 9ee762f commit c59c99f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/plugins/custom_properties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ module.exports = class CustomProperties extends Diffable {
8585
return new NopCommand(
8686
this.constructor.name,
8787
this.repo,
88-
this.github.rest.repos.createOrUpdateCustomPropertiesValues.endpoint(params),
88+
this.github.rest.repos.customPropertiesForReposCreateOrUpdateRepositoryValues.endpoint(params),
8989
`${operation} Custom Property`
9090
)
9191
}
9292

9393
try {
9494
this.log.debug(`${operation} Custom Property "${name}" for the repo ${repoFullName}`)
95-
await this.github.rest.repos.createOrUpdateCustomPropertiesValues(params)
95+
await this.github.rest.repos.customPropertiesForReposCreateOrUpdateRepositoryValues(params)
9696
this.log.debug(`Successfully ${operation.toLowerCase()}d Custom Property "${name}" for the repo ${repoFullName}`)
9797
} catch (e) {
9898
this.logError(`Error during ${operation} Custom Property "${name}" for the repo ${repoFullName}: ${e.message || e}`)

0 commit comments

Comments
 (0)