-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1333 from skalenetwork/enhancement/add-issue-check
Create issue_check.yml
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Get linked issues | ||
on: | ||
pull_request: | ||
types: [ edited, synchronize, opened, reopened ] | ||
|
||
jobs: | ||
check-linked-issues: | ||
name: Check if pull request has linked issues | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get issues | ||
id: get-issues | ||
uses: mondeja/pr-linked-issues-action@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
- name: PR has not linked issues | ||
if: join(steps.get-issues.outputs.issues) == '' | ||
run: | ||
exit 1 |