Skip to content

Conversation

desrosj
Copy link
Member

@desrosj desrosj commented Jul 18, 2025

DO NOT MERGE. PROOF OF CONCEPT

Proposed changes

This is for exploring how a generic PR creation workflow could be created for reuse across workflows.

The other main problem this hopes to address is that commits and PRs authored by GitHub Action workflows do not have the required capabilities to trigger the corresponding GitHub Actions workflows.

This would be used in combination with something like newfold-labs/wp-plugin-bluehost#419, which allows each repository to control which workflows create pull requests.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@desrosj desrosj self-assigned this Jul 18, 2025
env:
PR_HEAD_BRANCH: ${{ inputs.head-branch }}
PR_BASE_BRANCH: ${{ inputs.base-branch }}
run: git checkout -b "$PR_HEAD_BRANCH" "origin/$PR_BASE_BRANCH"

Check failure

Code scanning / octoscan

Use of "git checkout" in a bash script with a potentially dangerous reference. Error

Use of "git checkout" in a bash script with a potentially dangerous reference.
Comment on lines +196 to +200
- name: Save patch file as an artifact
uses: actions/upload-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: pr-artifacts-${{ github.run_id }}-patch
path: release-diff.patch

Check failure

Code scanning / zizmor

commit with no history in referenced repository Error

commit with no history in referenced repository
Comment on lines +249 to +253
- name: Save commit message as an artifact
uses: actions/upload-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: pr-artifacts-${{ github.run_id }}-commit-message
path: commit-message.md

Check failure

Code scanning / zizmor

commit with no history in referenced repository Error

commit with no history in referenced repository
Comment on lines +277 to +281
- name: Save pull request body as an artifact
uses: actions/upload-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: pr-artifacts-${{ github.run_id }}-pr-body
path: pr-body.md

Check failure

Code scanning / zizmor

commit with no history in referenced repository Error

commit with no history in referenced repository
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.

1 participant