Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pr template, add pr checks and label checks #2804

Merged
merged 6 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<!-- ignore-task-list-start -->

### What is the context of this PR?

Describe what you have changed and why, link to other PRs or Issues as appropriate.

### How to review
### How to review this PR

Describe the steps required to test the changes (include screenshots if appropriate).

### Checklist

This needs to be completed by the person raising the PR.

<!-- ignore-task-list-end -->

- [ ] I have selected the correct Project for this PR (Design System) and selected the correct status
- [ ] I have selected the correct Assignee
6 changes: 6 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ changelog:
labels:
- Component
- Pattern
- title: Accessibility improvements
labels:
- Accessibility
- title: Enhancements
labels:
- Enhancement
Expand All @@ -16,6 +19,9 @@ changelog:
- title: Documentation
labels:
- Documentation
- title: Dependency updates
labels:
- Dependencies
- title: Other changes
labels:
- "*"
17 changes: 17 additions & 0 deletions .github/workflows/check-checklist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Checklist Checker
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened

jobs:
check-tasks:
name: Check tasks
runs-on: ubuntu-latest
steps:
- uses: mheap/require-checklist-action@v2
with:
requireChecklist: false
22 changes: 22 additions & 0 deletions .github/workflows/check-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Label Checker
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled

jobs:
check-labels:
name: Check labels
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: docker://onsdigital/github-pr-label-checker:v1.2.7
with:
one_of: Breaking changes,Accessibility,Bug,Documentation,Dependencies,Enhancement,Example
none_of: Awaiting resource,Do not merge,Duplicate,Needs validating,Not doing
repo_token: ${{ secrets.GITHUB_TOKEN }}