Skip to content

Commit

Permalink
Update create-issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
husamettinarabaci authored Mar 19, 2024
1 parent 8c66b57 commit 44836c5
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/create-issue.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Create Issue

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

issues:
types:
- reopened
- opened
jobs:
create-issue:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v2
- name: Create Issue
run: |
echo "Creating new issue..."
cat ISSUE_TEMPLATE.md | sed -e "s/{{title}}/$GITHUB_EVENT_TITLE/" | sed -e "s/{{body}}/$GITHUB_EVENT_BODY/" | github-issue create
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: change

0 comments on commit 44836c5

Please sign in to comment.