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

The commit author in the Wiki repository is appearing as "undefined". #1849

Closed
alexfdealmeida opened this issue Apr 3, 2024 · 2 comments · Fixed by #1850
Closed

The commit author in the Wiki repository is appearing as "undefined". #1849

alexfdealmeida opened this issue Apr 3, 2024 · 2 comments · Fixed by #1850

Comments

@alexfdealmeida
Copy link

Azure DevOps Extensions

WIKI Updater

Platform

Azure DevOps Services

Azure DevOps Server (TFS) Version

No response

Extension Version

3.21.11

Describe the bug

The username set in the "gitname" property is not being correctly set for the ".git/config" file. In other words, after running the "git config --local -l" command in the Wiki repository, it appears as "user.name=undefined". Regarding the "gitemail" property, it is working correctly.

Repo Steps

Set up and run a pipeline in Azure DevOps.

      - task: WikiUpdaterTask@3
        name: publishProjectWiki
        displayName: 'Publish Project Wiki'
        condition: and(eq(canceled(), false), succeeded())
        inputs:
          repo: 'dev.azure.com/grupo-siagri/simer/_git/$(repoWikiName)'
          branch: '$(wikiBranchName)'
          localpath: '$(repoWikiPath)'
          filename: '$(releaseNotesWikiPath)/$(releaseNotesWikiName)'
          replaceFile: true
          dataIsFile: true
          sourceFile: '$(Build.SourcesDirectory)/ReleaseNotes.md'
          updateOrderFile: true
          prependEntryToOrderFile: true
          orderFilePath: '$(releaseNotesWikiPath)'
          message: 'Branch: $(wikiBranchName); Release Notes updated by Azure DevOps Pipeline: $(releaseNotesWikiNameCommitMsg)'
          gitname: '$(gitUserName)'
          gitemail: '$(gitUserEmail)'
          useAgentToken: true

Expected Behavior

After committing to the Wiki repository, it should be defined with the author set in the 'gitname' property.

Logging Information

Pipeline:
image

.git/config:
image

commit:
image

@rfennell
Copy link
Owner

rfennell commented Apr 4, 2024

I have a repo for that, looks like it has been an bug since day 1, it is a naming clash between a local variable and a parameter

I will get a fix out ASAP

@rfennell
Copy link
Owner

rfennell commented Apr 4, 2024

Being shipped as 3.22.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants