Skip to content

fix: comment on winget PR correctly #5789

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

Merged
merged 3 commits into from
Jan 21, 2023
Merged

fix: comment on winget PR correctly #5789

merged 3 commits into from
Jan 21, 2023

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Jan 19, 2023

The actual winget publish code worked properly, but the comment to ping @matfiali and I didn't work because of a extraneous backtick.

The automatically created PR for reference: microsoft/winget-pkgs#94220

(I manually commented on the PR using the account from my browser to agree to the CLA)

@deansheather deansheather requested a review from mafredri January 19, 2023 16:23

- name: Comment on PR
if: ${{ !inputs.dry_run }}
run: |
# Find the PR that wingetcreate just made.
$version = "${{ needs.release.outputs.version }}".Trim('v')
$pr_list = gh pr list --repo microsoft/winget-pkgs --search "author:cdrci Coder.Coder version ${version}" --limit 1 --json number | `
Copy link
Member

Choose a reason for hiding this comment

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

Should this backtick at the end be removed too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Backtick is the equivalent of \ at the end of the line in powershell, so this is intentional

@deansheather deansheather enabled auto-merge (squash) January 21, 2023 00:21
@deansheather deansheather merged commit 37628c8 into main Jan 21, 2023
@deansheather deansheather deleted the dean/winget-fix-pt3 branch January 21, 2023 00:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants