Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/autocreatepr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- "feature-*"

permissions: # 👈 Add this block
contents: write
pull-requests: write # 👈 This is required to create PRs

jobs:
create-pr:
runs-on: ubuntu-latest
Expand All @@ -14,6 +18,8 @@ jobs:

- name: Create Pull Request
run: |
gh pr create --base main --head ${{ github.ref_name }} --title "Auto PR: ${{ github.ref_name }}" --body "This PR was automatically created when the branch was pushed."
gh pr create --base main --head ${{ github.ref_name }} \
--title "Auto PR: ${{ github.ref_name }}" \
--body "This PR was automatically created when the branch was pushed."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}