You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Remove the parity label if user doesn't have write access
36
+
await github.rest.issues.removeLabel({
37
+
owner: context.repo.owner,
38
+
repo: context.repo.repo,
39
+
issue_number: context.issue.number,
40
+
name: 'parity'
41
+
});
42
+
43
+
// Add a comment explaining why the label was removed
44
+
await github.rest.issues.createComment({
45
+
owner: context.repo.owner,
46
+
repo: context.repo.repo,
47
+
issue_number: context.issue.number,
48
+
body: `❌ **Parity Label Removed**\n\n@${context.actor}, you do not have sufficient permissions to add the 'parity' label. Only users with write access can trigger feature parity issues.\n\nIf you believe this feature should be implemented in the Python SDK, please ask a maintainer to add the label.`
49
+
});
50
+
51
+
throw new Error(`User ${context.actor} does not have write access to add parity label`);
52
+
}
53
+
54
+
console.log(`User ${context.actor} has ${permission.permission} access - proceeding with parity workflow`);
// Add a comment to the original PR confirming the issue was created
129
+
await github.rest.issues.createComment({
130
+
owner: context.repo.owner,
131
+
repo: context.repo.repo,
132
+
issue_number: context.issue.number,
133
+
body: `🔄 **Feature Parity Issue Created**\n\nAn issue has been automatically created in the Python SDK repository to track parity implementation:\n${issue.html_url}`
0 commit comments