Skip to content

Conversation

@NullPointerDepressiveDisorder
Copy link
Owner

This pull request automates and improves the process for updating the MiddleDrag port in MacPorts, and enhances the README to better document MacPorts support. The workflow now creates or updates pull requests to the upstream MacPorts repository automatically, ensuring the port stays current with new releases. The README is updated with MacPorts installation instructions and a dynamic badge.

Workflow automation for MacPorts updates:

  • The GitHub Actions workflow in .github/workflows/update-macports.yml is enhanced to:
    • Use a dedicated branch per version update and push changes to the fork.
    • Add the upstream MacPorts repository as a remote, fetch the latest master, and create the update branch from upstream/master to ensure updates are based on the latest code.
    • Automatically create or update a pull request against the upstream MacPorts repository using the GitHub CLI, with proper commit messages and PR body. The script now exits early if no changes are needed.

Documentation improvements:

  • Added a dynamic MacPorts version badge to the README and included MacPorts installation instructions. [1] [2]

… PR creation

- Changed the update step to create a branch for the Portfile update and push changes to the fork.
- Added logic to check for existing pull requests and update them if necessary, or create a new PR against the upstream repository.
- Improved handling of version updates and commit messages to follow MacPorts conventions.
- Included a new section for MacPorts with installation command for MiddleDrag.
- Enhanced visibility of installation options for users on different package managers.
Copilot AI review requested due to automatic review settings January 17, 2026 09:15
Copy link
Contributor

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

This pull request automates MacPorts port updates and improves documentation by adding a GitHub Actions workflow that creates pull requests to the upstream MacPorts repository and updating the README with MacPorts installation instructions.

Changes:

  • Added automated workflow to update MacPorts Portfile with new releases and create/update PRs to upstream MacPorts repository
  • Added MacPorts installation instructions and version badge to README

Reviewed changes

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

File Description
README.md Added MacPorts version badge and installation instructions
.github/workflows/update-macports.yml Enhanced workflow to create branches from upstream, push to fork, and automatically create/update PRs to MacPorts repository

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

@sentry
Copy link
Contributor

sentry bot commented Jan 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Karan Mohindroo <96403086+NullPointerDepressiveDisorder@users.noreply.github.com>
- Updated the logic to check for existing pull requests to handle cases where no PR exists, improving robustness of the workflow.
- Ensured that the workflow correctly identifies and updates existing PRs or creates new ones as needed.
- Included installation steps for MiddleDrag via MacPorts in the documentation.
- Enhanced user guidance by providing a direct command for installation and a link to the MacPorts page.
…ling

- Modified the version check logic in the update-macports.yml workflow to utilize the client payload from repository dispatch events.
- This change enhances the workflow's flexibility by allowing version specification through both manual triggers and dispatch events.
@NullPointerDepressiveDisorder NullPointerDepressiveDisorder merged commit 2222aa6 into main Jan 17, 2026
6 checks passed
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