Skip to content

Commit 27fc69b

Browse files
Merge branch 'main' into agent/issue-45404-stacked-prs-docs-update-31225486808
2 parents f60b12f + 7c7438b commit 27fc69b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

content/actions/reference/workflows-and-actions/workflow-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ The value of this parameter is a string specifying the data type of the input. T
283283

284284
{% data reusables.actions.forked-write-permission %}
285285

286-
## How permissions are calculated for a workflow job
286+
### How permissions are calculated for a workflow job
287287

288288
The permissions for the `GITHUB_TOKEN` are initially set to the default setting for the enterprise, organization, or repository. If the default is set to the restricted permissions at any of these levels then this will apply to the relevant repositories. For example, if you choose the restricted default at the organization level then all repositories in that organization will use the restricted permissions as the default. The permissions are then adjusted based on any configuration within the workflow file, first at the workflow level and then at the job level. Finally, if the workflow was triggered by a pull request event other than `pull_request_target` from a forked repository, and the **Send write tokens to workflows from pull requests** setting is not selected, the permissions are adjusted to change any write permissions to read only.
289289

content/pull-requests/how-tos/merge-and-close-pull-requests/optimizing-ci-for-stacked-pull-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
Because a workflow runs for every pull request in a stack, you can use the `stack` fields to run expensive jobs only at the positions that matter. Two conditions are especially useful:
5757

58-
* **Lowest unmerged pull request** — the pull request currently at the bottom of the remaining stack. Because it targets the stack base directly, `github.event.pull_request.stack.base.ref` equals `github.event.pull_request.base.ref`.
58+
* **Lowest unmerged pull request** — the pull request currently at the bottom of the remaining stack, targeting the stack base directly. It is the pull request where `github.event.pull_request.stack.base.ref` equals `github.event.pull_request.base.ref`.
5959
* **Top pull request** — the last pull request in the stack, containing the full set of changes. It is the pull request where `github.event.pull_request.stack.position` equals `github.event.pull_request.stack.size`.
6060

6161
```yaml

0 commit comments

Comments
 (0)