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 cb0e681 commit cf7c65f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ on:
types: [opened]

jobs:
auto-assign:
assign_issues:
runs-on: ubuntu-latest

steps:
- name: Assign issue to creator
uses: kentaro-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Assign issue to creator
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.issue.number;
const creator = context.issue.user.login;
const config = {
owner: anuragverma108,
repo: SwapReads,
issue_number: issueNumber,
assignees: [creator]
};
await github.issues.addAssignees(config);
console.log(`Assigned ${creator} to issue #${issueNumber}`);

0 comments on commit cf7c65f

Please sign in to comment.