Skip to content

Commit

Permalink
Merge pull request #11 from mfocko/ci/improvements
Browse files Browse the repository at this point in the history
Ci/improvements
  • Loading branch information
mfocko authored Feb 27, 2024
2 parents 8af1a52 + 6469e76 commit d8fb994
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 27 deletions.
25 changes: 0 additions & 25 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 @@ -53,3 +53,18 @@ repos:
# The hook runs 'gitleaks protect --staged' which parses output of
# 'git diff --staged', i.e. always passes in pre-push/manual stage.
stages: [commit]
- 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
- "#"
3 changes: 3 additions & 0 deletions LICENSE_HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023-present Contributors to the Packit Project.

SPDX-License-Identifier: MIT
3 changes: 2 additions & 1 deletion src/validation/deployment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright Contributors to the Packit project.
# SPDX-FileCopyrightText: 2023-present Contributors to the Packit Project.
#
# SPDX-License-Identifier: MIT

import enum
Expand Down
3 changes: 2 additions & 1 deletion src/validation/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright Contributors to the Packit project.
# SPDX-FileCopyrightText: 2023-present Contributors to the Packit Project.
#
# SPDX-License-Identifier: MIT

import logging
Expand Down

0 comments on commit d8fb994

Please sign in to comment.