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

CI: add copyright update workflow #5418

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented Oct 14, 2024

No description provided.

@szaimen szaimen added 2. developing Work in progress enhancement New feature or request labels Oct 14, 2024
@szaimen szaimen added this to the next milestone Oct 14, 2024
@szaimen szaimen force-pushed the enh/noid/add-copyright-update branch 4 times, most recently from 401329c to d2680bb Compare October 14, 2024 12:08
set -x
cd ../
# todo: remove the single branch below and clone master
git clone https://github.com/nextcloud/github_helper.git --depth 1 --single-branch --branch enh/noid/fix-exit
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo

@szaimen szaimen force-pushed the enh/noid/add-copyright-update branch from d2680bb to d840f84 Compare October 14, 2024 12:13
@szaimen
Copy link
Collaborator Author

szaimen commented Oct 14, 2024

@szaimen
Copy link
Collaborator Author

szaimen commented Oct 14, 2024

This can be done tremendously easier. for example the authors can be retreived via so:
git log | grep Author: | sort -u.

Then simply add the license header via sh script
SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later

@AndyScherzinger
Copy link
Member

Sounds good while the year should then be the earliest one meaning to reflect the original creation date.

@AndyScherzinger
Copy link
Member

The git + grep works fine for the authors file, which is also what I use to fill the file.

@szaimen szaimen modified the milestones: v9.8.0, next Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants