Skip to content

Commit

Permalink
Merge pull request #7693 from fjordllc/main
Browse files Browse the repository at this point in the history
Release 2024-04-16 07:02:00
  • Loading branch information
komagata authored Apr 15, 2024
2 parents 52c6b2a + 3e92dcc commit 0d29c2b
Show file tree
Hide file tree
Showing 4 changed files with 4,650 additions and 10,382 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/git-pr-release-action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Create a release pull-request
on:
push:
branches:
- main
jobs:
release_pull_request:
runs-on: ubuntu-latest
name: release_pull_request
steps:
- name: checkout
uses: actions/checkout@v1
- name: create-release-pr
uses: grassedge/[email protected]
with:
base: production
head: main
token: ${{ secrets.GITHUB_TOKEN }}
labels: release
assign: true
name: Create a release pull-request
on:
push:
branches:
- main
jobs:
release_pull_request:
runs-on: ubuntu-latest
name: release_pull_request
steps:
- name: checkout
uses: actions/checkout@main
- name: create-release-pr
uses: grassedge/[email protected]
with:
base: production
head: main
token: ${{ secrets.GITHUB_TOKEN }}
labels: release
assign: true
8 changes: 4 additions & 4 deletions app/models/github_grass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def fetch
private

def extract_table(html)
table = Nokogiri::HTML(html).css(TABLE_SELECTOR)
table = Nokogiri::HTML(html, nil, 'UTF-8').css(TABLE_SELECTOR)
SELECTORS_TO_REMOVE.each { |selector| table.search(selector).remove }
table
end

def fetch_page
uri = URI.parse(github_url(@name))
uri = URI.parse(github_contributions_url(@name))
response = Net::HTTP.get_response(uri)
response.body
end
Expand Down Expand Up @@ -67,7 +67,7 @@ def replace_wday_with_japanese(label, abbreviation)
label[:class] = 'wdays'
end

def github_url(name)
"https://github.com/#{name}"
def github_contributions_url(name)
"https://github.com/users/#{name}/contributions"
end
end
2 changes: 1 addition & 1 deletion app/views/users/_user.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.users-item__header-start
.users-item__icon
= link_to user.url
span class="a-user-role"
span class="a-user-role is-#{user.primary_role}"
img.users-item__user-icon-image.a-user-icon title=user.icon_title alt=user.icon_title src=user.avatar_url
.users-item__header-end
.card-list-item__rows
Expand Down
Loading

0 comments on commit 0d29c2b

Please sign in to comment.