Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
GitLab Hacks
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
megos
December 18, 2018
Technology
410
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GitLab Hacks
megos
December 18, 2018
Transcript
29 slides
GitLab Hacks megos @ GitLab Meetup Kagoshima #2 2018/12/18
megos Full stuck engineer (not stack) • ͓͠͝ͱɿVue.jsɺReactɺࣾΠϯϑϥ • Twitterɿ@tmegos
GitLab CEOSS gitlab.com/gitlab-org/gitlab-ce • ͜Μͳػೳ͕΄͍͠ͳ • ͜͜ͷಈ͖͕͓͔͍͠ • Issueൃߦ •
Contribute
։ൃʹࢀՃͯ͠ΈΑ͏ʂ • ϦϯΫͷमਖ਼Λͯ͠Έ·ͨ͠
ϦϦʔεϊʔτʹࡌΔͱ͏Ε͍͠ʂ
ͯ͢ͷཁ͕ ࣮ݱ͞ΕΔΘ͚Ͱͳ͍
ຐվ
ҙʂ • ͜ͷൃදGitLabͷվΛਪ͢ΔͷͰ ͋Γ·ͤΜ • ύονΛͯΔࡍࣗݾͰʂ
Search improvement
1จࣈͰݕࡧͰ͖ͳ͍ • ʮ෯͕ڱ͍ʯͱ͍͏IssueΛ࡞ͬͨͣ…
Issue • User autocomplete doesn't work with less than 3
characters anymore https://gitlab.com/gitlab-org/gitlab-ce/issues/38664 • ύϑΥʔϚϯεͷؔͰbacklog
ຐվ • /opt/gitlab/embedded/service/gitlab-rails/ lib/gitlab/sql/pattern.rb • MIN_CHARS_FOR_PARTIAL_MATCHING ͷΛҙͷʹมߋ
࣮ߦྫ • ʮ෯ʯͰݕࡧ ύονద༻લ ύονద༻ޙ
Syntax highlight
ASPͷϑΝΠϧ͕ syntax highlight͞Εͳ͍ • ͱɺࢥͬͯGitLab.comͰϑΝΠϧΛ࡞ͬͨΒ syntax highlight͞Εͨ • ฐࣾڥ •
ϑΝΠϧʹΑΔ͔
ASP͕ରԠ͍ͯ͠ͳ͍ • GitLabͰrougeͱ͍͏gemΛͬͯ syntax highlightΛ࣮ݱ͍ͯ͠Δ http://rouge.jneen.net/ • ASPະରԠ…
Issue • Write an ASP lexer https://github.com/jneen/rouge/issues/43 • BIMLͱ͍͏ϑΥʔϚοτ͕ࣅ͍ͯΔΒ͍͠
ຐվ • /opt/gitlab/embedded/lib/ruby/gems/ [verison]/gems/rouge-[version]/lib/ rouge/lexers/biml.rb • ֦ுࢠʹʮ*.aspxʯɺʮ*.ascxʯΛՃ
࣮ߦྫ
Merge request default message
Merge requestͷ σϑΥϧτϝοηʔδΛม͍͑ͨ • ʮMerge branch dev into masterʯ ͱ͍͏ϝοηʔδΘ͔Γʹ͍͘
ʢͱҒ͍ਓʹݴΘΕͨʣ • Ϛʔδ࣌ʹʮModify commit messageʯ Λຖճ͢Δͷ໘
Issue • Edit commit messages when merging merge request https://gitlab.com/gitlab-org/gitlab-ee/issues/2551
ຐվ • /opt/gitlab/embedded/service/gitlab-rails/ app/models/merge_request.rb • ʮmerge_commit_messageʯϝιου messageͷϝοηʔδΛॻ͖͑
࣮ߦྫ
CI when merge request
MR࣌ʹCIΛಈ͔͍ͨ͠ • ͏ͪͷϓϩδΣΫτͰ sourceͱtargetͷࠩͷϑΝΠϧใ͕ཉ͍͠ • 1ͭͷϓϩδΣΫτͰෳͷձ͕ࣾ։ൃ • ଞͷձࣾͷϞδϡʔϧΛLint͢ΔͱΤϥʔ • ࣗࣾͷ։ൃͨ͠෦͚ͩLintΛ͔͚͍ͨ
Issue • Pipelines for Merge Request https://gitlab.com/gitlab-org/gitlab-ce/issues/23902 • Milestone12.0ʢ2019.3ʣ
.gitlab-ci.yml setup: image: bravissimolabs/alpine-git stage: setup except: - master -
schedules script: - git diff --name-status origin/master...${CI_COMMIT_SHA} | (grep -v ^D || echo '') | cut -f 2 > diff.txt artifacts: paths: - diff.txt expire_in: 1 day tags: - docker
masterͱ࡞ۀϒϥϯνͷࠩ • ରԠޙ CI_MERGE_REQUEST_TARGET_BRANCH Λ͏
More Decks by megos
See All by megos
個人開発を続けるということ / Continuing Personal Development
megos
0
330
わたしの開発環境の歴史 / My environment history
megos
0
360
社内でしか使わない勤怠管理システムにOAuth2を導入してみた / Kagomoku #19
megos
0
2.3k
CUIが嫌ならGUIからGitを使えばいいじゃない / kagomoku #17
megos
0
420
Join! かごえん / Join Kagoeng
megos
0
110
GitLab Features
megos
1
380
Gitlab meets minutes
megos
2
320
2018年まとめ / Summary of 2018
megos
0
340
Dockerで作るLaTeX執筆環境 / Writing LaTeX with Docker
megos
0
1.9k
Other Decks in Technology
See All in Technology
PMの私の 最近のAgent Skills活用法
haru860
0
100
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
20
19k
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
4.1k
競馬予想をAIでやってみた話
yoshimura_datam
0
160
VTuberになってみた話
yoshimura_datam
0
130
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
150
LLMごとの文章力を測ってみた話
yoshimura_datam
0
130
正しくWeb サイトを守るためのコンテンツセキュリティーポリシー
hinalin
0
790
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.4k
AIエージェントのアーキテクチャ設計
nsatoh
0
600
Taking back control of your AI development
inesmontani
PRO
0
320
AIフレンドリーなGenerative UIをJSXで
uhyo
2
1k
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.4k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
440
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
500
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
Faster Mobile Websites
deanohume
310
32k
Designing Experiences People Love
moore
143
24k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
550
The Invisible Side of Design
smashingmag
301
52k
Unsuck your backbone
ammeep
672
58k
Odyssey Design
rkendrick25
PRO
3
980