K e e p w o r k m o v i n g .
R e v i e w o r m e r g e c o d e , m a n a g e p r o j e c t s , i s s u e s , b r o w s e r e p o s , a n d m o r e w i t h G i t H u b M o b i l e .
A v a i l a b l e f o r i O S a n d A n d r o i d
b a s h
→
~ /
$ g h p r s t a t u s
R e l e v a n t p u l l r e q u e s t s i n c l i / c l i
C u r r e n t b r a n c h
T h e r e i s n o p u l l r e q u e s t a s s o c i a t e d w i t h [ m a i n ]
C r e a t e d b y y o u
Y o u h a v e n o o p e n p u l l r e q u e s t s
R e q u e s t i n g a c o d e r e v i e w f r o m y o u
# 1 4 0 1 C o r r e c t l y h a n d l e a n d s e t e m p t y f i e l d s . . .
[ o c t o c a t : e m p t y B o d y ]
✓ C h e c k s p a s s i n g
# 1 3 5 7 A d d e d c o n f i r m a t i o n s t e p s f o r r i s k . . .
[ o c t o c a t : c o n f i r m a t i o n s ]
x 1 / 3 c h e c k s f a i l i n g
→
~ /
$
W o r k h o w e v e r y o u w a n t .
P u t a G U I o n i t w i t h G i t H u b D e s k t o p o r s t a y i n t h e c o m m a n d l i n e w i t h G i t H u b C L I .
A v a i l a b l e f o r m a c O S , W i n d o w s , a n d L i n u x *
* G i t H u b C L I i s a v a i l a b l e o n m a c O S , W i n d o w s , a n d L i n u x
* G i t H u b D e s k t o p i s a v a i l a b l e o n m a c O S a n d W i n d o w s
B l a z i n g f a s t c l o u d d e v e l o p e r e n v i r o n m e n t s w i t h C o d e s p a c e s
L e a r n m o r e a b o u t G i t H u b C o d e s p a c e s
T h e f u t u r e o f c o d e i s i n t h e c l o u d , n o t y o u r l o c a l c o p y . C o d e s p a c e s g i v e s y o u a c o m p l e t e , c o n f i g u r a b l e d e v e n v i r o n m e n t o n t o p o f a p o w e r f u l V M i n m i n u t e s .
V i s u a l S t u d i o C o d e , i n y o u r b r o w s e r , f u l l s t o p . C o d e s p a c e s b r i n g s t h e w o r l d ’ s m o s t p o p u l a r d e s k t o p e d i t o r t o e v e r y r e p o . C o d e , b u i l d , t e s t , u s e t h e t e r m i n a l , a n d o p e n p u l l r e q u e s t s f r o m a n y w h e r e .
C u s t o m i z e t o y o u r h e a r t ’ s d e s i r e . A d d y o u r f a v o r i t e V S C o d e e x t e n s i o n s , c r e a t e a d e v c o n t a i n e r c o n f i g f i l e , i n s t a l l n e w t h e m e s , a n d t w e a k y o u r s e t t i n g s .
G i t H u b C o p i l o t ,
y o u r A I c o d e c o m p a n i o n
G i t H u b C o p i l o t p l u g s d i r e c t l y i n t o y o u r e d i t o r a n d s u g g e s t s l i n e s o f c o d e — a n d e n t i r e f u n c t i o n s . F o c u s o n b u i l d i n g b i g g e r t h i n g s w h i l e G i t H u b C o p i l o t t a k e s o n t h e r e p e t i t i v e s t u f f .
L e a r n m o r e a b o u t G i t H u b C o p i l o t
n
f e t c h _ t w e e t s . p y
e t s . r b
s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const token = process . env [ "TWITTER_BEARER_TOKEN" ]
const fetchTweetsFromUser = async ( screenName , count ) => {
const response = await fetch (
`https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=${ screenName } &count=${ count } ` ,
{
headers : {
Authorization : `Bearer ${ token } ` ,
} ,
}
)
const json = await response . json ( )
return json
}
C o p i l o t
R e p l a y
1
2
3
4
5
6
7
8
9
10
11
import tweepy , os # secrets in environment variables
def fetch_tweets_from_user (user_name ):
# authentification
auth = tweepy .OAuthHandler (os .environ ['TWITTER_KEY' ], os .environ ['TWITTER_SECRET' ])
auth .set_access_token (os .environ ['TWITTER_TOKEN' ], os .environ ['TWITTER_TOKEN_SECRET' ])
api = tweepy .API (auth )
# fetch tweets
tweets = api .user_timeline (screen_name = user , count = 200 , include_rts = False )
return tweets
C o p i l o t
R e p l a y
1
2
3
4
5
6
7
8
9
10
11
12
require 'twitter'
def fetch_tweets_from_user ( handle )
twitter = Twitter ::REST ::Client . new do |config |
config . consumer_key = ENV [ 'TWITTER_CONSUMER_KEY' ]
config . consumer_secret = ENV [ 'TWITTER_CONSUMER_SECRET' ]
config . access_token = ENV [ 'TWITTER_ACCESS_TOKEN' ]
config . access_token_secret = ENV [ 'TWITTER_ACCESS_TOKEN_SECRET' ]
end
tweets = twitter . user_timeline ( handle )
tweets
end
C o p i l o t
R e p l a y
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const token = process . env [ "TWITTER_BEARER_TOKEN" ]
const fetchTweetsFromUser = ( userName : string ) => {
const url = `https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=${ userName } &count=20`
return fetch ( url , {
headers : {
"Authorization" : `Bearer ${ token } `
}
} )
. then ( res => res . json ( ) )
. then ( tweets => tweets . map ( tweet => ( {
id : tweet . id ,
text : tweet . text ,
created_at : tweet . created_at ,
user : {
id : tweet . user . id ,
name : tweet . user . name ,
screen_name : tweet . user . screen_name ,
profile_image_url : tweet . user . profile_image_url
}
} ) ) )
}
C o p i l o t
R e p l a y
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
var apiKey = os .Getenv ("TWITTER_BEARER_TOKEN" )
type Tweet = struct { Text string }
func fetchTweetsFromUser (user string ) ([]Tweet , error ) {
url := "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=" + user + "&count=200"
req , err := http .NewRequest ("GET" , url , nil )
if err != nil {
return nil , err
}
req .Header .Set ("Authorization" , "Bearer " + apiKey )
resp , err := http .DefaultClient .Do (req )
if err != nil {
return nil , err
}
defer resp .Body .Close ()
if resp .StatusCode != 200 {
return nil , fmt .Errorf ("bad status: %d" , resp .StatusCode )
}
var tweets []Tweet
if err := json .NewDecoder (resp .Body ).Decode (& tweets ); err != nil {
return nil , err
}
return tweets , nil
}
C o p i l o t
R e p l a y
A u t o m a t e a n y t h i n g w i t h G i t H u b A c t i o n s
L e a r n m o r e a b o u t G i t H u b A c t i o n s
S e t u p C I / C D , e n h a n c e y o u r D e v O p s , a n d s c r i p t y o u r e n t i r e w o r k f l o w w i t h G i t H u b A c t i o n s . K i c k o f f a u t o m a t e d w o r k f l o w s w i t h G i t H u b e v e n t s l i k e p u s h , i s s u e c r e a t i o n , m e r g e , a n d r e l e a s e .
1 1 , 0 0 0 +
A c t i o n s
W r i t e y o u r o w n , o r i m p o r t A c t i o n s f r o m t h e o p e n s o u r c e c o m m u n i t y , a l l w i t h i n o u r w o r l d - c l a s s e d i t o r . F e e l i n g s t u c k ? B r o w s e t h e A c t i o n s d e v e l o p e r d o c s a s y o u c o d e .
E x p l o r e t h e A c t i o n s M a r k e t p l a c e
Y o u c a n h a v e i t a l l . R u n a c t i o n s i n a n y l a n g u a g e o r o p e r a t i n g s y s t e m , o n L i n u x , m a c O S , W i n d o w s , A R M , a n d c o n t a i n e r s . O r a l l a t o n c e w i t h m a t r i x b u i l d s .
W i t h 7 0 m i l l i o n j o b s r u n p e r m o n t h y o u ’ r e i n g o o d c o m p a n y w i t h A c t i o n s , t h e n u m b e r o n e C I s e r v i c e o n t h e w o r l d ’ s l a r g e s t d e v e l o p e r p l a t f o r m .
S p e a k i n g o f a u t o m a t i o n , D e p e n d a b o t k e e p s y o u r p r o j e c t s u p t o d a t e w i t h a u t o m a t e d p u l l r e q u e s t s t h a t u p d a t e a l l y o u r d e p e n d e n c i e s . J u s t r e v i e w a n d m e r g e t o k e e p y o u r s o f t w a r e s e c u r e .
L e a r n m o r e a b o u t D e p e n d a b o t
F i n d a n d f i x v u l n e r a b i l i t i e s
b e f o r e y o u m e r g e
L e a r n m o r e a b o u t a d v a n c e d s e c u r i t y
S e c u r e y o u r c o d e a s y o u w r i t e i t . C o d e Q L ’ s c o d e s c a n n i n g a u t o m a t i c a l l y r e v i e w s e v e r y c h a n g e t o y o u r c o d e b a s e a n d i d e n t i f i e s k n o w n v u l n e r a b i l i t i e s b e f o r e t h e y e v e r r e a c h p r o d u c t i o n .
●
V u l n e r a b i l i t i e s f o u n d
F i x e d d e s e r i a l i z e d d a t a s e c u r i t y v u l n e r a b i l i t y
K e e p y o u r s e c r e t s . W e a u t o m a t i c a l l y s c a n r e p o s i t o r i e s f o r O A u t h t o k e n s , A P I k e y s , p e r s o n a l t o k e n s , a n d m o r e . I f w e f i n d o n e , w e ’ l l n o t i f y y o u a n d t h e p a r t n e r t h a t i s s u e d i t t o i n v a l i d a t e t h e s e c r e t .
●
O A u t h t o k e n f o u n d
R e p l a c e d O A u t h t o k e n w i t h a k e y v a u l t v a l u e
F o u n d a v u l n e r a b i l i t y ? O u r s e c u r i t y a d v i s o r y r e m e d i a t i o n t o o l s h e l p d e v e l o p e r s i d e n t i f y a n d d i s c l o s e t h e m r e s p o n s i b l y s o m a i n t a i n e r s c a n p a t c h t h e m i n d e d i c a t e d , p r i v a t e w o r k s p a c e s .
T h e h o m e f o r a l l d e v e l o p e r s — i n c l u d i n g y o u
G i t H u b D i s c u s s i o n s i s d e d i c a t e d s p a c e f o r y o u r c o m m u n i t y t o c o m e t o g e t h e r , a s k a n d a n s w e r q u e s t i o n s , a n d h a v e o p e n - e n d e d c o n v e r s a t i o n s .
L e a r n h o w t o g e t s t a r t e d w i t h D i s c u s s i o n s
A m p l i f y y o u r v o i c e i n y o u r o w n p e r s o n a l R E A D M E o n y o u r p r o f i l e .
T e l l t h e s t o r y o f y o u r w o r k t h r o u g h y o u r r e p o s i t o r i e s , c o n t r i b u t i o n s , a n d t e c h n o l o g i e s o f c h o i c e .
s o p h s h e p s t a r t e d s p o n s o r i n g y o u f o r $ 1 0 / m o n t h 2 x 3 d a y s a g o
j o s h a b e r s t a r t e d s p o n s o r i n g y o u f o r $ 1 0 / m o n t h 5 x 2 d a y s a g o
p m a r s c e i l l s t a r t e d s p o n s o r i n g y o u f o r $ 2 5 / m o n t h 2 d a y s a g o
T h a t o p e n s o u r c e c o d e y o u w r o t e f o r y o u r s e l f m i g h t j u s t h e l p s o m e o n e e l s e . G e t p a i d f o r b u i l d i n g w h a t m a t t e r s t o y o u w i t h G i t H u b S p o n s o r s .
S u p p o r t t h e p r o j e c t s y o u d e p e n d o n , t o o .
1 0 0 % t o d e v e l o p e r s , z e r o f e e s
L e a r n m o r e a b o u t S p o n s o r s
M a k e y o u r c o n t r i b u t i o n
S m a l l e x p e r i m e n t s , i n s p i r e d i n v e n t i o n s , a n d t h e s o f t w a r e e v e r y o n e d e p e n d s o n — t h e c o d e y o u w r i t e o n G i t H u b c a n r e a c h o n e c o d e b a s e o r m i l l i o n s .
S i g n u p f o r G i t H u b
C o n t a c t S a l e s
t e n s o r f l o w / t e n s o r f l o w
A n O p e n S o u r c e M a c h i n e L e a r n i n g F r a m e w o r k f o r E v e r y o n e
g a t s b y j s / g a t s b y
B u i l d b l a z i n g f a s t , m o d e r n a p p s a n d w e b s i t e s w i t h R e a c t
h o m e - a s s i s t a n t / c o r e
🏡 O p e n s o u r c e h o m e a u t o m a t i o n t h a t p u t s l o c a l c o n t r o l a n d p r i v a c y f i r s t
r u s t - l a n g / r u s t
E m p o w e r i n g e v e r y o n e t o b u i l d r e l i a b l e a n d e f f i c i e n t s o f t w a r e .
f l u t t e r / f l u t t e r
F l u t t e r m a k e s i t e a s y a n d f a s t t o b u i l d b e a u t i f u l a p p s f o r m o b i l e a n d b e y o n d .
k u b e r n e t e s / k u b e r n e t e s
P r o d u c t i o n - G r a d e C o n t a i n e r S c h e d u l i n g a n d M a n a g e m e n t
a p p l e / s w i f t
T h e S w i f t P r o g r a m m i n g L a n g u a g e
a n s i b l e / a n s i b l e
A n s i b l e i s a r a d i c a l l y s i m p l e I T a u t o m a t i o n p l a t f o r m .
h a s h i c o r p / t e r r a f o r m
T e r r a f o r m e n a b l e s y o u t o s a f e l y a n d p r e d i c t a b l y c r e a t e , c h a n g e , a n d i m p r o v e i n f r a s t r u c t u r e .
o h m y z s h / o h m y z s h
🙃 A d e l i g h t f u l c o m m u n i t y - d r i v e n f r a m e w o r k f o r m a n a g i n g y o u r z s h c o n f i g u r a t i o n .
f a c e b o o k / r e a c t
A d e c l a r a t i v e , e f f i c i e n t , a n d f l e x i b l e J a v a S c r i p t l i b r a r y f o r b u i l d i n g u s e r i n t e r f a c e s .
n p m / c l i
T h e p a c k a g e m a n a g e r f o r J a v a S c r i p t
P r o d u c t
●
F e a t u r e s
●
S e c u r i t y
●
T e a m
●
E n t e r p r i s e
●
C u s t o m e r s t o r i e s
●
T h e R e a d M E P r o j e c t
●
P r i c i n g
●
R e s o u r c e s
●
R o a d m a p
P l a t f o r m
●
D e v e l o p e r A P I
●
P a r t n e r s
●
A t o m
●
E l e c t r o n
●
G i t H u b D e s k t o p
S u p p o r t
●
D o c s
●
C o m m u n i t y F o r u m
●
P r o f e s s i o n a l S e r v i c e s
●
S k i l l s
●
S t a t u s
●
C o n t a c t G i t H u b
C o m p a n y
●
A b o u t
●
B l o g
●
C a r e e r s
●
P r e s s
●
I n c l u s i o n
●
S o c i a l I m p a c t
●
S h o p
●
G i t H u b o n T w i t t e r
●
G i t H u b o n F a c e b o o k
●
G i t H u b o n L i n k e d I n
●
G i t H u b o n Y o u T u b e
●
G i t H u b o n T w i t c h
●
G i t H u b o n T i k T o k
●
G i t H u b ’ s o r g a n i z a t i o n o n G i t H u b
●
© 2 0 2 2 G i t H u b , I n c .
●
T e r m s
●
P r i v a c y
( U p d a t e d 0 8 / 2 0 2 2 )
●
S i t e M a p
●
W h a t i s G i t ?
Y o u c a n ’ t p e r f o r m t h a t a c t i o n a t t h i s t i m e .
Y o u s i g n e d i n w i t h a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .
Y o u s i g n e d o u t i n a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .