You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
pull-requester
v1.0.5
A GitHub Action for running standard checks and automations on pull requests for
the n3tuk
Organisation.
You can use the pull-requester GitHub Action in a
GitHub Workflow by configuring a YAML file in your GitHub
repository (under .github/workflows/pull-requester.yaml
), with the following
contents:
---
name: Pull Requester
on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
# Catch when added labels are forcefully removed
- unlabeled
branches:
- main
permissions:
contents: read
packages: read
issues: write
pull-requests: write
jobs:
pull-requester:
runs-on: ubuntu-latest
name: Check the Pull Request
concurrency:
# Ensure that GitHub runs a single concurrent job for any Pull Requester
# event on any one pull request (i.e. github.event.number), and bias that
# to the latest job started, which will have access to the latest settings
group: pull-requester-${{ github.event.number }}
cancel-in-progress: true
steps:
- name: Pull Requester
uses: n3tuk/action-pull-requester@v1
Note: Do not use the
main
branch as a tag for the GitHub Action, as the container for the GitHub Action builds and releases on tagging, and the preparation for that is on merges to themain
branch.