Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
fix: github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
profclems authored Jan 9, 2021
1 parent cf61111 commit 9138515
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gitlab-issues-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ jobs:
description=$(echo $i | jq -r '.description')
weburl=$(echo $i | jq -r '.web_url')
updatedAt=$(echo $i | jq -r '.updated_at')
author=$(echo $i | jq -r '.author."username"')
authorURL=$(echo $i | jq -r '.author."web_url"')
body=$(< .github/gitlab_issue_tpl.md)
body=${body//"[author]"/"profclems"}
body=${body//"[authorURL]"/"gitlab.com"}
body=${body//"[author]"/"$author"}
body=${body//"[authorURL]"/"$authorURL"}
body=${body//"[updatedAt]"/"$updatedAt"}
body=${body//"[GitLabIssueURL]"/"$weburl"}
body=${body//"[description]"/"$description"}
issueMsg=$(gh issue create -t "$title" -b "$body"
issueMsg=$(gh issue create -t "$title" -b "$body")
glab issue note ${id} -m "This issue has been moved to GitHub. Follow this issue on GitHub at ${issueMsg}"
glab issue update ${id} --unlabel "gh-new" -l "gh-cloned"
done

0 comments on commit 9138515

Please sign in to comment.