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
11 changes: 11 additions & 0 deletions .github/workflows/danger-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Danger Comment

on:
workflow_run:
workflows: [Danger]
types: [completed]

jobs:
comment:
uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Danger

on:
pull_request:
types: [opened, reopened, edited, synchronize]

jobs:
danger:
uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0
secrets: inherit
with:
ruby-version: '3.4'
bundler-cache: true
18 changes: 18 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: RuboCop

on:
push:
pull_request:

jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.4']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 0.5.1 (Next)

* [#45](https://github.com/dblock/fui/pull/45): Migrated from Travis CI to GitHub Actions with danger-pr-comment workflow - [@dblock](https://github.com/dblock).
* Your contribution here.

### 0.5.0 (2018/12/19)
Expand Down
6 changes: 4 additions & 2 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
toc.check
changelog.check
danger.import_dangerfile(gem: 'danger-pr-comment')

changelog.check!
toc.check!
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ source 'http://rubygems.org'

gemspec

gem 'danger-changelog', '~> 0.4.0'
gem 'danger-toc', '~> 0.1'
gem 'danger'
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'danger' gem is added without a version constraint. Consider adding a version constraint for better dependency management and reproducibility, similar to how other gems in the Gemfile specify versions (e.g., 'rspec', 'rubocop').

Suggested change
gem 'danger'
gem 'danger', '~> 9.0'

Copilot uses AI. Check for mistakes.
gem 'danger-changelog'
gem 'danger-pr-comment', '0.1.0'
gem 'danger-toc'
Comment on lines +6 to +8
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version constraints were removed from 'danger-changelog' (previously '> 0.4.0') and 'danger-toc' (previously '> 0.1'). This could lead to unexpected behavior if newer versions introduce breaking changes. Consider retaining version constraints for stability and reproducibility.

Suggested change
gem 'danger-changelog'
gem 'danger-pr-comment', '0.1.0'
gem 'danger-toc'
gem 'danger-changelog', '~> 0.4.0'
gem 'danger-pr-comment', '0.1.0'
gem 'danger-toc', '~> 0.1'

Copilot uses AI. Check for mistakes.
gem 'rake'
gem 'rspec', '~> 3.4.0'
gem 'rubocop', '0.61.1'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Fui
==========

[![Gem Version](https://badge.fury.io/rb/fui.svg)](https://badge.fury.io/rb/fui)
[![Build Status](https://travis-ci.org/dblock/fui.svg)](https://travis-ci.org/dblock/fui)
[![Test](https://github.com/dblock/fui/actions/workflows/test.yml/badge.svg)](https://github.com/dblock/fui/actions/workflows/test.yml)

Find unused Objective-C imports.

Expand Down