Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ Creates a hash for all `.rb` files in the `lib` directory at root level, includi

`hashFiles('/lib/**/*.rb', '!/lib/foo/*.rb')`

{% ifversion fpt or ghec %}

### case

`case( pred1, val1, pred2, val2, ..., default )`
Expand Down Expand Up @@ -313,6 +315,8 @@ env:

Sets `MY_ENV_VAR` based on the branch: `production` for `main`, `staging` for `staging`, `development` for branches starting with `feature/`, or `unknown` for all other branches.

{% endif %}

## Status check functions

You can use the following status check functions as expressions in `if` conditionals. A default status check of `success()` is applied unless you include one of these functions. For more information about `if` conditionals, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idif) and [AUTOTITLE](/actions/reference/workflows-and-actions/metadata-syntax#runsstepsif).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ category:
- Find and fix code vulnerabilities
---

{% data reusables.security.delegated-alert-dismissal-capacity %}
>[!NOTE] {% data reusables.security.delegated-alert-dismissal-capacity %}
## Configuring delegated dismissal for a repository

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ category:
- Secure your dependencies
---

{% data reusables.security.delegated-alert-dismissal-capacity %}
>[!NOTE] {% data reusables.security.delegated-alert-dismissal-capacity %}
## Configuring delegated dismissal for a repository

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ category:
- Protect your secrets
---

{% data reusables.security.delegated-alert-dismissal-capacity %}
>[!NOTE]
> {% data reusables.security.delegated-alert-dismissal-capacity %}
>
> Alert dismissal requests expire after 1 week. After this, dismissal requests must be resubmitted.

## Configuring delegated dismissal for a repository

Expand Down Expand Up @@ -55,4 +58,4 @@ To learn more about security configurations, see [AUTOTITLE](/code-security/conc

## Next steps

Now that you have enabled delegated alert dismissal for {% data variables.product.prodname_secret_scanning %}, you should regularly review alert dismissal requests to maintain an accurate alert count and unblock your developers. See [AUTOTITLE](/code-security/how-tos/manage-security-alerts/remediate-alerts-at-scale/review-alert-dismissal-requests).
Now that you have enabled delegated alert dismissal for {% data variables.product.prodname_secret_scanning %}, you should regularly review alert dismissal requests to maintain an accurate alert count and unblock your developers. See [AUTOTITLE](/code-security/how-tos/manage-security-alerts/remediate-alerts-at-scale/review-alert-dismissal-requests).
3 changes: 2 additions & 1 deletion content/rest/pulls/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ versions:
ghes: '*'
ghec: '*'
children:
- /pulls
- /comments
- /pulls
- /review-requests
- /reviews
- /stacks
autogenerated: rest
---

Expand Down
14 changes: 14 additions & 0 deletions content/rest/pulls/stacks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: REST API endpoints for stacked pull requests
shortTitle: Stacked pull requests
intro: Use the REST API to interact with stacked pull requests.
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
fpt: '*'
ghec: '*'
autogenerated: rest
category:
- Manage issues, pull requests, and projects
allowTitleToDifferFromFilename: true
---

<!-- Content after this section is automatically generated -->
1 change: 1 addition & 0 deletions data/features/org-private-registry-oidc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
versions:
fpt: '*'
ghec: '*'
ghes: '>=3.22'
145 changes: 80 additions & 65 deletions data/llms-txt/docs.md

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions data/release-notes/enterprise-server/3-21/0-rc1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ sections:
# https://github.com/github/releases/issues/7290
- |
When a workflow job is skipped because of an `if:` conditional, the job log now shows how the conditional expression was evaluated. This helps users verify whether a job was skipped for the expected reason or if there is an error in their workflow logic.
# https://github.com/github/releases/issues/7112
- |
{% data variables.product.prodname_actions %} expressions support a new `case` function that enables conditional logic (if/else if/else) directly within workflow expressions. Users can use the `case` function to select values based on conditions without needing to store that logic externally.
# https://github.com/github/releases/issues/7074
- |
The {% data variables.product.prodname_actions %} workflow visualization page now supports rendering workflows with more than 300 jobs. Jobs are lazy loaded to prevent page errors when viewing large workflows. This feature is in public preview and subject to change.
Expand Down
7 changes: 3 additions & 4 deletions data/release-notes/enterprise-server/3-21/0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ sections:
# https://github.com/github/releases/issues/7290
- |
When a workflow job is skipped because of an `if:` conditional, the job log now shows how the conditional expression was evaluated. This helps users verify whether a job was skipped for the expected reason or if there is an error in their workflow logic.
# https://github.com/github/releases/issues/7112
- |
{% data variables.product.prodname_actions %} expressions support a new `case` function that enables conditional logic (if/else if/else) directly within workflow expressions. Users can use the `case` function to select values based on conditions without needing to store that logic externally.
# https://github.com/github/releases/issues/7074
- |
The {% data variables.product.prodname_actions %} workflow visualization page now supports rendering workflows with more than 300 jobs. Jobs are lazy loaded to prevent page errors when viewing large workflows. This feature is in public preview and subject to change.
Expand Down Expand Up @@ -298,4 +295,6 @@ sections:

errata:
- |
These release notes previously included a note about pull requeset reviewers being able to comment on any line of a changed file, not just lines within the diff. The note was added prematurely and has been removed. We will republish it when the feature is ready. [Updated: 2026-06-23]
These release notes previously included a note about pull requeset reviewers being able to comment on any line of a changed file, not just lines within the diff. The note was added prematurely and has been removed. We will republish it when the feature is ready. [Updated: 2026-06-23]
- |
These release notes incorrecly indicated that the `case` function is supported in {% data variables.product.prodname_actions %} expressions. [Updated: 2026-07-30]
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
> [!NOTE]
> The implementation of this approval process can potentially cause some friction, so it's important to ensure that the team of security managers has adequate coverage to review dismissal requests regularly before proceeding.
The implementation of this approval process can potentially cause some friction, so it's important to ensure that the team of security managers has adequate coverage to review dismissal requests regularly before proceeding.
Original file line number Diff line number Diff line change
Expand Up @@ -8468,6 +8468,51 @@
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch",
"additional-permissions": false,
"access": "write"
},
{
"category": "pulls",
"slug": "list-pull-request-stacks",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks",
"additional-permissions": false,
"access": "read"
},
{
"category": "pulls",
"slug": "create-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks",
"additional-permissions": false,
"access": "write"
},
{
"category": "pulls",
"slug": "get-a-pull-request-stack",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}",
"additional-permissions": false,
"access": "read"
},
{
"category": "pulls",
"slug": "add-pull-requests-to-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/add",
"additional-permissions": false,
"access": "write"
},
{
"category": "pulls",
"slug": "remove-pull-requests-from-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/unstack",
"additional-permissions": false,
"access": "write"
}
]
},
Expand Down
30 changes: 30 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4613,6 +4613,36 @@
"subcategory": "pulls",
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
},
{
"slug": "list-pull-request-stacks",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks"
},
{
"slug": "create-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks"
},
{
"slug": "get-a-pull-request-stack",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}"
},
{
"slug": "add-pull-requests-to-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/add"
},
{
"slug": "remove-pull-requests-from-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/unstack"
}
],
"reactions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10827,6 +10827,61 @@
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "pulls",
"slug": "list-pull-request-stacks",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks",
"access": "read",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "pulls",
"slug": "create-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "pulls",
"slug": "get-a-pull-request-stack",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}",
"access": "read",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "pulls",
"slug": "add-pull-requests-to-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/add",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "pulls",
"slug": "remove-pull-requests-from-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/unstack",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
}
]
},
Expand Down
30 changes: 30 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4895,6 +4895,36 @@
"subcategory": "pulls",
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
},
{
"slug": "list-pull-request-stacks",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks"
},
{
"slug": "create-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks"
},
{
"slug": "get-a-pull-request-stack",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}"
},
{
"slug": "add-pull-requests-to-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/add"
},
{
"slug": "remove-pull-requests-from-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/unstack"
}
],
"rate-limit": [
Expand Down
30 changes: 30 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5363,6 +5363,36 @@
"subcategory": "pulls",
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
},
{
"slug": "list-pull-request-stacks",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks"
},
{
"slug": "create-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks"
},
{
"slug": "get-a-pull-request-stack",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}"
},
{
"slug": "add-pull-requests-to-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/add"
},
{
"slug": "remove-pull-requests-from-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/unstack"
}
],
"rate-limit": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8468,6 +8468,51 @@
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch",
"additional-permissions": false,
"access": "write"
},
{
"category": "pulls",
"slug": "list-pull-request-stacks",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks",
"additional-permissions": false,
"access": "read"
},
{
"category": "pulls",
"slug": "create-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks",
"additional-permissions": false,
"access": "write"
},
{
"category": "pulls",
"slug": "get-a-pull-request-stack",
"subcategory": "stacks",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}",
"additional-permissions": false,
"access": "read"
},
{
"category": "pulls",
"slug": "add-pull-requests-to-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/add",
"additional-permissions": false,
"access": "write"
},
{
"category": "pulls",
"slug": "remove-pull-requests-from-a-pull-request-stack",
"subcategory": "stacks",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/stacks/{stack_number}/unstack",
"additional-permissions": false,
"access": "write"
}
]
},
Expand Down
Loading
Loading