Skip to content

Comments

Replaces the changelog in the SCB-Bot PRs with a link to release#860

Merged
J12934 merged 9 commits intomainfrom
bugfix/fix-scb-changelog
Dec 7, 2021
Merged

Replaces the changelog in the SCB-Bot PRs with a link to release#860
J12934 merged 9 commits intomainfrom
bugfix/fix-scb-changelog

Conversation

@Ilyesbdlala
Copy link
Member

@Ilyesbdlala Ilyesbdlala commented Dec 7, 2021

This PR solves the bug here where the changelog is wrongly substituted. Instead we just include the link to remote release.
PoC: #861

Description

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure npm test runs for the whole project.
  • Make codeclimate checks happy

Also added on push trigger and commented out sections for testing

Signed-off-by: Ilyes Ben Dlala <[email protected]>
Signed-off-by: Ilyes Ben Dlala <[email protected]>
Github releases sometimes have a "v" character in the beginning
and sometimes not

Signed-off-by: Ilyes Ben Dlala <[email protected]>
This was only added for testing

Signed-off-by: Ilyes Ben Dlala <[email protected]>
This is done to fix the codeclimate failure

Signed-off-by: Ilyes Ben Dlala <[email protected]>
@Ilyesbdlala Ilyesbdlala requested a review from J12934 December 7, 2021 11:36
run: |
changelog=$(curl -sL ${{env.versionApi}} | jq -r ".body")
echo 'releaseChangelog=$changelog' >> $GITHUB_ENV
changelog=$(echo ${{env.versionApi}} | sed -e 's/api.//g;s/\/repos//g;s/latest//g')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment (maybe with an example) on what this replace looks like?
Had some problems properly understanding what this is doing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Explains how the formating of the release link works

Signed-off-by: Ilyes Ben Dlala <[email protected]>
@Ilyesbdlala Ilyesbdlala requested a review from J12934 December 7, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants