Skip to content

Commit

Permalink
Ci/improvements (#843)
Browse files Browse the repository at this point in the history
* license header check
* removal of PR template
* adding release note check
  • Loading branch information
mfocko authored Feb 21, 2024
2 parents a8a3bc1 + a27773d commit 1f3d41c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/check-release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check release notes

on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
check_release_notes:
name: Notes are either written, or there are none
uses: packit/.github/.github/workflows/check-release-notes.yml@main
with:
description: ${{ github.event.pull_request.body }}
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,18 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.py$
args:
- --license-filepath
- LICENSE_HEADER.txt
- --comment-style
- "#"
2 changes: 2 additions & 0 deletions LICENSE_HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright Contributors to the Packit project.
SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions tests/integration/gitlab/test_comments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT

from datetime import datetime

from requre.online_replacing import record_requests_for_all_methods
Expand Down

0 comments on commit 1f3d41c

Please sign in to comment.