Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions easybuild/tools/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def create_gist(txt, fn, descr=None, github_user=None, github_token=None):
}

if dry_run:
status, data = HTTP_STATUS_CREATED, {'html_url': 'https://gist.github.com/DRY_RUN'}
status, data = HTTP_STATUS_CREATED, {'html_url': 'https://gist.github.com/username/DRY_RUN'}
else:
g = RestClient(GITHUB_API_URL, username=github_user, token=github_token)
status, data = g.gists.post(body=body)
Expand Down Expand Up @@ -2126,7 +2126,7 @@ def check_github():
except Exception as err:
_log.warning("Exception occurred when trying to create & delete gist: %s", err)

if gist_url and re.match('https://gist.github.com/[0-9a-f]+$', gist_url):
if gist_url and re.match('https://gist.github.com/%s/[0-9a-f]+$' % github_user, gist_url):
check_res = "OK"
else:
check_res = "FAIL (gist_url: %s)" % gist_url
Expand Down
2 changes: 1 addition & 1 deletion test/framework/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def test_github_pr_test_report(self):

patterns = [
r"^\[DRY RUN\] Adding comment to easybuild-easyconfigs issue #1234: 'Test report by @easybuild_test",
r"^See https://gist.github.com/DRY_RUN for a full test report.'",
r"^See https://gist.github.com/username/DRY_RUN for a full test report.'",
]
for pattern in patterns:
regex = re.compile(pattern, re.M)
Expand Down