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

fix: properly attribute the github-actions[bot] as a commit author #108

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

kormide
Copy link
Collaborator

@kormide kormide commented Jan 2, 2024

When the release author is the github-actions[bot] and a fixedReleaser isn't set, the author of the commit in the BCR PR doesn't render well. Example: bazelbuild/bazel-central-registry@0518819.

The properly sets the correct author info for the bot for GitHub to render it correctly.

Closes #82.

@kormide kormide requested review from alexeagle and cgrindel January 2, 2024 04:26
@@ -202,7 +202,7 @@ export class FakeGitHub implements StubbedServer {
const pattern = /\/users\/([^/]+)\/repos/;
await this.server.forGet(pattern).thenCallback((request) => {
const match = request.path.match(pattern);
const owner = match![1];
const owner = decodeURIComponent(match![1]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The square brackets in github-actions[bot] need to be decoded when it's sent in the url path.

@kormide kormide merged commit 2decffc into main Jan 2, 2024
3 checks passed
@kormide kormide deleted the bot-author branch January 2, 2024 18:20
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.

Commit author is null when github-actions bot is the release author
2 participants