Skip to content

Commit

Permalink
đŸ”§ (label-actions.yml, labeler.yml): update GitHub Actions for better …
Browse files Browse the repository at this point in the history
…automation and formatting

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.
  • Loading branch information
MrHinsh committed Aug 8, 2024
1 parent c05d70e commit cddfc0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/label-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
8 changes: 7 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
sync-labels: true
repo-token: ${{ steps.app-token.outputs.token }}

0 comments on commit cddfc0d

Please sign in to comment.