Skip to content

Commit

Permalink
Fix label rename
Browse files Browse the repository at this point in the history
- Now using correct api fields, `current_name` vs `new_name`.
- Fixes #120
  • Loading branch information
jvalkeal committed Dec 16, 2020
1 parent 1479af0 commit 8619980
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/labeler.ts
Expand Up @@ -134,7 +134,6 @@ export class Labeler {
try {
const params = {
...github.context.repo,
current_name: label.name,
name: label.name,
color: label.color,
description: label.description,
Expand All @@ -154,8 +153,8 @@ export class Labeler {
try {
const params = {
...github.context.repo,
current_name: label.from_name,
name: label.name,
new_name: label.name,
name: label.from_name,
color: label.color,
description: label.description,
mediaType: {
Expand Down

0 comments on commit 8619980

Please sign in to comment.