Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

The release workflow failed with 403 "Resource not accessible by integration" when creating PRs via curl. Additionally, the PR body incorrectly instructed squash-merge instead of rebase-merge.

Changes

Workflow permissions

  • Added pull-requests: write to workflow-level permissions

PR creation

  • Replaced curl-based GitHub API call with gh pr create
  • Properly sets GH_TOKEN environment variable for authentication

Merge strategy instruction

  • Changed PR body from "should be squash-merged" to "should be rebased and merged"
- name: Create Pull Request for Release
  run: |
    gh pr create \
      --title "Release version ${{ env.NEXT_VERSION }}" \
      --body "...\n\nThis PR should be rebased and merged into main." \
      --base main \
      --head "${{ env.BRANCH_NAME }}"
  env:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Review comments on pull request #1490 Fix release workflow PR creation permissions Feb 7, 2026
Copilot AI requested a review from LogFlames February 7, 2026 12:14
@LogFlames LogFlames marked this pull request as ready for review February 7, 2026 12:18
Copilot AI changed the title Fix release workflow PR creation permissions Fix release workflow PR creation and merge strategy instruction Feb 7, 2026
Copilot AI and others added 2 commits February 8, 2026 02:43
Co-authored-by: LogFlames <36220731+LogFlames@users.noreply.github.com>
Co-authored-by: LogFlames <36220731+LogFlames@users.noreply.github.com>
@LogFlames LogFlames force-pushed the copilot/review-latest-comments-1490 branch from b28cb3d to 7a88fc7 Compare February 8, 2026 01:43
@LogFlames LogFlames enabled auto-merge (squash) February 8, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants