Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release repository argument #975

Merged
merged 3 commits into from
Feb 5, 2024
Merged

Conversation

bjoernricks
Copy link
Contributor

What

Allow to pass --repository instead of --space and --project to pontos-release create and sign.

Why

GitHub nearly always passes an "owner/name" combination for identifying the repository. Therefore we should support this pattern too. For example this is the only way to get the repo in an action from ${{ github.repository }} via the github context

Checklist

  • Tests

Don't maintain the return values by hand and instead use auto.
GitHub always uses the owner/name combination for defining the
repository. Therefore add a function that converts this repository into
a owner name (space project) tuple.
GitHub always uses the owner/name combination for identifying a
repository. Therefore we should allow passing this as input for creating
and signing releases.
@bjoernricks bjoernricks requested a review from a team as a code owner February 5, 2024 09:07
@bjoernricks bjoernricks enabled auto-merge (rebase) February 5, 2024 09:07
Copy link

github-actions bot commented Feb 5, 2024

Conventional Commits Report

Type Number
Added 2
Changed 1

🚀 Conventional commits found.

Copy link
Member

@y0urself y0urself left a comment

Choose a reason for hiding this comment

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

I would suggest to replace space with owner, so it is aligned everywhere ... now it's mixed up ...

@bjoernricks
Copy link
Contributor Author

I would suggest to replace space with owner, so it is aligned everywhere ... now it's mixed up ...

Of course we can do that. Personally I would love to get rid of space/owner and project completely and replaces all with repository. But this should go into another PR.

@bjoernricks bjoernricks requested a review from y0urself February 5, 2024 09:22
@y0urself
Copy link
Member

y0urself commented Feb 5, 2024

I would suggest to replace space with owner, so it is aligned everywhere ... now it's mixed up ...

Of course we can do that. Personally I would love to get rid of space/owner and project completely and replaces all with repository. But this should go into another PR.

I thought you will leave it for compatibility reasons ...

@bjoernricks bjoernricks merged commit 2ed58cb into main Feb 5, 2024
18 of 19 checks passed
@bjoernricks bjoernricks deleted the release-repository-argument branch February 5, 2024 09:42
@bjoernricks
Copy link
Contributor Author

I thought you will leave it for compatibility reasons ...

Maybe we just drop it after the actions and workflow are adjusted.

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