Tom Stellard
91fdb20915
workflows: Split new-prs into two workflows
...
We cannot use the default github token for labeling PRs, because this
will not trigger the PR Subscriber job. However, we weren't allowed to
use a different token via a secret, because secrets aren't allowed
in PR workflows.
The solution is to create two workflows, the first accepts the
pull_request_taget event extracts the PR number and then starts
the second workflow which adds the labels to the PRs.
This separation ensures that nothing malicious in the first workflow is
able to access the secret we use in the second workflow.
2023-09-08 22:09:33 -07:00
Tom Stellard
adfd4a2b0e
new-prs-labeler: Convert from gitignore syntax to minimatch
2023-09-08 15:40:21 -07:00
Tom Stellard
1ed710836a
workflows: Reconfigure pr-subscriber action so that it can access secrets
...
Secrets are not available for workflows triggered by PRs, so we need
to split the pr-subscriber action into two separate actions. The
first will listen for new labels on PRs and the second will add
a comment with the team mention.
See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2023-09-08 11:55:59 -07:00
Tom Stellard
ea98e1c537
workflows/pr-subscriber: Limit action to llvm/llvm-project repo
2023-09-08 10:41:06 -07:00
Tom Stellard
dc9a1f0b02
new-prs-labeler: Remove leading slashes from paths
...
The labeler doesn't seem to support these.
2023-09-08 10:26:08 -07:00
Tom Stellard
e7fa52adcf
workflows: Fix typo in pr-subscriber
2023-09-08 10:00:21 -07:00
Tom Stellard
b4ee25025b
Fix up some yaml errors after 5f16a3a489
2023-09-08 09:49:03 -07:00
Tom Stellard
5f16a3a489
workflows: Add a simple pull request subscription workflow ( #64913 )
...
This new workflow will make it possible for people to subscribe to pull
requests based on the labels that are added. Labels will be added
automatically to the pull requests based on the modified files and each
label will be associated with a GitHub team that will be notified when
the label is added.
See
https://discourse.llvm.org/t/changes-to-pull-request-subscription-system/73296
2023-09-08 09:40:37 -07:00
Tobias Hieta
d55ac38ace
Add GitHub workflow for check Python file formatting ( #65482 )
...
Using darker which is doing black on diffs, similar to git-clang-format.
2023-09-08 18:22:20 +02:00
Marius Brehler
3ac4ba37c0
[Github] Add mlir-emitc subscribers to watch the Cpp target ( #65603 )
2023-09-08 12:06:23 +02:00
Aiden Grossman
785e5737c6
[Github] Add test directories to IR/Transforms/Analysis teams ( #65196 )
...
Having test directories included for notifications sent out to these
teams seems like a decent idea. I don't think it should produce much
churn and it catches a couple cases like separately reviewed
pre-committed tests that aren't frequent but do exist.
2023-09-08 00:13:01 -07:00
Fangrui Song
11c07ce3a6
Add llvm-binary-utilities to .github/CODEOWNERS ( #65545 )
...
From
https://discourse.llvm.org/t/input-needed-teams-for-pull-request-subscriptions/73116/3
2023-09-07 15:30:44 -07:00
Markus Böck
38c5d231cb
[GitHub] Add main LLVM Dialect path to MLIR LLVM PR subscribers ( #65513 )
...
The LLVM Dialect in MLIR, which the `mlir-llvm` team is supposed to
provide notifications for, is 98% not nested in a directory called LLVM
but rather LLVMIR. The former only contains some tests.
This should make PRs such as
https://github.com/llvm/llvm-project/pull/65508 add the team as
codeowner.
2023-09-07 23:28:41 +02:00
Fangrui Song
5f8812389a
Add lld-* to .github/CODEOWNERS
...
From https://discourse.llvm.org/t/input-needed-teams-for-pull-request-subscriptions/73116/6
They are somehow missing in latest updates of #65131 .
2023-09-07 09:43:52 -07:00
David Spickett
3f3ee73f66
[lldb] Add lldb team to CODEOWNERS ( #65454 )
...
https://github.com/orgs/llvm/teams/pr-subscribers-lldb exists but wasn't
added to this file.
2023-09-07 09:03:22 +01:00
Derek Schuff
5458736b71
Add a GitHub team to subscribe to WebAssembly backend ( #65419 )
...
This also includes some files related to the Wasm binary and object file
format (which is technically distinct from the WebAssembly architecture,
but practically inseparable).
2023-09-05 16:00:12 -07:00
Matt Arsenault
695c59c4a2
Add amdgpu paths to CODEOWNERS ( #65229 )
2023-09-05 18:46:22 -04:00
Mehdi Amini
5d7b2bfe99
Add a GitHub team to subscribe to changes to MLIR Presburger library ( #65294 )
2023-09-05 14:08:10 -07:00
Matt Arsenault
a4a72bccac
Add regalloc team to CODEOWNERS ( #65208 )
...
Probably missed some cases. We also probably should rename the ML stuff
to use a consistent capitalization scheme
2023-09-05 16:53:05 -04:00
Alexander Richardson
eade41c453
[UpdateTestChecks] Add @llvm/pr-subscribers-testing-tools to CODEOWNERS ( #65338 )
2023-09-05 21:36:57 +01:00
cor3ntin
c144086997
[Github] Workaround a GH action bug causing manually added labels to be removed ( #65395 )
...
Fixes https://github.com/llvm/llvm-project/issues/65345
2023-09-05 20:46:41 +02:00
Corentin Jabot
a58c59e679
Revert "Update new-prs.yml"
...
This was meant to be a test in my personal fork...
This reverts commit ee53efde38
.
2023-09-05 19:30:11 +02:00
cor3ntin
ee53efde38
Update new-prs.yml
2023-09-05 19:05:46 +02:00
cor3ntin
d17e6cc9e7
[Github] Add labels on pull requests based on paths. ( #65308 )
...
Using https://github.com/actions/labeler , this add a workflow to
automatically label PRs, in hope to reduce the work needed to triage new
PRs.
"new-prs-labeler.yml" has been seeded taking inspiration from the
CODEOWNERS file when there was an existing corresponding label on the
issue tracker.
2023-09-05 15:26:48 +02:00
Corentin Jabot
836f2470fb
[Github] Move the issue labeler data out of workflows
...
To avoid it being considered a workflow script.
2023-09-05 15:10:42 +02:00
pvanhout
1456dd1a65
Fix GlobalISel TableGen CODEOWNERS patterns
...
- GICombinerEmitter is no more, now it's GlobalISelCombinerEmitter
- Change the pattern so it also covers the MatchTable files
2023-09-05 15:09:15 +02:00
cor3ntin
3301edf45d
[Github] Improve automatic new issue labelling ( #65309 )
...
This patch:
* Replaces `andymckay/labeler` which does not appear to be maintained by
github official solution
* Removes the closed issue workflow which was disabled a few years ago
and never fixed.
* Adds a few rules to add label based on PR title, hopefully that can
make triaging simpler. If that turns out to be useful, we can consider
adding more rules for backends, etc. We could technically also pattern
match the body of the issue but I'm concerned about trying to be _too_
clever.
The new system is only triggered on PR open so manual labels should not
be removed.
2023-09-05 14:53:56 +02:00
Mehdi Amini
76a4474733
Fix some mlir CODEOWNERS patterns from the initial release
...
These are minor fixes from typos, duplications, etc.
2023-09-04 12:17:29 -07:00
Aiden Grossman
404d3066e2
[Github] Add llvm-exegesis PR subscribers team ( #65199 )
...
This allows for recieving notifications related to the llvm-exegesis
tool.
2023-09-04 12:12:18 -07:00
Craig Topper
54d6e958e7
[RISCV] Add more files to .github/CODEOWNERS ( #65234 )
2023-09-04 10:12:31 -07:00
Craig Topper
7dc199d8ee
[X86] Add more files to .github/CODEOWNERS ( #65235 )
2023-09-03 19:18:21 -07:00
Craig Topper
9db804b51b
Add M68k test directories to pr-subscribers-m68k in .github/CODEOWNERS ( #65233 )
2023-09-03 15:38:10 -07:00
Craig Topper
d819f19000
Add test/MC and test/MC/Disassembler directories to targets in .github/CODEOWNERS
...
X86 had them, but not the others.
2023-09-03 13:03:22 -07:00
Craig Topper
ca958ce30f
Add ISDOpcodes.h to selectiondag CODEOWNERS. ( #65217 )
...
This file contains the SelectionDAG opcodes.
2023-09-03 12:49:15 -07:00
Matt Arsenault
65b40f273f
RegAlloc: Rename MLRegalloc* files to use consistent captalization
...
The other regalloc related files use RegAlloc, not Regalloc.
2023-09-03 09:00:27 -04:00
Aiden Grossman
64d16ef325
[Github] Add a MLGO PR subscribers group ( #65198 )
2023-09-02 12:31:53 -07:00
Tobias Hieta
af68f27064
[CodeOwners] Windows subscribers ( #65203 )
...
Trying to catch most windows related code.
2023-09-02 11:33:20 +02:00
Justin Bogner
65086aea38
Add DirectX team to .github/CODEOWNERS ( #65182 )
2023-09-01 12:52:41 -07:00
Justin Bogner
50686a3497
Add HLSL team to .github/CODEOWNERS ( #65180 )
2023-09-01 12:52:16 -07:00
Justin Bogner
6116f60e7c
Add SelectionDAG team to .github/CODEOWNERS ( #65181 )
2023-09-01 12:51:59 -07:00
Aiden Grossman
3e67d7b682
[Github] Disable repo lockdown ( #65161 )
...
Now that PRs are supposed to be open, the repo lockdown needs to be
disabled so people can actually open them up on all parts of the
repository.
2023-09-01 12:09:51 -07:00
Tom Stellard
dd7429a3f3
Add CODEOWNERS file ( #65131 )
2023-09-01 11:33:48 -07:00
Tobias Hieta
1148cfac51
[workflow] Allow creation of PRs in the docs subdir
2023-09-01 12:32:07 +02:00
Louis Dionne
c7663853fa
Disable the repo-lockdown script in a narrow way to allow testing CI
...
This is necessary to allow testing pre-commit CI from GH PRs before
the repo-lockdown script is removed entirely.
2023-08-29 14:06:23 -04:00
Tom Stellard
99fb0af80d
workflows: Fix libclang-abi test after update to use download-artifac… ( #64877 )
...
workflows: Fix libclang-abi test after update to use download-artifact v3
2023-08-28 09:38:27 -07:00
Tom Stellard
102970091e
workflows: Disable repo-lockdown for llvm/utils/git
...
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D158569
2023-08-23 07:51:29 -07:00
Tobias Hieta
28226e5a1b
[Workflow] Run the repository sync script from GH.
...
Also various fixes to the script to work correctly
in GH actions.
Differential Revision: https://reviews.llvm.org/D156873
2023-08-10 09:01:18 +02:00
MyDeveloperDay
8b003c6201
Workflows: Allow pull request for clang-format changes ( #64332 )
...
* Allow pull request for clang-format changes
Remove repo lockdown on clang-format specific directories
* Missing / from unittests
2023-08-02 21:12:52 +01:00
Tom Stellard
ffecb43c48
workflows/release-tasks: Add missing sudo
2023-08-01 15:59:04 -07:00
Tom Stellard
5754f5af3c
Workflows: Allow pull requests for .github directory
...
Reviewed By: thieta
Differential Revision: https://reviews.llvm.org/D156595
2023-08-01 13:33:54 -07:00