Skip to content

Commit d90fca4

Browse files
authored
Merge PR #2027
- Add auto-merge step to docs-version-sync.yml that enables GitHub's auto-merge with squash strategy after PR creation - Update version badge in docs/app/layout.tsx from v2.38.11 to v2.56.0 to reflect current release Fixes GH-2026
1 parent e633019 commit d90fca4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/docs-version-sync.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
4545
- name: Create Pull Request
4646
if: steps.changes.outputs.changed == 'true'
47+
id: pr
4748
uses: peter-evans/create-pull-request@v6
4849
with:
4950
token: ${{ secrets.GITHUB_TOKEN }}
@@ -61,3 +62,12 @@ jobs:
6162
branch: docs/version-sync-${{ steps.version.outputs.VERSION }}
6263
base: main
6364
labels: documentation
65+
66+
- name: Enable auto-merge
67+
if: steps.changes.outputs.changed == 'true'
68+
env:
69+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
run: |
71+
if [ -n "${{ steps.pr.outputs.pull-request-number }}" ]; then
72+
gh pr merge "${{ steps.pr.outputs.pull-request-number }}" --auto --squash
73+
fi

docs/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default async function RootLayout({
4545
logo={
4646
<span style={{ display: 'flex', alignItems: 'baseline', gap: 8 }}>
4747
<img src="/logo.svg" alt="Pilot" height={24} style={{ height: 24, width: 'auto', alignSelf: 'center' }} />
48-
<span style={{ fontSize: '0.5em', opacity: 0.5, fontWeight: 400 }}>v2.38.11</span>
48+
<span style={{ fontSize: '0.5em', opacity: 0.5, fontWeight: 400 }}>v2.56.0</span>
4949
</span>
5050
}
5151
projectLink="https://github.com/alekspetrov/pilot"

0 commit comments

Comments
 (0)