Skip to content

Commit

Permalink
Update auto-label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyanthakur authored Oct 6, 2024
1 parent 26c87b6 commit 8341ff7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up GitHub CLI
run: |
echo "Setting up GitHub CLI"
sudo apt-get install gh
- name: Assign always-required labels
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Set the GH_TOKEN environment variable
run: |
# Always add these labels
echo "Adding always assigned labels: hacktoberfest, hacktoberfest-accepted, hactoberfest2024"
Expand All @@ -22,6 +29,8 @@ jobs:
gh issue edit ${{ github.event.issue.number || github.event.pull_request.number }} --add-label "hactoberfest2024"
- name: Auto assign specific labels based on conditions
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Set the GH_TOKEN environment variable
run: |
ISSUE_TITLE="${{ github.event.issue.title || github.event.pull_request.title }}"
Expand All @@ -36,4 +45,4 @@ jobs:
echo "Adding label 'enhancement'"
gh issue edit ${{ github.event.issue.number || github.event.pull_request.number }} --add-label "enhancement"
else
echo "No additional matching label found for this issue or PR."
echo "No additional matching label found for this issue or PR."

0 comments on commit 8341ff7

Please sign in to comment.