Feat/store language in db #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Assign PR Creator | |
on: | |
pull_request: | |
types: [opened, reopened] | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
assign-pr-creator: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Assign PR creator as assignee | |
uses: actions/github-script@v5 | |
with: | |
script: | | |
const prNumber = context.payload.pull_request.number; | |
const creator = context.actor; | |
github.rest.issues.addAssignees({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: prNumber, | |
assignees: [creator] | |
}); | |
# prNumber: The number of the pull request | |
# creator: The username of the user who created the pull request | |
# github.rest.issues.addAssignees: The GitHub REST API endpoint to add assignees to an issue |