Skip to content

chore: repo updates#12

Merged
shavonn merged 3 commits into
mainfrom
chore/repo-updates
Mar 31, 2026
Merged

chore: repo updates#12
shavonn merged 3 commits into
mainfrom
chore/repo-updates

Conversation

@shavonn
Copy link
Copy Markdown
Contributor

@shavonn shavonn commented Mar 31, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 31, 2026 02:14
@shavonn shavonn merged commit ffaf625 into main Mar 31, 2026
21 checks passed
@shavonn shavonn deleted the chore/repo-updates branch March 31, 2026 02:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates repository automation and packaging configuration, replacing the previous release/dependabot workflows and adding support scripts for local development hooks.

Changes:

  • Add a Composer script for installing CaptainHook git hooks.
  • Replace the Release Please workflow/config with a new “Release” workflow that runs on merged PRs.
  • Update distribution exports via .gitattributes and remove the Dependabot auto-merge workflow.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
composer.json Adds install-hooks Composer script to install enabled CaptainHook hooks.
.github/workflows/release.yml Introduces a new release workflow triggered on merged PR close events.
.github/workflows/release-please.yml Removes the existing Release Please workflow.
.github/workflows/dependabot-auto-merge.yml Removes the existing Dependabot auto-merge workflow.
.github/release-please-config.json Removes Release Please configuration no longer used.
.gitattributes Excludes additional tooling/config/docs files from exported archives.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4 to +17
pull_request:
types: [ closed ]

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow runs on pull_request (closed) but performs write operations (contents: write, creating/updating releases). For PRs coming from forks, GitHub Actions restricts the GITHUB_TOKEN to read-only on pull_request events regardless of the permissions block, which can cause the release step to fail. If releases should run for fork-based contributions, consider triggering on push to main after merge, or using pull_request_target with appropriate hardening (checkout the merge commit SHA and avoid running untrusted code).

Suggested change
pull_request:
types: [ closed ]
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.sha }}

Copilot uses AI. Check for mistakes.
Comment thread .gitattributes
Comment on lines +14 to +15
/CHANGELOG.md export-ignore
/README.md export-ignore
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new export-ignore entries for CHANGELOG.md and README.md don't follow the column alignment used in the rest of this file (see lines 5-13). Aligning spacing keeps the file consistent and easier to scan.

Suggested change
/CHANGELOG.md export-ignore
/README.md export-ignore
/CHANGELOG.md export-ignore
/README.md export-ignore

Copilot uses AI. Check for mistakes.
@github-actions github-actions Bot mentioned this pull request Apr 27, 2026
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