mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	tools: Rename update-authors-json to fetch-contributor-data.
This commit is contained in:
		@@ -304,7 +304,7 @@ our JavaScript markdown processor has access to the supported list.
 | 
			
		||||
 | 
			
		||||
Zulip maintains data on the developers who have contributed the most to
 | 
			
		||||
the current version of Zulip in the /about page.  These data are
 | 
			
		||||
fetched using the GitHub API with `tools/update-authors-json`.  In
 | 
			
		||||
fetched using the GitHub API with `tools/fetch-contributor-data`.  In
 | 
			
		||||
development, it just returns some basic test data to avoid adding load
 | 
			
		||||
to GitHub's APIs unnecessarily; it's primarily run as part of building
 | 
			
		||||
a release tarball.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								static/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								static/.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -10,7 +10,7 @@
 | 
			
		||||
/generated/emoji-styles
 | 
			
		||||
# From passing pygments data to the frontend
 | 
			
		||||
/generated/pygments_data.json
 | 
			
		||||
# From `tools/update-authors-json`
 | 
			
		||||
# From `tools/fetch-contributor-data`
 | 
			
		||||
/generated/github-contributors.json
 | 
			
		||||
 | 
			
		||||
# Legacy emoji data directory
 | 
			
		||||
 
 | 
			
		||||
@@ -134,11 +134,11 @@ def main(options: argparse.Namespace) -> int:
 | 
			
		||||
    else:
 | 
			
		||||
        print("No need to run `tools/setup/build_pygments_data`.")
 | 
			
		||||
 | 
			
		||||
    update_authors_json_paths = ["tools/update-authors-json", "zerver/tests/fixtures/authors.json"]
 | 
			
		||||
    update_authors_json_paths = ["tools/fetch-contributor-data", "zerver/tests/fixtures/authors.json"]
 | 
			
		||||
    if file_or_package_hash_updated(update_authors_json_paths, "update_authors_json_hash", options.is_force):
 | 
			
		||||
        run(["tools/update-authors-json", "--use-fixture"])
 | 
			
		||||
        run(["tools/fetch-contributor-data", "--use-fixture"])
 | 
			
		||||
    else:
 | 
			
		||||
        print("No need to run `tools/update-authors-json`.")
 | 
			
		||||
        print("No need to run `tools/fetch-contributor-data`.")
 | 
			
		||||
 | 
			
		||||
    email_source_paths = ["scripts/setup/inline-email-css", "templates/zerver/emails/email.css"]
 | 
			
		||||
    email_source_paths += glob.glob('templates/zerver/emails/*.source.html')
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ run(['./tools/setup/build_pygments_data'], stdout=fp, stderr=fp)
 | 
			
		||||
run(['./tools/webpack'], stdout=fp, stderr=fp)
 | 
			
		||||
 | 
			
		||||
# Generate /team page markdown for authors
 | 
			
		||||
authors_cmd = ['./tools/update-authors-json']
 | 
			
		||||
authors_cmd = ['./tools/fetch-contributor-data']
 | 
			
		||||
if os.environ.get("TRAVIS"):
 | 
			
		||||
    authors_cmd.append("--use-fixture")
 | 
			
		||||
if args.authors_not_required:
 | 
			
		||||
 
 | 
			
		||||
@@ -340,7 +340,7 @@ class AboutPageTest(ZulipTestCase):
 | 
			
		||||
        if not os.path.exists(static_path('generated/github-contributors.json')):
 | 
			
		||||
            # Copy the fixture file in `zerver/tests/fixtures` to `static/generated`
 | 
			
		||||
            update_script = os.path.join(os.path.dirname(__file__),
 | 
			
		||||
                                         '../../tools/update-authors-json')  # nocoverage
 | 
			
		||||
                                         '../../tools/fetch-contributor-data')  # nocoverage
 | 
			
		||||
            subprocess.check_call([update_script, '--use-fixture'])  # nocoverage
 | 
			
		||||
 | 
			
		||||
    def test_endpoint(self) -> None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user