apply-pr 3.2.1__tar.gz → 3.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: apply_pr
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: Apply Pull Requests from GitHub
5
5
  Home-page: https://github.com/gisce/apply_pr
6
6
  Author: GISCE-TI, S.L.
@@ -937,7 +937,7 @@ def prs_status(
937
937
  pr_number = pull_info['pullRequest']['number']
938
938
  try:
939
939
  pull = pull_info['pullRequest']
940
- projects_info = pull_info['projectItems']
940
+ projects_info = pull_info.get('projectItems', None)
941
941
  projects_show = ''
942
942
  to_apply = '{}'.format(str(pr_number))
943
943
  projects = ''
@@ -1001,7 +1001,7 @@ def prs_status(
1001
1001
  for prmsg in PRS[milestone]:
1002
1002
  print('\t{}'.format(prmsg))
1003
1003
  for prmsg in ERRORS:
1004
- print('ERR\t{}'.format(prmsg))
1004
+ print('ERR\t{}'.format(prmsg))
1005
1005
  if version:
1006
1006
  print(colors.magenta('\nIncluded in projects\n'))
1007
1007
  for x in IN_PROJECTS:
@@ -1010,9 +1010,15 @@ def prs_status(
1010
1010
  for _pr_project in TO_APPLY_CAUSE_PROJECT_VERSION_ERROR:
1011
1011
  print(colors.red('* {}'.format(_pr_project)))
1012
1012
  if CLOSED_PRS:
1013
- print(colors.red('\nClosed PRS: "{}"\n'.format(
1013
+ print(colors.red('\n############# Closed PRS: "{}"\n'.format(
1014
1014
  ' '.join(CLOSED_PRS)
1015
1015
  )))
1016
+ if ERRORS:
1017
+ print(colors.yellow('\n⚠ ️WARNING ⚠ ️! ERRORS IN PRS. MUST BE REVIEW\n'))
1018
+ print(colors.yellow('##########################################\n'))
1019
+ for prmsg in ERRORS:
1020
+ print('ERR\t{}'.format(prmsg))
1021
+ print(colors.yellow('############# END ERROR PRS ###############\n'))
1016
1022
  print(colors.yellow(
1017
1023
  '\nNot Included: "{}"\n'.format(' '.join(TO_APPLY))
1018
1024
  ))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: apply-pr
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: Apply Pull Requests from GitHub
5
5
  Home-page: https://github.com/gisce/apply_pr
6
6
  Author: GISCE-TI, S.L.
@@ -5,7 +5,7 @@ with open('requirements.txt', 'r') as f:
5
5
 
6
6
  setup(
7
7
  name='apply_pr',
8
- version='3.2.1',
8
+ version='3.2.2',
9
9
  packages=find_packages(),
10
10
  url='https://github.com/gisce/apply_pr',
11
11
  license='MIT',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes