Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024-04-16 07:02:00 #7693

Merged
merged 15 commits into from
Apr 15, 2024
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
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/git-pr-release-action@v1.0
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/git-pr-release-action@v1.0
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
Loading