diff --git a/.github/workflows/issue-userstory-create.yml b/.github/workflows/issue-userstory-create.yml new file mode 100644 index 0000000..0ae771b --- /dev/null +++ b/.github/workflows/issue-userstory-create.yml @@ -0,0 +1,51 @@ +name: Create User Story Issue +on: + workflow_dispatch: + inputs: + issue_title: + description: 'Title for the issue' + required: true + issue_description: + description: 'Brief description of the feature' + required: true + complexity: + description: 'Complexity of the feature' + required: true + type: choice + options: + - 'Low' + - 'Medium' + - 'High' + default: 'Medium' + duration: + description: 'Estimated duration' + required: true + type: choice + options: + - '1 day' + - '3 days' + - '1 week' + - '2 weeks' + - '1 month' + default: '1 week' + +jobs: + create-issue: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Create Issue with User Story + uses: cedricve/llm-create-issue-user-story@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }} + azure_openai_endpoint: ${{ secrets.AZURE_OPENAI_ENDPOINT }} + azure_openai_version: ${{ secrets.AZURE_OPENAI_VERSION }} + openai_model: 'gpt-4o' + issue_title: ${{ github.event.inputs.issue_title }} + issue_description: ${{ github.event.inputs.issue_description }} + complexity: ${{ github.event.inputs.complexity }} + duration: ${{ github.event.inputs.duration }} + labels: 'user-story,feature' + assignees: ${{ github.actor }} \ No newline at end of file