Skip to content

Add GitHub Sponsors funding configuration#18

Merged
jsirish merged 2 commits intomasterfrom
copilot/add-github-sponsors-configuration
Nov 11, 2025
Merged

Add GitHub Sponsors funding configuration#18
jsirish merged 2 commits intomasterfrom
copilot/add-github-sponsors-configuration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 11, 2025

Adds GitHub Sponsors support to enable funding through multiple touchpoints: repository header button, README badge, and composer fund command.

Changes

  • .github/FUNDING.yml: Enable Sponsors button pointing to dynamic organization
  • README.md: Add Sponsors badge on CI line, remove codecov badge
  • composer.json: Add funding field for composer fund support
  • .github/workflows/ci.yml: Disable phpcoverage to address failing coverage uploads

All funding links point to https://github.com/sponsors/dynamic

Original prompt

This section details on the original issue you should resolve

<issue_title>Add GitHub Sponsors funding configuration</issue_title>
<issue_description># Add GitHub Sponsors Funding Configuration

This issue tracks adding GitHub Sponsors support to make it easier for users to support our open source work.

Tasks

  • Create .github/FUNDING.yml with github: [dynamic]
  • Add GitHub Sponsors badge to README (same line as CI badge)
  • Remove codecov badge if present on CI badge line
  • Add composer funding field to composer.json
  • Disable phpcoverage in CI workflow if it's failing
  • Create PR with all changes

Implementation Details

1. FUNDING.yml

Create .github/FUNDING.yml:

github: [dynamic]

2. README Badge

Add sponsor badge on the same line as CI badge:

[![CI](https://github.com/dynamic/silverstripe-elemental-embedded-code/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-elemental-embedded-code/actions/workflows/ci.yml) [![Sponsors](https://img.shields.io/badge/GitHub-Sponsors-ff69b4?logo=github)](https://github.com/sponsors/dynamic)

Remove codecov badge if present on that line.

3. Composer Funding

Add to composer.json after the "authors" section:

    "funding": [
        {
            "type": "github",
            "url": "https://github.com/sponsors/dynamic"
        }
    ],

4. CI Workflow (if phpcoverage failing)

If CI has phpcoverage failures, update .github/workflows/ci.yml:

  • Change phpcoverage: true to phpcoverage: false
  • Or remove codecov upload steps if custom workflow

5. PR Details

Create PR with title: "Add GitHub Sponsors funding configuration"

PR body template:

This PR adds GitHub Sponsors support to make it easier for users to support our open source work.

## Changes
- Added `.github/FUNDING.yml` to enable the GitHub Sponsors button in the repository header
- Added GitHub Sponsors badge to README for better visibility
- Added composer funding field for `composer fund` command support
- Points to [@dynamic](https://github.com/sponsors/dynamic) organization sponsors page

## Benefits
- Provides multiple touchpoints for GitHub Sponsors visibility
- Makes it easier for users to support the project
- Aligns with other Dynamic repositories

The badge will appear at the top of the README alongside existing CI/quality badges.

Success Criteria

  • Sponsors button appears in repo header
  • README badge displays correctly on CI line
  • composer fund shows GitHub Sponsors link
  • All CI checks pass
  • PR ready for review

References

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: jsirish <1163643+jsirish@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Sponsors funding configuration Add GitHub Sponsors funding configuration Nov 11, 2025
Copilot AI requested a review from jsirish November 11, 2025 03:40
@jsirish jsirish requested a review from Copilot November 11, 2025 03:41
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

This PR adds GitHub Sponsors funding configuration to enable funding through multiple touchpoints including the repository header button, README badge, and composer fund command. All changes align with the issue requirements and point to the Dynamic organization's GitHub Sponsors page.

Key Changes:

  • Added .github/FUNDING.yml to enable GitHub Sponsors button in repository header
  • Updated README to replace codecov badge with GitHub Sponsors badge on CI line
  • Added funding field to composer.json for composer fund command support
  • Disabled phpcoverage in CI workflow to address failing coverage uploads

Reviewed Changes

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

File Description
.github/FUNDING.yml Creates new funding configuration pointing to dynamic organization
README.md Replaces codecov badge with Sponsors badge on CI badge line
composer.json Adds funding field with GitHub Sponsors URL for composer fund support
.github/workflows/ci.yml Disables phpcoverage to resolve failing coverage uploads

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

@jsirish jsirish marked this pull request as ready for review November 11, 2025 04:01
@jsirish jsirish merged commit 332f252 into master Nov 11, 2025
6 checks passed
@jsirish jsirish deleted the copilot/add-github-sponsors-configuration branch November 11, 2025 04:10
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.

Add GitHub Sponsors funding configuration

3 participants