Skip to content

ci: enforce dev → main PR flow - #2

Merged
anurag629 merged 4 commits into
devfrom
ci/pr-target-check
Feb 27, 2026
Merged

ci: enforce dev → main PR flow#2
anurag629 merged 4 commits into
devfrom
ci/pr-target-check

Conversation

@anurag629

Copy link
Copy Markdown
Member

Summary

  • Add pr-target-check.yml workflow that blocks PRs targeting main from any branch other than dev
  • Enforces the branching flow: feature-branch → dev → main

After merging

Add "PR Target Check / check-source-branch" as a required status check in the main branch ruleset (Settings → Rules) so failing PRs cannot be merged.

Type of Change

  • CI/CD configuration

anurag629 and others added 2 commits February 27, 2026 10:17
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.
PRs targeting main from any branch other than dev will fail the
PR Target Check. This enforces the flow: feature branches → dev → main.
@vercel

vercel Bot commented Feb 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ogcops Ready Ready Preview, Comment Feb 27, 2026 4:59am

Request Review

@anurag629
anurag629 merged commit 852397b into dev Feb 27, 2026
3 checks passed
@anurag629
anurag629 deleted the ci/pr-target-check branch February 27, 2026 05:00
anurag629 added a commit that referenced this pull request Feb 27, 2026
* ci: enforce dev → main PR flow (#2)

* 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.

* ci: add workflow to restrict PRs targeting main to dev branch only

PRs targeting main from any branch other than dev will fail the
PR Target Check. This enforces the flow: feature branches → dev → main.

* ci: retrigger checks after base branch change

* ci: run CI on PRs targeting dev branch too

* feat: Raycast-inspired UI/UX redesign (#3)

* feat: Raycast-inspired UI/UX redesign across all pages

Redesign the entire site with a polished, premium feel inspired by Raycast:

- Design system: enhanced shadows, gradients, glassmorphism, animations
- Header: frosted glass, gradient border, nav hover pills
- Homepage: hero glow, equal-width bento category grid, feature cards,
  vertical timeline, terminal chrome API teaser, OSS banner
- Templates gallery: search bar, filter pills, card hover glow
- Editor: dot-grid canvas, refined panels, gradient export button
- API docs: sidebar icons, terminal chrome code blocks, copy buttons
- 404 page: SVG illustration, floating shapes, gradient text
- Footer: 3-column grid layout with gradient top border
- Layout: Astro View Transitions for smooth page navigation
- Fix thumbnail API rendering templates at 600x315 viewport (cropping)
  instead of 1200x630 with resvg scale-down (showing full template)

* feat: add GitHub stars and visitor counter utilities

Add supporting libs for GitHub star count, Upstash Redis visitor
counter, and the /api/visitors endpoint. Include .env.example for
required environment variables.
anurag629 added a commit that referenced this pull request Feb 27, 2026
* ci: enforce dev → main PR flow (#2)

* 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.

* ci: add workflow to restrict PRs targeting main to dev branch only

PRs targeting main from any branch other than dev will fail the
PR Target Check. This enforces the flow: feature branches → dev → main.

* ci: retrigger checks after base branch change

* ci: run CI on PRs targeting dev branch too

* feat: Raycast-inspired UI/UX redesign (#3)

* feat: Raycast-inspired UI/UX redesign across all pages

Redesign the entire site with a polished, premium feel inspired by Raycast:

- Design system: enhanced shadows, gradients, glassmorphism, animations
- Header: frosted glass, gradient border, nav hover pills
- Homepage: hero glow, equal-width bento category grid, feature cards,
  vertical timeline, terminal chrome API teaser, OSS banner
- Templates gallery: search bar, filter pills, card hover glow
- Editor: dot-grid canvas, refined panels, gradient export button
- API docs: sidebar icons, terminal chrome code blocks, copy buttons
- 404 page: SVG illustration, floating shapes, gradient text
- Footer: 3-column grid layout with gradient top border
- Layout: Astro View Transitions for smooth page navigation
- Fix thumbnail API rendering templates at 600x315 viewport (cropping)
  instead of 1200x630 with resvg scale-down (showing full template)

* feat: add GitHub stars and visitor counter utilities

Add supporting libs for GitHub star count, Upstash Redis visitor
counter, and the /api/visitors endpoint. Include .env.example for
required environment variables.

* fix: add Content-Type header to visitor counter POST request (#8)

Vercel CSRF protection blocks POST requests without explicit
Content-Type: application/json, returning 403 Forbidden.
@prithvirajz prithvirajz mentioned this pull request Feb 27, 2026
12 tasks
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.

1 participant