Remove the provided label to the pull request.
(label: string)
| 29 | |
| 30 | /** Remove the provided label to the pull request. */ |
| 31 | async removeLabel(label: string) { |
| 32 | const {number: issue_number, owner, repo} = context.issue; |
| 33 | try { |
| 34 | await this.git.issues.removeLabel({repo, owner, issue_number, name: label}); |
| 35 | core.info(`Removed ${label} label from ${this.type} #${issue_number}`); |
| 36 | } catch (err) { |
| 37 | core.error(`Failed to remove ${label} label from ${this.type} #${issue_number}`); |
| 38 | core.error(err as string); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | /** Add the provided label to the pull request. */ |
| 43 | async addLabel(label: string) { |