-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto label PRs that may require extra checks (#2785)
Add a new workflow that automatically adds the label "Z-BenchCI" to PRs that touch compiler, toolchain, dependencies and driver files that invoke our dependencies. I also removed the label from the toolchain update job since this workflow will add the label once the PR is created.
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright Kani Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# | ||
# Configuration for auto-labeling PRs | ||
# | ||
# Note that we enable dot, so "**" matches all files in a folder | ||
|
||
Z-BenchCI: | ||
- kani-compiler/** | ||
- rust-toolchain.toml | ||
- kani-dependencies | ||
- kani-driver/src/call-* | ||
- Cargo.lock | ||
- cprover_bindings/** | ||
- library/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright Kani Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# | ||
# Auto label PRs based on the files that were changed | ||
# | ||
# This PR runs on `pull_request_target` because it needs extra write permission. | ||
# | ||
# Thus, we keep this workflow minimal, and the only action used here is from a | ||
# verified publisher. | ||
# | ||
# See <https://github.com/actions/labeler/issues/121> for more details. | ||
|
||
name: Auto Label | ||
on: pull_request_target | ||
|
||
jobs: | ||
auto-label: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Kani | ||
uses: actions/checkout@v3 | ||
|
||
- name: Label PR | ||
uses: actions/labeler@v4 | ||
with: | ||
dot: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters