Slide 1

Slide 1 text

GitHub Apps and Regression test workflow SRE-SET Automation Night #2

Slide 2

Slide 2 text

About me w !2VSBNZ UXJUUFS(JU)VC2JJUB w ϑϩϯτΤϯυΤϯδχΞ w "OHVMBS5ZQF4DSJQU3FBDU3FEVY'MPX5ZQF w ໘౗ͳ͜ͱ͕ݏ͍
 ςετʙϏϧυपΓͷ؀ڥߏஙΛ๊͑ࠐΉ͜ͱ͕ଟΊ

Slide 3

Slide 3 text

5PEBZ`TUIFNF (JU)VC"QQTΛ࡞ͬͨΒ ྑ͍ײ͡ͷճؼςετϑϩʔ͕Ͱ͖ͨ࿩

Slide 4

Slide 4 text

GitHub Apps is Կ w (JU)VC"QQTͱ͸ w (JU)VCͱ࿈ܞ͢ΔΞϓϦέʔγϣϯͷܗଶ w Լهͷ྆ํͷػೳΛ༗͢Δ w (JU)VCͷ"1*࣮ߦʹΑΔϨϙδτϦૢ࡞ w 8FCIPPLTϨϙδτϦʹى͖ͨΠϕϯτʹ൓Ԡ

Slide 5

Slide 5 text

GitHub Apps v.s. OAuth Apps w 0"VUI"QQTͱͷҧ͍ w 0"VUI"QQT(JU)VCͷΞΧ΢ϯτʹඥͮ͘ w (JU)VC"QQT(JU)VCͷϨϙδτϦʹඥͮ͘ w (JU)VC"QQT͸ɺಛఆͷΞΧ΢ϯτʹґଘ͠ͳ͍ͨΊɺ νʔϜͰ։ൃ͢ΔϨϙδτϦʹ޲͘

Slide 6

Slide 6 text

https://developer.github.com/apps/getting-started-with-building-apps/

Slide 7

Slide 7 text

ސ٬Զ͕ٻΊ͍ͯͨϞϊ w ϑϩϯτΤϯυ༻ͷࣗಈճؼςετ؀ڥ͕ཉ͍͠ w ը໘Λߏ੒͢ΔίϯϙʔωϯτͷεΫγϣΛอଘ w εΫγϣอଘ͸$*1VQQFUFFSར༻ͰࣗಈԽ w ௚ۙͷεφοϓγϣοτͱɺࠓճͷεΫγϣΛൺֱ w ࠩ෼ΛϨϏϡʔͯ͠໰୊ͳ͚Ε͹ɺ
 ࠓճεΫγϣΛ࠷৽ͷεφοϓγϣοτͱͯ͠อଘ

Slide 8

Slide 8 text

ճؼςετϑϩʔͷΠϝʔδ

Slide 9

Slide 9 text

εφοϓγϣοτߋ৽ཁ݅ ࠩ෼ൃੜ࣌͸ɺࠩ෼಺༰ΛνΣοΫͯ͠෼ذ͍ͨ͠

Slide 10

Slide 10 text

https://reg-viz.github.io/reg-suit/

Slide 11

Slide 11 text

Step 1. AppsͷΠϯετʔϧ w ϨϙδτϦʹରͯ͠ɺ(JU)VC"QQTΛΠϯετʔϧ

Slide 12

Slide 12 text

Step 2. Push ~ CIͰͷࠩ෼ݕ஌ w ఏڙ͞ΕΔ$-*Λ$JSDMF$*΍5SBWJT$*Ͱ࣮ߦɻ
 (JU)VC"QQT "84-BNCEB ͕ΩοΫ͞ΕΔ

Slide 13

Slide 13 text

Step 3. νʔϜϝϯό΁௨ୡ w ֘౰DPNNJUΛؚΉ13΁ɺճؼςετͷ݁ՌΛίϝϯτ

Slide 14

Slide 14 text

Step 4. ࠩ෼ͷ֬ೝ(=ϨϏϡʔ) w ϨϏϡΞ͸ίϝϯτͷϦϯΫ͔Β
 ৄࡉϨϙʔτΛ୧ͬͯ಺༰֬ೝ

Slide 15

Slide 15 text

Step 5. Approve ~ Merge w ϨϏϡʔͷঝೝΛτϦΨʔʹ8FCIPPLTͰ֘౰DPNNJU εςʔλεΛਖ਼ৗ΁มߋ

Slide 16

Slide 16 text

reg-suitͰͷAppsར༻ύλʔϯ "QQT͸"84-BNCEB"1*(BUFXBZͷΈͰ࣮૷ $*͔Βͷݺͼग़͞ΕΔ(JU)VC"1*ΛDBMM͢Δؔ਺ w 13΁ͷίϝϯτ ಠࣗDPNNJUεςʔλεͷηοτ ϨϏϡʔঝೝ࣌ʹݺͼग़͞ΕΔ8FCIPPLT w ಠࣗίϛοτDPNNJUεςʔλεͷߋ৽

Slide 17

Slide 17 text

·ͱΊ w ճؼςετΛ(JU)VCϑϩʔ΁౷߹ͯ͠Έͨ w (JU)VC"QQTʹΑΓɺࠩ෼ݕ஌ʙϨϏϡʔͷϫʔΫ ϑϩʔΛ13্Ͱ࣮ݱͰ͖ͨ w ೳಈతͳ"1*࣮ߦडಈతͳ8FCIPPLTͷ૒ํΛ࣮૷ Ͱ͖ΔͨΊɺ৭ʑͳϫʔΫϑϩʔΛαϙʔτͰ͖ͦ͏ w ঺հͨ͠ϑϩʔͷৄࡉ͸ԼهͰ֬ೝՄೳͰ͢
 IUUQTHJUIVCDPNSFHWJ[SFHQVQQFUFFSEFNP

Slide 18

Slide 18 text

Thank you ! by @Quramy