(labelName = noFound)
| 58 | }; |
| 59 | /** @param {string} labelName */ |
| 60 | const removeLabel = async (labelName = noFound) => { |
| 61 | try { |
| 62 | return await github.rest.issues.removeLabel({ |
| 63 | ...issueFacts, |
| 64 | name: labelName, |
| 65 | }); |
| 66 | } catch (error) { |
| 67 | core.warning(error); |
| 68 | } |
| 69 | }; |
| 70 | /** @param {'open' | 'closed'} state */ |
| 71 | const updatePrState = async (state) => { |
| 72 | try { |