Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5146

[Dev] Merge script imposes directory name

    XMLWordPrintableJSON

Details

    Description

      The merge script currently fails with a cryptic message if the parent directory isn't named "arrow":

      $ ./dev/merge_arrow_pr.py 
      ARROW_HOME = /home/antoine/arrow/dev
      PROJECT_NAME = dev
      Which pull request would you like to merge? (e.g. 34): 4113
      url = 'https://api.github.com/repos/apache/dev/pulls/4113'
      {'documentation_url': 'https://developer.github.com/v3/pulls/#get-a-single-pull-request',
       'message': 'Not Found'}
      Traceback (most recent call last):
        File "./dev/merge_arrow_pr.py", line 462, in <module>
          cli()
        File "./dev/merge_arrow_pr.py", line 417, in cli
          pr = PullRequest(cmd, github_api, git_remote, jira_con, pr_num)
        File "./dev/merge_arrow_pr.py", line 252, in __init__
          self.url = self._pr_data["url"]
      KeyError: 'url'
      

      PROJECT_HOME is inferred from the current directory name, though it should almost always be "arrow".

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h