/action-pr-assignee

Assigns a PR to the person who opened it

Primary LanguageTypeScriptMIT LicenseMIT

Test status

GitHub Action: Pull Request Assignee

Assigns a Pull Request to the person who created it, if they belong to the organization and have push permission in the repository.

Usage

You can use it on a repository through GitHub Actions:

- uses: augustohp/github-action-pr-assignee
  with:
    # Auth token to interact with the GitHub API (automatically generated).
    # Default: ${{ github.token }}
    token: ''

    # If no assignee can be defined (no "push" permission to the repository),
    # prevent the Pull Request from being merged.
    # Default: true
    require_assignee: false

Example: Block merge without assignees

- uses: augustohp/github-action-pr-assignee

Example: Assign but do not prevent merges

- uses: augustohp/github-action-pr-assignee
  with:
    require_assignee: false

Developing

To build and run run all checks:

$ npm install
$ npm run all
...

Releases publish a NPM package to GitHub Package Registry, to create a new one:

  • Update version on `composer.json
  • Create a tag on Git and a release on GitHub