This repository was archived by the owner on Oct 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212release_body = os .environ ['TRAVIS_COMMIT_MESSAGE' ]
1313commit_id = os .environ ['TRAVIS_COMMIT' ]
1414
15+ pr = None
16+
1517pr_number = os .environ .get ('TRAVIS_PULL_REQUEST' , 'false' )
1618if pr_number and pr_number != 'false' :
1719 try :
1820 pr = repo .get_pull (int (pr_number ))
19- print (pr )
20- print (pr .title )
21- print (pr .body )
22- release_body = '''# {}
21+ except ValueError :
22+ pass
23+
24+ if not pr :
25+ all_pulls = [pr for pr in repo .get_pulls (state = 'closed' , sort = 'updated' )]
26+ all_pulls .reverse ()
27+ for merged_pr in all_pulls :
28+ if pr .merge_commit_sha == commit_id :
29+ pr = merged_pr
30+
31+
32+
33+ if pr :
34+ release_body = '''# {}
2335{}
2436
2537## Commit message:
2638```
2739{}
2840```
2941''' .format (pr .title , pr .body , release_body )
30- print (release_body )
31- except ValueError :
32- pass
3342
3443release = None
3544try :
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33if [ " ${TRAVIS_OS_NAME} " == " linux" ]; then
4- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5- sudo add-apt-repository " deb [arch=amd64] https://download.docker.com/linux/ubuntu $( lsb_release -cs) stable"
6- sudo apt-get update
7- sudo apt-get -y -o Dpkg::Options::=" --force-confnew" install docker-ce
8- sudo systemctl restart docker
4+ # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5+ # sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
6+ # sudo apt-get update
7+ # sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
8+ # sudo systemctl restart docker
99 docker --version
1010 current_arch=" $( uname -i) "
1111 if [ " $current_arch " != " ${IMAGE_ARCH} " ]; then
You can’t perform that action at this time.
0 commit comments