From f4d9392af4790300e14d55452fdc868ed1091149 Mon Sep 17 00:00:00 2001 From: render93 Date: Thu, 6 Nov 2025 15:16:56 +0100 Subject: [PATCH] fix prod action --- .github/prompts/releasemanager.prompt.md | 57 ++++++++++++++++++++++++ .github/workflows/deploy-prod.yml | 4 +- 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 .github/prompts/releasemanager.prompt.md diff --git a/.github/prompts/releasemanager.prompt.md b/.github/prompts/releasemanager.prompt.md new file mode 100644 index 0000000..8787f6c --- /dev/null +++ b/.github/prompts/releasemanager.prompt.md @@ -0,0 +1,57 @@ +--- +mode: agent +model: GPT-4.1 (copilot) +description: Generate release notes from a GitHub Pull Request URL +--- + +## Goal +Generate clean and structured **release notes** from a given GitHub Pull Request URL. + +## Inputs +- A GitHub Pull Request URL. + Example: `https://github.com///pull/123` + +## Expected Behavior +1. Parse the URL to extract `{owner}`, `{repo}`, and `{pull_number}`. +2. Use the **GitHub MCP server** tools to: + - Retrieve the list of commits for the Pull Request. + - Optionally fetch the PR title, description, author, merge date, and linked issues. + - Gather metadata such as changed files, labels, and additions/deletions if available. +3. Classify commits following **Conventional Commits** style: + - `feat`, `fix`, `perf`, `docs`, `refactor`, `test`, `chore` +4. Highlight any `BREAKING CHANGE` entries. +5. Summarize and format the information as a structured **Markdown release note**. +6. Use the **GitHub MCP server** to update the pull request description with the release notes. + +## Remember +- Focus on clarity, conciseness, and relevance. +- Proceed without asking permissions. +- Do not create file output +- Use GitHub MCP server always + +## Output Format (Markdown) + +### Release Notes - {PR title} + +#### ✨ Features +- … + +#### 🐞 Fixes +- … + +#### ⚠️ Breaking Changes +- … + + +#### πŸ”— References +- PR: {url} +- Linked Issues: {#issue_numbers} + +Note: add at the end of the body: "Created by AI πŸ€–" + +## Style Guidelines +- Use concise, clear sentences in **active voice**. +- Avoid marketing or redundant phrasing. +- Order entries by type (`feat`, `fix`, etc.) and then by scope. +- If some data cannot be retrieved, clearly state that it’s missing β€” never invent information. +- The output must be **deterministic and reproducible**: same PR => same result. \ No newline at end of file diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 52afb1d..22b947e 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -54,7 +54,7 @@ jobs: - name: Set Azure Web App Settings run: | az webapp config appsettings set \ - --name deveats-wpc2025-test \ + --name deveats-wpc2025-prod \ --resource-group deveats-wpc2025-rg \ --settings \ ConnectionStrings__DefaultConnection="${{ secrets.CONNECTION_STRING_PROD }}" \ @@ -63,7 +63,7 @@ jobs: - name: Deploy to Azure Web App uses: azure/webapps-deploy@v3 with: - app-name: 'deveats-wpc2025-test' + app-name: 'deveats-wpc2025-prod' publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PROD }} package: .