From 70b5c62c9fc12179a5ad5c12c1be42b80bd39a20 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Mon, 10 Feb 2025 11:15:28 +0100 Subject: [PATCH] Changes to workflow files (#2204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RΓΆgl-Brunner Michel --- .github/autolabeler-config.json | 11 +++- .github/changelog-pr-config.json | 60 ++++++++++--------- .github/workflows/auto-update-app-headers.yml | 9 ++- 3 files changed, 49 insertions(+), 31 deletions(-) diff --git a/.github/autolabeler-config.json b/.github/autolabeler-config.json index 30e34b972..399004ee1 100644 --- a/.github/autolabeler-config.json +++ b/.github/autolabeler-config.json @@ -23,7 +23,7 @@ { "fileStatus": "modified", "includeGlobs": ["ct/**", "install/**", "misc/**", "turnkey/**", "vm/**"], - "excludeGlobs": ["misc/build.func", "misc/install.func"] + "excludeGlobs": ["misc/build.func", "misc/install.func", "misc/api.func"] } ], "delete script": [ @@ -51,13 +51,20 @@ { "fileStatus": null, "includeGlobs": ["*.md", ".github/**", "misc/*.func", "ct/create_lxc.sh"], + "excludeGlobs": ["misc/api.func"] + } + ], + "api": [ + { + "fileStatus": null, + "includeGlobs": ["api/**", "misc/api.func"], "excludeGlobs": [] } ], "high risk": [ { "fileStatus": null, - "includeGlobs": ["misc/build.func", "misc/install.func"], + "includeGlobs": ["misc/build.func", "misc/install.func", "ct/create_lxc.sh"], "excludeGlobs": [] } ] diff --git a/.github/changelog-pr-config.json b/.github/changelog-pr-config.json index 5da6b306a..911098d9d 100644 --- a/.github/changelog-pr-config.json +++ b/.github/changelog-pr-config.json @@ -1,30 +1,34 @@ [ - { - "title": "πŸ’₯ Breaking Changes", - "labels": ["breaking change"] - }, - { - "title": "✨ New Scripts", - "labels": ["new script"] - }, - { - "title": "πŸš€ Updated Scripts", - "labels": ["update script"] - }, - { - "title": "🌐 Website", - "labels": ["website"] - }, - { - "title": "🐞 Bug Fixes", - "labels": ["bug fix"] - }, - { - "title": "🧰 Maintenance", - "labels": ["maintenance"] - }, - { - "title": "❔ Unlabelled", - "labels": [] - } + { + "title": "πŸ’₯ Breaking Changes", + "labels": ["breaking change"] + }, + { + "title": "✨ New Scripts", + "labels": ["new script"] + }, + { + "title": "πŸš€ Updated Scripts", + "labels": ["update script"] + }, + { + "title": "🌐 Website", + "labels": ["website"] + }, + { + "title": "🐞 Bug Fixes", + "labels": ["bug fix"] + }, + { + "title": "🧰 Maintenance", + "labels": ["maintenance"] + }, + { + "title": "πŸ“‘ API", + "labels": ["api"] + }, + { + "title": "❔ Unlabelled", + "labels": [] + } ] diff --git a/.github/workflows/auto-update-app-headers.yml b/.github/workflows/auto-update-app-headers.yml index 8e21d7726..5e447ea54 100644 --- a/.github/workflows/auto-update-app-headers.yml +++ b/.github/workflows/auto-update-app-headers.yml @@ -17,6 +17,13 @@ jobs: pull-requests: write steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + # Step 1: Checkout repository - name: Checkout repository uses: actions/checkout@v2 @@ -71,7 +78,7 @@ jobs: --base main \ --label "automated pr" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.generate-token.outputs.token }} - name: Approve pull request if: env.changed == 'true'