Skip to content

Commit

Permalink
Merge pull request #81 from JCarlosR/add_gh_actions
Browse files Browse the repository at this point in the history
Add GitHub actions (auto assign and label)
  • Loading branch information
AnitSarkar123 authored Oct 4, 2024
2 parents 33a6ec8 + fd90539 commit 31f1eb7
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/auto-assign-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Assign to Author

on:
issues:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: 'Auto-assign issue creator'
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }} # Required token for authentication
assignees: ${{ github.event.issue.user.login }} # Auto-assign the issue creator
28 changes: 28 additions & 0 deletions .github/workflows/auto-label-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto Label New Issues & PRs

on:
issues:
types: [opened]
pull_request:
types: [opened]

permissions:
issues: write
pull-requests: write

jobs:
label:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Add Labels to Issues & PRs
if: github.event_name == 'issues' || github.event_name == 'pull_request'
uses: actions-ecosystem/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: |
hacktoberfest
hacktoberfest-accepted

0 comments on commit 31f1eb7

Please sign in to comment.