Skip to content

Add GitHub Sponsors funding configuration#50

Merged
jsirish merged 3 commits into5from
copilot/add-github-sponsors-configuration
Nov 11, 2025
Merged

Add GitHub Sponsors funding configuration#50
jsirish merged 3 commits into5from
copilot/add-github-sponsors-configuration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 11, 2025

Adds GitHub Sponsors support to enable funding visibility across multiple touchpoints.

Changes

  • .github/FUNDING.yml: Points to dynamic organization sponsors page, enables repository header button
  • README.md: Added Sponsors badge on CI line, removed codecov badge
  • composer.json: Added funding field for composer fund command
  • .github/workflows/ci.yml: Disabled phpcoverage (false)

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-promos/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-elemental-promos/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:42
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 visibility across multiple touchpoints in the repository, pointing to the dynamic organization sponsors page.

Key Changes:

  • Added GitHub Sponsors button and badge with dynamic organization
  • Added composer funding configuration for composer fund command
  • Disabled PHP coverage in CI workflow

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/FUNDING.yml Creates funding configuration to enable GitHub Sponsors button in repository header
composer.json Adds funding field for composer fund command support
README.md Adds GitHub Sponsors badge to CI line and removes codecov badge
.github/workflows/ci.yml Disables phpcoverage to resolve failing CI checks

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

README.md Outdated
@@ -2,8 +2,7 @@

A block to display a group of promos - a small card with an image, headline, short desciption, and link.
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'desciption' to 'description'.

Copilot uses AI. Check for mistakes.
@jsirish jsirish marked this pull request as ready for review November 11, 2025 04:01
@jsirish jsirish merged commit cf8625c into 5 Nov 11, 2025
18 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