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 not sending url in conext #136

Merged
merged 3 commits into from
Feb 29, 2024
Merged

fix not sending url in conext #136

merged 3 commits into from
Feb 29, 2024

Conversation

ronenlu
Copy link
Member

@ronenlu ronenlu commented Feb 29, 2024

currently we dont send anything in the url field of the atlas context,
since we use head_commit_url field which is always empty:
Screen Shot 2024-02-29 at 17 23 54

Copy link

Atlas Lint Report

Analyzed migrations

StatusStepResultDiagnostics
Detect New Migration FilesFound 0 new migration files (from 0 total)
Replay Migration FilesLoaded 0 changes on dev database
Connect your project to Atlas Cloud to get more safety checks

Migrations automatically reviewed by Atlas

Copy link

Atlas Lint Report

Analyzed migrations2

StatusStepResultDiagnostics
Detect New Migration FilesFound 0 new migration files (from 0 total)
Replay Migration FilesLoaded 0 changes on dev database
Connect your project to Atlas Cloud to get more safety checks

Migrations automatically reviewed by Atlas

Copy link

github-actions bot commented Feb 29, 2024

atlas migrate lint on atlasaction/testdata/migrations

Status Step Link
1 new migration file detected  
ERD and Visual Diff generated View Visualization
No issues found Full Report

Migrations automatically reviewed with Atlas

Copy link

github-actions bot commented Feb 29, 2024

atlas migrate lint on atlasaction/testdata/migrations_destructive

Status Step Link
1 new migration file detected  
ERD and Visual Diff generated View Visualization
1 error found Full Report

Migrations automatically reviewed with Atlas

@ronenlu ronenlu force-pushed the head_url branch 3 times, most recently from 48aa2eb to ce8b02e Compare February 29, 2024 15:22
@ronenlu ronenlu changed the title Head url fix not sending url Feb 29, 2024
@@ -596,28 +596,33 @@ func createRunContext(ctx context.Context, act *githubactions.Action) (*atlasexe
if err := envconfig.Process(ctx, &a); err != nil {
return nil, fmt.Errorf("failed to load actor: %w", err)
}
url := ev.PullRequest.URL
Copy link
Member Author

@ronenlu ronenlu Feb 29, 2024

Choose a reason for hiding this comment

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

this logic is taken from the old action:

Screen Shot 2024-02-29 at 17 25 34

@ronenlu ronenlu requested review from dorav, a8m and giautm February 29, 2024 15:43
@ronenlu ronenlu changed the title fix not sending url fix not sending url in conext Feb 29, 2024
@ronenlu ronenlu merged commit 2dd208e into master Feb 29, 2024
7 checks passed
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.

None yet

2 participants