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

RELTEC-12278: support raw approvers/watchers #360

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

KRaffael
Copy link
Contributor

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Checklist

  • I have read the CONTRIBUTING.md
  • I have made corresponding changes to the documentation
  • My changes generate no lint errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • Only MIT licensed or MIT license compatible dependencies are used (e.g.: Apache2 or BSD)
  • The code contains no credentials, personalized data or company secrets

tstollin
tstollin previously approved these changes Nov 22, 2024
func (s *Impl) copyStringList(list []string) []string {
if len(list) > 0 {
copyList := []string{}
for _, approver := range list {
Copy link
Contributor

Choose a reason for hiding this comment

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

Funktioniert builtin copy() nicht für strings?
Also einfach:
copyList := make([]string, len(list))
copy(copyList, list)

@KRaffael KRaffael force-pushed the RELTEC-12278-support-github-ssh-urls branch from af935b0 to 882b78c Compare November 22, 2024 07:51
@KRaffael KRaffael merged commit 86b5e65 into main Nov 22, 2024
2 checks passed
@KRaffael KRaffael deleted the RELTEC-12278-support-github-ssh-urls branch December 19, 2024 07:08
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.

3 participants