Skip to content

Commit 78dc6ea

Browse files
authored
More comments
1 parent 96b1c07 commit 78dc6ea

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/Label.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
name: Label breaking changes for semantic versioning
22

3-
on: pull_request_target # run on the merge target branch instead of the merge commit to grant pull-requests:write permission
3+
on: pull_request_target # Run on the merge target branch instead of the merge commit to grant pull-requests:write permission
44
jobs:
55
Label:
66
runs-on: windows-latest
77
permissions:
8-
pull-requests: write # allow adding a label to this pull request
8+
pull-requests: write # Allow adding a label to this pull request
99
steps:
1010
- uses: actions/checkout@v6
1111
with:
12-
fetch-depth: 0 # fetch all commit history and tags, instead of the default fetch of only one commit
13-
ref: ${{ github.event.pull_request.head.sha }} # checkout the PR branch
12+
fetch-depth: 0 # Fetch all commit history and tags, instead of the default fetch of only one commit
13+
ref: ${{ github.event.pull_request.head.sha }} # Checkout the PR branch
1414
- name: If there are changes in PublicApi.Shipped.txt, fail the workflow
1515
if: github.head_ref != 'action/ship-publicapi' # Same branch name specified in Release.yml
1616
run: |
17-
$changes = git diff --numstat --shortstat origin/${{ github.base_ref }}...HEAD -- '**/PublicApi.Shipped.txt'
17+
$changes = git diff --numstat --shortstat origin/${{ github.base_ref }}...HEAD -- '**/PublicApi.Shipped.txt' # Note that ** must expand to at least one folder here, this doesn't check root
1818
Write-Output "$changes"
1919
if ($changes) {
2020
Write-Error "Changes detected in PublicApi.Shipped.txt files. Public API changes must be shipped through the release process, not in regular pull requests."

.github/workflows/Release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
CSharpMath:
88
runs-on: windows-latest
99
permissions:
10-
# permissions requested by https://github.com/marketplace/actions/create-pull-request#token
10+
# Permissions requested by https://github.com/marketplace/actions/create-pull-request#token
1111
contents: write
1212
pull-requests: write
1313
steps:
@@ -57,4 +57,4 @@ jobs:
5757
title: 'Ship PublicApi for ${{ github.event.release.tag_name }}'
5858
body: 'This PR moves the contents of PublicApi.Unshipped.txt to PublicApi.Shipped.txt to mark the API as shipped for version ${{ github.event.release.tag_name }}.'
5959
branch: action/ship-publicapi # Same branch name specified in Label.yml
60-
base: '${{ github.event.repository.default_branch }}' # releases are checked out on the tag commit. we need a branch for the pull request target
60+
base: '${{ github.event.repository.default_branch }}' # Releases are checked out on the tag commit but we need a target branch for the pull request. Let's just always submit it against the default branch

0 commit comments

Comments
 (0)