Skip to content

Commit 1f3d41c

Browse files
authored
Ci/improvements (#843)
* license header check * removal of PR template * adding release note check
2 parents a8a3bc1 + a27773d commit 1f3d41c

File tree

5 files changed

+35
-20
lines changed

5 files changed

+35
-20
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Check release notes
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
check_release_notes:
12+
name: Notes are either written, or there are none
13+
uses: packit/.github/.github/workflows/check-release-notes.yml@main
14+
with:
15+
description: ${{ github.event.pull_request.body }}

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,18 @@ repos:
6060
hooks:
6161
- id: ruff
6262
args: [--fix, --exit-non-zero-on-fix]
63+
- repo: https://github.com/python-jsonschema/check-jsonschema
64+
rev: 0.28.0
65+
hooks:
66+
- id: check-github-workflows
67+
args: ["--verbose"]
68+
- repo: https://github.com/Lucas-C/pre-commit-hooks
69+
rev: v1.5.5
70+
hooks:
71+
- id: insert-license
72+
files: \.py$
73+
args:
74+
- --license-filepath
75+
- LICENSE_HEADER.txt
76+
- --comment-style
77+
- "#"

LICENSE_HEADER.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright Contributors to the Packit project.
2+
SPDX-License-Identifier: MIT

tests/integration/gitlab/test_comments.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Contributors to the Packit project.
2+
# SPDX-License-Identifier: MIT
3+
14
from datetime import datetime
25

36
from requre.online_replacing import record_requests_for_all_methods

0 commit comments

Comments
 (0)