From 7808213a7be915d4b786abad86aa0b09449732ee Mon Sep 17 00:00:00 2001 From: Anurag Verma <78868769+anurag629@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:17:38 +0530 Subject: [PATCH 1/4] docs: improve README hero image, add contributors section (#1) Switch hero from blog-minimal-dark to github-readme-hero template with brand accent color. Add contrib.rocks contributors grid. Condense contributing section to avoid redundancy with CONTRIBUTING.md. --- README.md | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 22a7285..4ca02ab 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ **Live:** [og.codercops.com](https://og.codercops.com) -![OGCOPS](https://og.codercops.com/api/og?title=OGCOPS&template=blog-minimal-dark&description=Free+OG+Image+Generator+%E2%80%A2+109+Templates+%E2%80%A2+8+Platform+Previews+%E2%80%A2+Free+API&author=og.codercops.com) +![OGCOPS](https://og.codercops.com/api/og?template=github-readme-hero&title=OGCOPS&description=Free%2C+open-source+OG+image+generator.+109+templates.+8+platform+previews.+Free+API.&tagline=No+login+%E2%80%A2+No+watermarks+%E2%80%A2+No+limits&badges=MIT+License&accentColor=%23E07A5F) ## Why OGCOPS? @@ -112,25 +112,21 @@ The build output in `dist/` can be deployed to any Node.js hosting platform. ## Contributing -We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guide. +Contributions are welcome — templates, bug fixes, features, docs, and more. See [CONTRIBUTING.md](CONTRIBUTING.md) for setup and guidelines. -Ways to contribute: - -- Add new OG image templates -- Fix bugs or improve existing features -- Improve documentation -- Add platform previews -- Report issues - -## Community - -- [GitHub Issues](https://github.com/codercops/ogcops/issues) — bug reports and feature requests -- [GitHub Discussions](https://github.com/codercops/ogcops/discussions) — questions, ideas, and show & tell +- [Open an issue](https://github.com/codercops/ogcops/issues) — bug reports and feature requests +- [Start a discussion](https://github.com/codercops/ogcops/discussions) — questions, ideas, show & tell ## License [MIT](LICENSE) +## Contributors + + + + + ## Acknowledgments - [Satori](https://github.com/vercel/satori) by Vercel — SVG generation from JSX From 41a71be6ad75688343013503ee39881ae81ebc08 Mon Sep 17 00:00:00 2001 From: anurag629 Date: Fri, 27 Feb 2026 10:19:48 +0530 Subject: [PATCH 2/4] ci: add workflow to restrict PRs targeting main to dev branch only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PRs targeting main from any branch other than dev will fail the PR Target Check. This enforces the flow: feature branches → dev → main. --- .github/workflows/pr-target-check.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-target-check.yml diff --git a/.github/workflows/pr-target-check.yml b/.github/workflows/pr-target-check.yml new file mode 100644 index 0000000..3ef2504 --- /dev/null +++ b/.github/workflows/pr-target-check.yml @@ -0,0 +1,22 @@ +name: PR Target Check + +on: + pull_request: + branches: [main] + +jobs: + check-source-branch: + runs-on: ubuntu-latest + steps: + - name: Only allow PRs from dev to main + if: github.head_ref != 'dev' + run: | + echo "::error::PRs targeting 'main' are only allowed from the 'dev' branch." + echo "Please target 'dev' instead, or merge your branch into 'dev' first." + echo "" + echo " Source: ${{ github.head_ref }}" + echo " Target: ${{ github.base_ref }}" + exit 1 + - name: PR source branch is valid + if: github.head_ref == 'dev' + run: echo "PR from 'dev' to 'main' — allowed." From 618ffea4df1b1e7170103e1226e6d58bb5e14503 Mon Sep 17 00:00:00 2001 From: anurag629 Date: Fri, 27 Feb 2026 10:27:19 +0530 Subject: [PATCH 3/4] ci: retrigger checks after base branch change From 724db45e3f50017f2d4f9caecddf68ef72d95641 Mon Sep 17 00:00:00 2001 From: anurag629 Date: Fri, 27 Feb 2026 10:28:37 +0530 Subject: [PATCH 4/4] ci: run CI on PRs targeting dev branch too --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbf7594..17c905d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main] + branches: [main, dev] pull_request: - branches: [main] + branches: [main, dev] jobs: build: