Skip to content

fix: Parse title including owner#39

Merged
BYK merged 2 commits into
mainfrom
fix/parse-title
Jan 7, 2021
Merged

fix: Parse title including owner#39
BYK merged 2 commits into
mainfrom
fix/parse-title

Conversation

@jan-auer

@jan-auer jan-auer commented Jan 7, 2021

Copy link
Copy Markdown
Member

In getsentry/action-prepare-release#4, we unintentionally changed the format of the issue title.

  • Before: publish: <repo>@<version>
  • After: publish: <owner>/<repo>@<version>

This is because the GITHUB_REPOSITORY env variable includes the full owner and repo name. There is also an GITHUB_REPOSITORY_OWNER variable, but none that only contains the repo name. This means we have two options:

  1. In the prepare action, remove the owner from the repo.
  2. In the publish action, assume there's an optional owner.

In this PR, I'm going with option 2, although it is not backwards compatible. This means we will have to change all existing actions before attempting the next release.

@jan-auer jan-auer requested a review from BYK January 7, 2021 08:35
@jan-auer jan-auer self-assigned this Jan 7, 2021
@jan-auer

jan-auer commented Jan 7, 2021

Copy link
Copy Markdown
Member Author

We could parse the owner as optional component, too. I would rather not do this, since we will remove all legacy actions very soon and it just increases complexity of the regex.

@jan-auer

jan-auer commented Jan 7, 2021

Copy link
Copy Markdown
Member Author

Thanks, updates LGTM.

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Got @jan-auer's approval for the changes I pushed too.

@BYK BYK merged commit 67dcace into main Jan 7, 2021
@BYK BYK deleted the fix/parse-title branch January 7, 2021 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants