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

PRT comment adding using curl more standard way #12521

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

omkarkhatavkar
Copy link

@omkarkhatavkar omkarkhatavkar commented Sep 7, 2023

Moving away from github action to standard curl for handing the PRT comment

@omkarkhatavkar omkarkhatavkar requested a review from a team as a code owner September 7, 2023 08:34
@omkarkhatavkar omkarkhatavkar added CherryPick PR needs CherryPick to previous branches 6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 labels Sep 7, 2023
Copy link
Member

@jyejare jyejare left a comment

Choose a reason for hiding this comment

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

ACK ! But has got some question !

repo-token: ${{ secrets.CHERRYPICK_PAT }}
run: |
ISSUE_NUMBER=${{ steps.cherrypick.outputs.number }}
GITHUB_TOKEN="${{ secrets.CHERRYPICK_PAT }}"
Copy link
Member

Choose a reason for hiding this comment

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

Not sure! But this must be overriding the default GITHUB_TOKEN comes from Github, if not or anyways its good to rename it just to avoid the confusion !

Copy link
Collaborator

Choose a reason for hiding this comment

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

@omkarkhatavkar Can you check this and update PR accordingly?

Copy link
Author

@omkarkhatavkar omkarkhatavkar Oct 21, 2023

Choose a reason for hiding this comment

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

@jyejare , @Gauravtalreja1 Yes, we are passing the "${{ secrets.CHERRYPICK_PAT }}" our own Satellie_user token, you know it why we need that if we use the GITHUB_TOKEN then the PR would have a comment from the GitHubAction user, while we are using Satellite user everywhere.

Copy link
Member

Choose a reason for hiding this comment

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

@omkarkhatavkar I got that! I just wanted to reiterate that we could have named the GITHUB_TOKEN env var to something else for CHERRYPICK_PAT, cause this will actually override the GITHUB_TOKEN which in the feature you might want to use in this GHA.

I mean is the naming of env var here deliberate?

Copy link
Author

Choose a reason for hiding this comment

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

I can directly pass the CHERRYPICK_PAT instead the variable as well. If that work for you ?

Copy link
Member

Choose a reason for hiding this comment

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

Sure! Use it directly :)

Copy link
Author

@omkarkhatavkar omkarkhatavkar Oct 30, 2023

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Sure!

@jyejare jyejare merged commit 4163609 into SatelliteQE:master Nov 2, 2023
5 checks passed
shweta83 pushed a commit to shweta83/robottelo that referenced this pull request Apr 10, 2024
PRT comment adding using curl more standtard way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants