-
Notifications
You must be signed in to change notification settings - Fork 430
fix: move protected files details section inside alert block #23702
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,15 +6,15 @@ | |
| > **Protected Files — Push Permission Denied** | ||
| > | ||
| > This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually. | ||
|
|
||
| <details> | ||
| <summary>Protected files</summary> | ||
|
|
||
| {files} | ||
|
|
||
| The push was rejected because GitHub Actions does not have `workflows` permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission. | ||
|
|
||
| </details> | ||
| > | ||
| > <details> | ||
| > <summary>Protected files</summary> | ||
| > | ||
| > {files} | ||
| > | ||
| > The push was rejected because GitHub Actions does not have `workflows` permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission. | ||
|
Comment on lines
+10
to
+15
|
||
| > | ||
| > </details> | ||
|
|
||
| <details> | ||
| <summary><b>Create the pull request manually</b></summary> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,13 +6,13 @@ | |||||||||||||
| > **Target Pull Request:** [#{pull_number}]({pr_url}) | ||||||||||||||
| > | ||||||||||||||
| > **Please review the changes carefully** before pushing them to the pull request branch. These files may affect project dependencies, CI/CD pipelines, or agent behaviour. | ||||||||||||||
|
|
||||||||||||||
| <details> | ||||||||||||||
| <summary>Protected files</summary> | ||||||||||||||
|
|
||||||||||||||
| {files} | ||||||||||||||
|
|
||||||||||||||
| </details> | ||||||||||||||
| > | ||||||||||||||
| > <details> | ||||||||||||||
| > <summary>Protected files</summary> | ||||||||||||||
| > | ||||||||||||||
| > {files} | ||||||||||||||
|
Comment on lines
+12
to
+13
|
||||||||||||||
| > | |
| > {files} | |
| > | |
| > ```text | |
| > {files} | |
| > ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{files}is a newline-joined list, but in this quoted alert only the first line is prefixed with>. If more than one protected file is present, the extra lines will render outside the warning callout. Recommend passing an already-quoted{files}value (prefix each line with>) or changing{files}to a single-line HTML list so the entire file list stays inside the alert/details block.