Check headers with unbeheader

This commit is contained in:
Alejandro Avilés 2023-09-22 11:07:01 +02:00 committed by Adrian
parent 9c30f6b9d2
commit fb0d895178
10 changed files with 10 additions and 9 deletions

View File

@ -161,9 +161,9 @@ jobs:
- name: Check headers
if: success() || failure()
run: |
wget "https://raw.githubusercontent.com/indico/indico/${INDICO_BRANCH}/bin/maintenance/update_header.py" -O /tmp/update_header.py
pipx install unbeheader
echo '::add-matcher::.github/matchers/headers-problem-matcher.json'
python /tmp/update_header.py --ci
unbehead --check
echo '::remove-matcher owner=headers::'
- name: Run flake8

View File

@ -1,9 +1,10 @@
root: true
name: CERN
owner: CERN
start_year: 2002
header: |-
substring: This file is part of
template: |-
{comment_start} This file is part of the Indico plugins.
{comment_middle} Copyright (C) {dates} {name}
{comment_middle} Copyright (C) {dates} {owner}
{comment_middle}
{comment_middle} The Indico plugins are free software; you can redistribute
{comment_middle} them and/or modify them under the terms of the MIT License;

View File

@ -0,0 +1,2 @@
owner: Max Fischer, Martin Claus, CERN
start_year: 2017

View File

@ -1,2 +0,0 @@
name: Max Fischer, Martin Claus, CERN
start_year: 2017

2
vc_zoom/.header.yaml Normal file
View File

@ -0,0 +1,2 @@
owner: CERN and ENEA
start_year: 2020

View File

@ -1,2 +0,0 @@
name: CERN and ENEA
start_year: 2020