Skip to content

Commit b60ed23

Browse files
committed
Merge branch 'main' into beta
2 parents d28ad69 + efd9eb0 commit b60ed23

File tree

12 files changed

+1344
-1458
lines changed

12 files changed

+1344
-1458
lines changed

.github/workflows/publish-immutable-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
id-token: write
1313
packages: write
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
- name: Publish Immutable Action
1717
uses: actions/publish-immutable-action@v0.0.4

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
# build local version to create token
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222
with:
2323
persist-credentials: false
2424

25-
- uses: actions/setup-node@v4
25+
- uses: actions/setup-node@v6
2626
with:
2727
node-version-file: package.json
28-
cache: 'npm'
2928

3029
- run: npm ci
3130
- run: npm run build

.github/workflows/stale.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow warns and then closes issues that have had no activity for a specified amount of time.
2+
# https://github.com/actions/stale
3+
4+
name: Stale
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
# 00:00 UTC on Mondays
10+
- cron: '0 0 * * 1'
11+
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
16+
env:
17+
DAYS_BEFORE_STALE: 180
18+
DAYS_BEFORE_CLOSE: 60
19+
STALE_LABEL: 'stale'
20+
STALE_LABEL_URL: ${{github.server_url}}/${{github.repository}}/labels/stale
21+
22+
jobs:
23+
stale:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/stale@v10
27+
with:
28+
operations-per-run: 100
29+
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
30+
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
31+
stale-issue-label: ${{ env.STALE_LABEL }}
32+
stale-pr-label: ${{ env.STALE_LABEL }}
33+
stale-issue-message: 'This issue has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this issue if it is no longer needed. If this issue is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.'
34+
stale-pr-message: 'This pull request has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this pull request if it is no longer needed. If this pull request is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.'

.github/workflows/test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- beta
88
pull_request:
9+
merge_group:
910
workflow_dispatch:
1011

1112
concurrency:
@@ -17,30 +18,28 @@ permissions:
1718

1819
jobs:
1920
integration:
20-
name: Integration
21+
name: integration
2122
runs-on: ubuntu-latest
2223
steps:
23-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2425

25-
- uses: actions/setup-node@v4
26+
- uses: actions/setup-node@v6
2627
with:
2728
node-version-file: package.json
28-
cache: 'npm'
2929

3030
- run: npm ci
3131
- run: npm test
3232

3333
end-to-end:
34-
name: End-to-End
34+
name: end-to-end
3535
runs-on: ubuntu-latest
3636
# do not run from forks, as forks don’t have access to repository secrets
3737
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
3838
steps:
39-
- uses: actions/checkout@v5
40-
- uses: actions/setup-node@v4
39+
- uses: actions/checkout@v6
40+
- uses: actions/setup-node@v6
4141
with:
4242
node-version-file: package.json
43-
cache: 'npm'
4443
- run: npm ci
4544
- run: npm run build
4645
- uses: ./ # Uses the action in the root directory

.github/workflows/update-permission-inputs.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,30 @@ concurrency:
1313

1414
permissions:
1515
contents: write
16+
pull-requests: write
1617

1718
jobs:
1819
update-permission-inputs:
1920
runs-on: ubuntu-latest
21+
env:
22+
COMMIT_MESSAGE: 'feat: update permission inputs'
2023
steps:
21-
- uses: actions/checkout@v5
22-
- uses: actions/setup-node@v4
24+
- uses: actions/checkout@v6
25+
- uses: actions/setup-node@v6
2326
with:
2427
node-version-file: package.json
25-
cache: 'npm'
2628
- name: Install dependencies
2729
run: npm ci
2830
- name: Run permission inputs update script
2931
run: node scripts/update-permission-inputs.js
3032
- name: Commit changes
31-
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0
33+
id: auto-commit
34+
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
3235
with:
33-
commit_message: 'feat: update permission inputs'
36+
commit_message: ${{ env.COMMIT_MESSAGE }}
37+
- name: Update PR title
38+
if: github.event_name == 'pull_request' && steps.auto-commit.outputs.changes_detected == 'true'
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: |
42+
gh pr edit ${{ github.event.pull_request.number }} --title "${{ env.COMMIT_MESSAGE }}"

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ inputs:
3737
description: "The level of permission to grant the access token to create, edit, delete, and list Codespaces. Can be set to 'read' or 'write'."
3838
permission-contents:
3939
description: "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. Can be set to 'read' or 'write'."
40+
permission-custom-properties-for-organizations:
41+
description: "The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property. Can be set to 'read' or 'write'."
4042
permission-dependabot-secrets:
4143
description: "The level of permission to grant the access token to manage Dependabot secrets. Can be set to 'read' or 'write'."
4244
permission-deployments:
4345
description: "The level of permission to grant the access token for deployments and deployment statuses. Can be set to 'read' or 'write'."
4446
permission-email-addresses:
4547
description: "The level of permission to grant the access token to manage the email addresses belonging to a user. Can be set to 'read' or 'write'."
48+
permission-enterprise-custom-properties-for-organizations:
49+
description: "The level of permission to grant the access token for organization custom properties management at the enterprise level. Can be set to 'read', 'write', or 'admin'."
4650
permission-environments:
4751
description: "The level of permission to grant the access token for managing repository environments. Can be set to 'read' or 'write'."
4852
permission-followers:
@@ -68,7 +72,7 @@ inputs:
6872
permission-organization-custom-org-roles:
6973
description: "The level of permission to grant the access token for custom organization roles management. Can be set to 'read' or 'write'."
7074
permission-organization-custom-properties:
71-
description: "The level of permission to grant the access token for custom property management. Can be set to 'read', 'write', or 'admin'."
75+
description: "The level of permission to grant the access token for repository custom properties management at the organization level. Can be set to 'read', 'write', or 'admin'."
7276
permission-organization-custom-roles:
7377
description: "The level of permission to grant the access token for custom repository roles management. Can be set to 'read' or 'write'."
7478
permission-organization-events:

0 commit comments

Comments
 (0)