Commit Graph

21 Commits

Author SHA1 Message Date
Campbell Barton
2e6739967e Cleanup: reduce right-shift in Python scripts
Also place the return type on it's own line as it's easier to identify
when it's in a predictable location instead of the line ending.
2024-02-28 11:02:54 +11:00
Campbell Barton
79cf4e58e4 Cleanup: type check scripts in tools/triage 2024-02-28 11:02:51 +11:00
Campbell Barton
4f8db2ee67 Cleanup: use static sets for contains checks, remove f-string use 2024-02-28 11:02:49 +11:00
Julian Eisel
13e93ac7f1 Tools: Don't include commits authored by others in weekly report script
So far this would include commits committed by the given user, but
authored by someone else. Unfotunately we can't use email addresses to
filter these out, since we can't get the email addresses associated with
an account from gitea, or do a user lookup by email. In my testing the
commit author email and the publicly visible account email would
mismatch in most cases.
2024-02-26 14:29:32 +01:00
Julian Eisel
2a08055066 Tools: Don't include merge commits in weekly report script output
These don't add any useful information to reports, they are just noise.
2024-02-26 12:09:30 +01:00
Julian Eisel
7032933094 Tools: Improve PR headings in weekly report script
"Pull" is a weird/confusing term, just use the proper name "Pull
Request".
2024-02-26 11:57:08 +01:00
Julian Eisel
57db30ce75 Tools: Correct formatting of PRs in weekly report script
Match the formatting of commits.
2024-02-26 11:52:48 +01:00
Julian Eisel
df8706a9af Tools: Fix missing PR reviews in weekly reports script
The script would only include PRs that were commented on as "reviewed",
not PRs that were either approved or had changes requested.
2024-02-26 11:13:04 +01:00
Aaron Carlisle
c892260b09 Fix: Formatting
Fixes formatting in abb9fc9b2ff3f756fbf4abb4304d0cd9d4aedbfc
2024-01-14 00:19:53 -05:00
Aaron Carlisle
abb9fc9b2f Tools: Weekly report script ignore commits to .profile repo
Weekly report commits should not be in the list of commits
2024-01-13 20:09:08 -05:00
Julian Eisel
be87aa6709 Tools: Match required header formatting for weekly report script
The formatting should follow a specific format, see
https://devtalk.blender.org/t/weekly-reports-2024-new-structure/32725.
2024-01-08 13:03:18 +01:00
Julian Eisel
2db0dd6542 Tools: Weekly report script option for weeks further in the past
Adds a `--weeks-ago` option to be able to control which week the report
should be made for. In practice people sometimes need to create reports
for a few weeks ago or for the current week.
2024-01-08 12:32:46 +01:00
Julian Eisel
d71f1ce95f Tools: Update weekly report script to use Gitea Markdown syntax
Update for the changed way to host weekly reports, they should now live
on projects.blender.org using Gitea Markdown syntax. See
https://devtalk.blender.org/t/weekly-reports-2024-new-structure/32725.
2024-01-08 12:09:49 +01:00
Germano Cavalcante
98c6bded98 Fix: Triage Tools: Python error when accessing a 'created branch' activity
`activity["content"]` is empty in these cases.
2024-01-01 09:59:57 -03:00
Campbell Barton
0c26c84704 Cleanup: spelling in comments 2023-09-05 11:04:27 +10:00
Germano Cavalcante
5f3b271421 Triage Tools: Remove workarround when searching for issues
When the `'state'` is not informed, it means that only open issues will
be fetched.

Because of this, a workarround was used to enclose the closed ones as
well.

However, we can use `'all'` to fetch both open and closed.
2023-08-28 14:33:48 -03:00
Campbell Barton
e955c94ed3 License Headers: Set copyright to "Blender Authors", add AUTHORS
Listing the "Blender Foundation" as copyright holder implied the Blender
Foundation holds copyright to files which may include work from many
developers.

While keeping copyright on headers makes sense for isolated libraries,
Blender's own code may be refactored or moved between files in a way
that makes the per file copyright holders less meaningful.

Copyright references to the "Blender Foundation" have been replaced with
"Blender Authors", with the exception of `./extern/` since these this
contains libraries which are more isolated, any changed to license
headers there can be handled on a case-by-case basis.

Some directories in `./intern/` have also been excluded:

- `./intern/cycles/` it's own `AUTHORS` file is planned.
- `./intern/opensubdiv/`.

An "AUTHORS" file has been added, using the chromium projects authors
file as a template.

Design task: #110784

Ref !110783.
2023-08-16 00:20:26 +10:00
Campbell Barton
f940eb7739 Cleanup: quiet compiler warnings, also correct typo & pep8 formatting 2023-08-09 20:24:24 +10:00
Campbell Barton
8b8fe49d34 License headers: add SPDX-FileCopyrightText 2023-08-06 18:59:05 +10:00
Germano Cavalcante
b31ccdcf4a Fix undefined variable usage
Error in b6ed70cd92
2023-08-04 16:28:15 -03:00
Germano Cavalcante
b6ed70cd92 Triage: Add 'weekly_report' and 'issues_needing_info' tools
This commit adds 2 tools for triaging:
- /tools/triage/weekly_report.py
- /tools/triage/issues_needing_info.py

These tools automatically detect the username to list activities related to the user.

Pull Request: https://projects.blender.org/blender/blender/pulls/110652
2023-08-04 19:32:25 +02:00