Validates pull requests in submodule repositories for various criteria:
- Adds a Jira-style issue code (e.g. PROJ-123) to the pull request's title, and a link to the Jira issue in the body if it's not there yet.
- Checks if a pull request exists in the parent repository.
Example validate-pull-request.yml:
name: Validate Pull Request
on:
# You can use pull_request if this is for a private repo that can't be forked.
pull_request_target:
jobs:
validate-pull-request:
name: Validate Pull Request
uses: Lombiq/GitHub-Actions/.github/workflows/validate-submodule-pull-request.yml@dev
with:
repository: Lombiq/Hastlayer-SDK
If this is for a submodule of Lombiq's Open-Source Orchard Core Extensions, the repo
input can be omitted, because the above is its default value. Otherwise, use your parent repository's address in the {owner}/{repo_name}
format.
If the parent repository is private, you'll need to specify the PARENT_TOKEN
secret too; see its inline documentation for details.
Refer to Github Actions reusable workflows for more information.