From cddfc0dd8e4d40d2c49cc239208ff62b4df8d499 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 8 Aug 2024 12:01:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(label-actions.yml,=20labeler.ym?= =?UTF-8?q?l):=20update=20GitHub=20Actions=20for=20better=20automation=20a?= =?UTF-8?q?nd=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing newlines and improve readability in label-actions.yml. Enhance labeler.yml by adding steps to create a GitHub app token for better security and automation. These changes improve the clarity and maintainability of the GitHub Actions configuration files. The added GitHub app token step ensures secure and automated label management. --- .github/label-actions.yml | 10 +++++++++- .github/workflows/labeler.yml | 8 +++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/label-actions.yml b/.github/label-actions.yml index 23eae353c..40c4db1cf 100644 --- a/.github/label-actions.yml +++ b/.github/label-actions.yml @@ -5,9 +5,12 @@ comment: > **Please create a GitHub Discussion instead of this issue.** + As this issue has been labeled as `needs-discussion` by a maintainer it is being automatically closed and locked. It will later be deleted to avoid polluting repository searches with duplicate or incorrect content. - This doesn't necessarily mean that what you've reported isn't a problem or a reasonable idea, but it does mean that it should be raised as a Discussion first and not an Issue. Please create a Discussion now, assuming you still wish to discuss it. + + This doesn't necessarily mean that what you've reported isn't a problem or a reasonable idea, but it does mean that it should be raised as a Discussion first and not an Issue. _Please create a Discussion now, assuming you still wish to discuss it._ + Thanks, Azure DevOps Migration Tools team close: true @@ -19,17 +22,22 @@ comment: > Hi, you need to format code or logs here so that they're more readable for others. + You can find a Markdown code formatting guide [here](https://www.markdownguide.org/basic-syntax/#code) as well as some GitHub-specific information formatting code blocks [here](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks). + Thanks, Azure DevOps Migration Tools team 'retry-latest-version': comment: > Hi there, + You're reporting a problem with an old version of the Azure DevOps Migration Tools. Please try the latest version and tell us if that fixes your problem. + Good luck, + Thanks, Azure DevOps Migration Tools team diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index f25102135..dc3288e64 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -9,6 +9,12 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.NKDAGILITY_BOT_APP_ID }} + private-key: ${{ secrets.NKDAGILITY_BOT_CLIENTSECRET }} - uses: actions/labeler@v5 with: - sync-labels: true \ No newline at end of file + sync-labels: true + repo-token: ${{ steps.app-token.outputs.token }} \ No newline at end of file