Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[misc] adds script for exporting posts from discourse to github issues #14518

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

wip

71e33a3
Select commit
Loading
Failed to load commit list.
Open

[misc] adds script for exporting posts from discourse to github issues #14518

wip
71e33a3
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Aug 23, 2024 in 0s

9 new issues (0 max.) of at least minor severity.

Annotations

Check failure on line 72 in discourse-export-script/discourse_download.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/discourse_download.py#L72

Method '_starttag_handler' should have "self" as first argument

Check warning on line 193 in discourse-export-script/discourse_download.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/discourse_download.py#L193

Unused variable 'topic_id'

Check warning on line 200 in discourse-export-script/discourse_download.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/discourse_download.py#L200

Using open without explicitly specifying an encoding

Check warning on line 27 in discourse-export-script/github_upload.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/github_upload.py#L27

Using open without explicitly specifying an encoding

Check notice on line 31 in discourse-export-script/github_upload.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/github_upload.py#L31

Consider using a set comprehension

Check notice on line 31 in discourse-export-script/github_upload.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/github_upload.py#L31

Unnecessary use of a comprehension, use list(findall(f'{POST_LINK_ID}/([A-Za-z0-9\\-]*?)\\\\"', file.read())) instead.

Check warning on line 44 in discourse-export-script/github_upload.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/github_upload.py#L44

Using open without explicitly specifying an encoding

Check warning on line 50 in discourse-export-script/github_upload.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/github_upload.py#L50

Using open without explicitly specifying an encoding

Check warning on line 54 in discourse-export-script/github_upload.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

discourse-export-script/github_upload.py#L54

Using open without explicitly specifying an encoding