Skip to content

Commit

Permalink
Fix auto assign on issue comment
Browse files Browse the repository at this point in the history
Previously the action was checking always whether the author of the
issue was one of the maintainers instead of whether the comment was
created by a none-maintainer.
  • Loading branch information
mstoykov committed Feb 13, 2024
1 parent 9c0c179 commit ae802d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/issue-auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
const assigneeCount = 1;
// Do not automatically assign users if someone was already assigned or it was opened by a maintainer
if (context.payload.issue.assignees.length > 0 || assignees.includes(context.payload.issue.user.login)) {
if (context.payload.issue.assignees.length > 0 || assignees.includes(context.actor)) {
return;
}
const crypto = require("node:crypto");
Expand Down

0 comments on commit ae802d6

Please sign in to comment.