diff --git a/.github/workflows/auto-approve-and-merge-keyman-server-pr.yml b/.github/workflows/auto-approve-and-merge-keyman-server-pr.yml index 5d85ceada..a94b746c6 100644 --- a/.github/workflows/auto-approve-and-merge-keyman-server-pr.yml +++ b/.github/workflows/auto-approve-and-merge-keyman-server-pr.yml @@ -6,25 +6,26 @@ # name: Auto Approve and Merge PRs from keyman-server -on: pull_request_target +on: pull_request jobs: auto-approve: - if: github.actor == 'keyman-server' && startsWith(github.head_ref, 'auto/') + # This test is here for safety, to prevent us accidentally approving and + # merging pull requests which don't meet our automatic merge requirements. + # + # Important: this test does not provide security; security is provided by + # GitHub as secrets are not available to forks. A PR from a fork can delete + # this test and the action will run, but without a valid GH_TOKEN it won't + # succeed. + if: github.event.pull_request.head.repo.owner.login == 'keymanapp' && github.actor == 'keyman-server' && startsWith(github.head_ref, 'auto/') runs-on: ubuntu-latest env: GH_TOKEN: ${{ secrets.AUTO_PR_APPROVAL_BY_KEYMAN_STATUS }} permissions: write-all steps: - - name: Checkout - uses: actions/checkout@v6.0.2 - with: - sparse-checkout: | - README.md - sparse-checkout-cone-mode: false - name: Approve pull request run: | - gh pr review --approve ${{github.head_ref}} + gh pr review --repo ${{github.repository}} --approve ${{github.event.pull_request.number}} - name: Enable auto-merge run: | - gh pr merge --merge --auto ${{github.head_ref}} + gh pr merge --repo ${{github.repository}} --merge --auto ${{github.event.pull_request.number}} diff --git a/_includes/includes/history_utils.php b/_includes/includes/history_utils.php index 14b529308..0952b79e3 100644 --- a/_includes/includes/history_utils.php +++ b/_includes/includes/history_utils.php @@ -35,7 +35,7 @@ function display_history($platform, $version = '1.0'){ 'android' => '# Keyman for Android Version History', 'ios' => '# Keyman for iPhone and iPad Version History', 'linux' => '# Keyman for Linux Version History', - 'mac' => '# Keyman for macOS Version History', + 'mac' => '# Keyman for Mac Version History', 'web' => '# KeymanWeb Version History', 'windows' => '# Keyman for Windows Version History', 'developer' => '# Keyman Developer Version History' diff --git a/_includes/includes/phone-menu.php b/_includes/includes/phone-menu.php index 62e43379f..18978c053 100644 --- a/_includes/includes/phone-menu.php +++ b/_includes/includes/phone-menu.php @@ -32,7 +32,7 @@

Product Support