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
Copy file name to clipboardExpand all lines: .github/workflows/auto-pr.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,14 @@ jobs:
70
70
body: `👋 Hey @${{ github.event.issue.user.login }}, thanks for your submission! We are sorry, but the name of the extension you submitted for an update doesn't match any existing extension. If you want to update one of your ingoing extension submission, please follow the instruction on your first submission 🙏`
71
71
})
72
72
73
+
if(error === "already-exists")
74
+
github.rest.issues.createComment({
75
+
issue_number: context.issue.number,
76
+
owner: context.repo.owner,
77
+
repo: context.repo.repo,
78
+
body: `👋 Hey @${{ github.event.issue.user.login }}, thanks for your submission! We are sorry, but the name of the extension you submitted is already taken. Please submit an update instead or choose another name 🙏`
79
+
})
80
+
73
81
if(error) {
74
82
core.setFailed("Extraction of the extension failed!");
0 commit comments