Skip to content

Commit

Permalink
feat: add post
Browse files Browse the repository at this point in the history
  • Loading branch information
nash1111 committed Jul 10, 2024
1 parent f8b62f7 commit d3ddaa5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as postAddedRSS from "~/routes/blog.addedrss.mdx";
import * as postAddShadcn from "~/routes/blog.addshadcnonremix.mdx";
import * as postOouiPart1 from "~/routes/blog.ooui_part1.mdx";
import * as postGhExtensionPart1 from "~/routes/blog.ghextension_part1.mdx";
import * as postStopTooMuchReview from "~/routes/blog.stoptoomuchreview.mdx";

export const posts = [
{ path: "/blog/nexttoremix", data: postFirst },
Expand All @@ -22,6 +23,7 @@ export const posts = [
{ path: "/blog/addshadcnonremix", data: postAddShadcn },
{ path: "/blog/ooui_part1", data: postOouiPart1 },
{ path: "/blog/ghextension_part1", data: postGhExtensionPart1 },
{ path: "/blog/stoptoomuchreview", data: postStopTooMuchReview },
];
export function getPostDataByPath(path: string) {
const post = posts.find((post) => post.path === path);
Expand Down
19 changes: 19 additions & 0 deletions app/routes/blog.stoptoomuchreview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: pr-agentのレビューを抑制しました
description: pr-agentのレビューを抑制しました
published: 2024-07-06
tags: ["AI", "GitHubActions"]
thumbnail: /blogthumbnails/13.jpg
---

## なぜ
[以前の投稿](https://nash1111rgba.com/blog/pragent)の通り、このブログのレポジトリにpr-agentを入れてすべてのPRをレビューしてもらうようにしました
一方で、このブログの投稿はmdxファイル一つと対応しているため、ブログ記事投稿のためだけのPRはレビュー不要と判断しました

## 方法
ブランチがblog-postで始まる場合はレビュー不要としてアクションを行わないようにしました
```
jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' && !startsWith(github.head_ref, 'blog-post') }}
```

0 comments on commit d3ddaa5

Please sign in to comment.