Skip to content

Commit

Permalink
add automation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Frecherenkel60 committed Dec 29, 2023
0 parents commit dffe3d0
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/clone_issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Clone Issue to Repositories

on:
issues:
types: [labeled]

jobs:
clone-issue:
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Clone issue to labeled repository
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/wwi21seb-projekt/${{ github.event.label.name }}/issues \
-f title='${{ github.event.issue.title }}' \
-f body='${{ github.event.issue.body }}'
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTION_PAT }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/*
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/contract-discussions.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dffe3d0

Please sign in to comment.