You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/10/31 20:18:40 UTC
(beam) branch master updated: Swallow errors removing awaiting triage label (#32989)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 8c235043ec0 Swallow errors removing awaiting triage label (#32989)
8c235043ec0 is described below
commit 8c235043ec05788516f583f6e1d829887358aec8
Author: Danny McCormick <da...@google.com>
AuthorDate: Thu Oct 31 16:18:33 2024 -0400
Swallow errors removing awaiting triage label (#32989)
---
.github/workflows/self-assign.yml | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/self-assign.yml b/.github/workflows/self-assign.yml
index 084581db734..6c2f2219b4e 100644
--- a/.github/workflows/self-assign.yml
+++ b/.github/workflows/self-assign.yml
@@ -40,12 +40,16 @@ jobs:
repo: context.repo.repo,
assignees: [context.payload.comment.user.login]
});
- github.rest.issues.removeLabel({
- issue_number: context.issue.number,
- owner: context.repo.owner,
- repo: context.repo.repo,
- name: 'awaiting triage'
- });
+ try {
+ github.rest.issues.removeLabel({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ name: 'awaiting triage'
+ });
+ } catch (error) {
+ console.log(`Failed to remove awaiting triage label. It may not exist on this issue. Error ${error}`);
+ }
} else if (bodyString == '.close-issue') {
console.log('Closing issue');
if (i + 1 < body.length && body[i+1].toLowerCase() == 'not_planned') {