Skip to content

Commit

Permalink
Rename branch "master" to "main"
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Oct 15, 2024
1 parent 9e36920 commit cd5da4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions weechat/download/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def changelog_url(self):
version = self.description if self.version == 'stable' else self.version
if version == 'devel':
# devel version: link to CHANGELOG.md
return repo_link_file(self.project.name, 'master', 'CHANGELOG.md')
return repo_link_file(self.project.name, 'main', 'CHANGELOG.md')
if version_to_list(version) >= [4, 4]:
# version ≥ 4.4.0: link to release on GitHub
return repo_link_release(self.project.name, version)
Expand All @@ -96,7 +96,7 @@ def upgrading_url(self):
version = self.description if self.version == 'stable' else self.version
if version == 'devel':
# devel version: link to UPGRADING.md
return repo_link_file(self.project.name, 'master', 'UPGRADING.md')
return repo_link_file(self.project.name, 'main', 'UPGRADING.md')
if version_to_list(version) >= [4, 4]:
# version ≥ 4.4.0: link to UPGRADING.md of this version
return repo_link_file(self.project.name, f'v{version}', 'UPGRADING.md')
Expand Down
2 changes: 1 addition & 1 deletion weechat/scripts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from weechat.common.i18n import i18n_autogen
from weechat.common.path import files_path_join

REPOSITORY = 'https://github.com/weechat/scripts/blob/master'
REPOSITORY = 'https://github.com/weechat/scripts/blob/main'

SCRIPT_LANGUAGE = {
'python': ('py', 'python'),
Expand Down

0 comments on commit cd5da4d

Please sign in to comment.