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 3fada34 commit e7098a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 e7098a7

Please sign in to comment.