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: 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." 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