
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
RubyGems that automatically create release notes for Notion DB using Open AI API.
Add this line to your application's Gemfile:
gem 'resquirrel'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install resquirrel
New integration
をクリックして、作成したトークンをリリースノートを作成したいリポジトリのrepository secretsに登録します。NOTION_API_KEY
という名前で登録してください。changes
: リリースノートのタイトル(DBを作成するとデフォルトで用意されています。)URL
: リリースノートのリンクhttps://www.notion.so/[この部分]?v=hogehoge
の文字列を、リリースノートを作成したいリポジトリのrepository secretsに登録します。NOTION_DATABASE_ID
という名前で登録してください。Create API Key
をクリックして、作成したAPIキーをリリースノートを作成したいリポジトリのrepository secretsに登録します。OPENAI_API_KEY
という名前で登録してください。
sample:
.github/workflows/create_release_notes.yml
のようなCIで実行するファイルを作成します。
name: create release notes
on:
pull_request:
types:
- closed
jobs:
create_release_notes:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install dependencies
run: |
bundle install
- name: Run script
run: ruby lib/resquirrel.rb
env:
GITHUB_EVENT_PATH: ${{ github.event_path }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
require 'resquirrel'
Resquirrel.generate_release_note
それぞれのenvは必須です。
New integration
and register the token you have created in the repository secrets of the repository for which you want to create release notes. The name shold be set NOTION_API_KEY
.changes
: Title of the release note (this is provided by default when you create a DB.)URL
: Link to the release notehttps://www.notion.so/[this part]?v=hogehoge
in the repository secrets of the repository where you want to create the release notes. The name should be set to NOTION_DATABASE_ID
.Create API Key
and register the created API key in the repository secrets of the repository where you want to create the release notes. The name should be set to OPENAI_API_KEY
.
sample:
Create a file to run the script in CI, such as .github/workflows/create_release_notes.yml
.
name: create release notes
on:
pull_request:
types:
- closed
jobs:
create_release_notes:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install dependencies
run: |
bundle install
- name: Run script
run: ruby lib/resquirrel.rb
env:
GITHUB_EVENT_PATH: ${{ github.event_path }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
require 'resquirrel'
Resquirrel.generate_release_note
Each env is required.
Bug reports and pull requests are welcome on GitHub at https://github.com/yuki-snow1823/resquirrel This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Resquirrel project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that resquirrel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.