From 1e1632fd022814c557bee431bc3260e6954e1afc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Apr 2026 23:49:30 +0000 Subject: [PATCH 1/2] chore: add dependabot changeset workflow Agent-Logs-Url: https://github.com/cameri/nostream/sessions/d4c27474-5e00-4668-ab36-b9ffe83a3c96 Co-authored-by: cameri <378886+cameri@users.noreply.github.com> --- .github/workflows/dependabot-changeset.yml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/dependabot-changeset.yml diff --git a/.github/workflows/dependabot-changeset.yml b/.github/workflows/dependabot-changeset.yml new file mode 100644 index 00000000..6008e4ff --- /dev/null +++ b/.github/workflows/dependabot-changeset.yml @@ -0,0 +1,46 @@ +name: Dependabot Changeset + +on: + pull_request: + types: [opened, reopened] + +jobs: + add-changeset: + name: Add Changeset + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 + + - name: Check for existing changeset + id: check + run: | + count=$(find .changeset -maxdepth 1 -name '*.md' ! -name 'README.md' 2>/dev/null | wc -l) + if [ "$count" -gt 0 ]; then + echo "exists=true" >> "$GITHUB_OUTPUT" + else + echo "exists=false" >> "$GITHUB_OUTPUT" + fi + + - name: Create changeset + if: steps.check.outputs.exists == 'false' + env: + PR_TITLE: ${{ github.event.pull_request.title }} + run: | + filename=".changeset/dependabot-pr-${{ github.event.pull_request.number }}.md" + printf -- '---\n"nostream": patch\n---\n\n%s\n' "$PR_TITLE" > "$filename" + + - name: Commit and push changeset + if: steps.check.outputs.exists == 'false' + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add .changeset/dependabot-pr-${{ github.event.pull_request.number }}.md + git commit -m "chore: add changeset for dependabot PR #${{ github.event.pull_request.number }}" + git push From 83ee5c901eca29a1287f5001bc07a83691864ada Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Apr 2026 00:33:02 +0000 Subject: [PATCH 2/2] fix: check for specific changeset file instead of any changeset Agent-Logs-Url: https://github.com/cameri/nostream/sessions/3207702c-8940-4b51-a9b7-39d3c4bedcf4 Co-authored-by: cameri <378886+cameri@users.noreply.github.com> --- .github/workflows/dependabot-changeset.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependabot-changeset.yml b/.github/workflows/dependabot-changeset.yml index 6008e4ff..6d585855 100644 --- a/.github/workflows/dependabot-changeset.yml +++ b/.github/workflows/dependabot-changeset.yml @@ -21,8 +21,8 @@ jobs: - name: Check for existing changeset id: check run: | - count=$(find .changeset -maxdepth 1 -name '*.md' ! -name 'README.md' 2>/dev/null | wc -l) - if [ "$count" -gt 0 ]; then + filename=".changeset/dependabot-pr-${{ github.event.pull_request.number }}.md" + if [ -f "$filename" ]; then echo "exists=true" >> "$GITHUB_OUTPUT" else echo "exists=false" >> "$GITHUB_OUTPUT"