diff --git a/.github/workflows/post-gh-rca.yml b/.github/workflows/post-gh-rca.yml index 1cfeb750..da851b58 100644 --- a/.github/workflows/post-gh-rca.yml +++ b/.github/workflows/post-gh-rca.yml @@ -121,3 +121,16 @@ jobs: owner, repo, issue_number, body }); console.log(`✅ Comment posted on issue #${issue_number}`); + + // Add the RCA-needed label + try { + await github.rest.issues.addLabels({ + owner, + repo, + issue_number: issue_number, + labels: ['RCA-needed'] + }); + console.log(`✅ Added 'RCA-needed' label on issue #${issue_number}`); + } catch (error) { + console.log(`⚠️ Could not add label: ${error.message}`); + }