Skip to content

Commit

Permalink
Update auto-assign.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RitiChandak authored Oct 2, 2024
1 parent 1dcab27 commit 0d21def
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Issue assignment
name: Issue Assignment

on:
issues:
Expand All @@ -13,14 +13,5 @@ jobs:
- name: 'Auto-assign issue creator'
uses: pozil/auto-assign-issue@v2
with:
script: |
const issue = context.payload.issue;
const assignee = issue.user.login;
const { github, context } = require('@actions/github');
// Assign the issue to the creator
await github.issues.addAssignees({
...context.repo,
issue_number: issue.number,
assignees: [assignee],
});
repo-token: ${{ secrets.GITHUB_TOKEN }} # Required token for authentication
assignees: ${{ github.event.issue.user.login }} # Auto-assign the issue creator

0 comments on commit 0d21def

Please sign in to comment.