Standing-Man commented on code in PR #3400:
URL: https://github.com/apache/iggy/pull/3400#discussion_r3333874128


##########
.github/workflows/issue-labeler-assigner.yml:
##########
@@ -103,3 +112,32 @@ jobs:
               issue_number: context.payload.issue.number,
               labels,
             });
+
+      - name: Assign author who volunteered to contribute
+        uses: actions/github-script@v9
+        with:
+          script: |
+            // The "Contribution" checkbox in both issue forms renders as a
+            // task-list line. Checked, it reads `- [x] I'm willing to submit a
+            // pull request ...`; the tail differs per template (bug: "to fix
+            // this bug", feature: "to implement this feature"), so match the
+            // shared prefix only.
+            const body = context.payload.issue.body || '';
+            const volunteered =
+              /(^|\n)\s*-\s*\[[xX]\]\s+I'm willing to submit a pull 
request/.test(body);

Review Comment:
   Could we use a simpler command(`take` or `assgin`) to trigger this? Also, if 
the current assignee no longer wants to work on the issue, could they use 
`untake` to relinquish it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to