Skip to content

Commit e32c65d

Browse files
committed
Activate feature freeze automated notice
1 parent b57bf6b commit e32c65d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/feature_freeze.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
name: Feature freeze check
22

33
on:
4-
pull_request:
4+
pull_request_target:
5+
types:
6+
- opened
7+
branches:
8+
- master
59
paths:
610
- 'clippy_lints/src/declared_lints.rs'
711

812
jobs:
913
auto-comment:
1014
runs-on: ubuntu-latest
1115

16+
permissions:
17+
pull-requests: write
18+
19+
# Do not in any case add code that runs anything coming from the the content
20+
# of the pull request, as malicious code would be able to access the private
21+
# GitHub token.
1222
steps:
1323
- name: Check PR Changes
1424
id: pr-changes
@@ -19,7 +29,7 @@ jobs:
1929
run: |
2030
# Use GitHub API to create a comment on the PR
2131
PR_NUMBER=${{ github.event.pull_request.number }}
22-
COMMENT="**Seems that you are trying to add a new lint!**\nWe are currently in a [feature freeze](https://doc.rust-lang.org/nightly/clippy/development/feature_freeze.html), so we are delaying all lint-adding PRs to August 1st and focusing on bugfixes.\nThanks a lot for your contribution, and sorry for the inconvenience.\nWith ❤ from the Clippy team"
32+
COMMENT="**Seems that you are trying to add a new lint!**\nWe are currently in a [feature freeze](https://doc.rust-lang.org/nightly/clippy/development/feature_freeze.html), so we are delaying all lint-adding PRs to September 18 and focusing on bugfixes.\nThanks a lot for your contribution, and sorry for the inconvenience.\nWith ❤ from the Clippy team\n\n@rustbot note Feature-freeze\n@rustbot blocked\n@rustbot label +A-lint\n"
2333
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
2434
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
2535
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}"

0 commit comments

Comments
 (0)