Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [main]
branches: [main, dev]
pull_request:
branches: [main]
branches: [main, dev]

jobs:
build:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/pr-target-check.yml
Original file line number Diff line number Diff line change
@@ -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."
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down Expand Up @@ -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

<a href="https://github.com/codercops/ogcops/graphs/contributors">
<img src="https://contrib.rocks/image?repo=codercops/ogcops" />
</a>

## Acknowledgments

- [Satori](https://github.com/vercel/satori) by Vercel — SVG generation from JSX
Expand Down