mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Minor updates
This commit is contained in:
8
.github/scripts/release-notes-prompt.py
vendored
8
.github/scripts/release-notes-prompt.py
vendored
@@ -12,12 +12,12 @@ GITHUB_OUTPUT = os.getenv("GITHUB_OUTPUT")
|
|||||||
|
|
||||||
TODAY = datetime.now(timezone('US/Eastern')).isoformat(sep=' ', timespec='seconds')
|
TODAY = datetime.now(timezone('US/Eastern')).isoformat(sep=' ', timespec='seconds')
|
||||||
|
|
||||||
BASE_PROMPT = f"""Based on the following 'PR Information', please generate a concise and informative release notes to be read by developers.
|
BASE_PROMPT = f"""Based on the following 'PR Information', please generate concise and informative release notes to be read by developers.
|
||||||
Format the release notes with markdown, and always use this structure: a descriptive and very short title (no more than 8 words) with heading level 2, a paragraph with a summary of changes (no header), and sections for '🚀 New Features & Improvements', '🐛 Bugs Fixed' and '🔧 Other Updates', with heading level 3, skip respectively the sections if not applicable.
|
Format the release notes with markdown, and always use this structure: a descriptive and very short title (no more than 8 words) with heading level 2, a paragraph with a summary of changes (no header), and if applicable, sections for '🚀 New Features & Improvements', '🐛 Bugs Fixed' and '🔧 Other Updates', with heading level 3, skip respectively the sections if not applicable.
|
||||||
Finally include the following markdown comment with the PR merged date: <!-- PR_DATE: {TODAY} -->.
|
Finally include the following markdown comment with the PR merged date: <!-- PR_DATE: {TODAY} -->.
|
||||||
Avoid being repetitive and focus on the most important changes and their impact, don't mention version bumps, nor changeset files, nor environment variables, nor syntax updates.
|
Avoid being repetitive and focus on the most important changes and their impact, discard any mention of version bumps/updates, changeset files, environment variables or syntax updates.
|
||||||
PR Information:"""
|
PR Information:"""
|
||||||
|
|
||||||
# Write the prompt to GITHUB_OUTPUT
|
# Write the prompt to GITHUB_OUTPUT
|
||||||
with open(GITHUB_OUTPUT, "a") as outputs_file:
|
with open(GITHUB_OUTPUT, "a") as outputs_file:
|
||||||
outputs_file.write(f"BASE_PROMPT<<EOF\n{BASE_PROMPT}\nEOF")
|
outputs_file.write(f"BASE_PROMPT<<EOF\n{BASE_PROMPT}\nEOF")
|
||||||
8
.github/workflows/changeset-ai-releases.yml
vendored
8
.github/workflows/changeset-ai-releases.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
|||||||
title: "Changeset version bump"
|
title: "Changeset version bump"
|
||||||
version: npm run version-packages # This performs the changeset version bump
|
version: npm run version-packages # This performs the changeset version bump
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.ROO_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||||
|
|
||||||
# Job 2: Process version bump PR created by R00-B0T
|
# Job 2: Process version bump PR created by R00-B0T
|
||||||
changeset-pr-approve-merge:
|
changeset-pr-approve-merge:
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ROO_GITHUB_TOKEN }}
|
token: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ env.GIT_REF }}
|
ref: ${{ env.GIT_REF }}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
uses: RooVetGit/Roo-GHA/.github/actions/ai-release-notes@main
|
uses: RooVetGit/Roo-GHA/.github/actions/ai-release-notes@main
|
||||||
id: ai_release_notes
|
id: ai_release_notes
|
||||||
with:
|
with:
|
||||||
GHA_PAT: ${{ secrets.ROO_GITHUB_TOKEN }}
|
GHA_PAT: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
model_name: gpt-4o-mini
|
model_name: gpt-4o-mini
|
||||||
repo_path: ${{ env.REPO_PATH }}
|
repo_path: ${{ env.REPO_PATH }}
|
||||||
@@ -166,7 +166,7 @@ jobs:
|
|||||||
if: contains(github.event.pull_request.labels.*.name, 'openai-edited')
|
if: contains(github.event.pull_request.labels.*.name, 'openai-edited')
|
||||||
run: gh pr merge --squash --auto ${{ github.event.pull_request.number }}
|
run: gh pr merge --squash --auto ${{ github.event.pull_request.number }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.ROO_GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||||
|
|
||||||
# Job 3: Create GitHub release after version bump PR is merged
|
# Job 3: Create GitHub release after version bump PR is merged
|
||||||
github-release:
|
github-release:
|
||||||
|
|||||||
Reference in New Issue
Block a user