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

atlasaction: enrich run ctx with actor name and id #135

Merged
merged 2 commits into from
Feb 29, 2024
Merged

atlasaction: enrich run ctx with actor name and id #135

merged 2 commits into from
Feb 29, 2024

Conversation

ronenlu
Copy link
Member

@ronenlu ronenlu commented Feb 28, 2024

image

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 28, 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 28, 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

@@ -585,12 +592,19 @@ func createRunContext(act *githubactions.Action) (*atlasexec.RunContext, error)
if branch == "" {
branch = ghContext.RefName
}
var a Actor
if err := envconfig.Process(ctx, &a); err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

I have to do the parsing manually, because the GO SDK doesn't support the ACTOR_ID var:
image

@ronenlu ronenlu requested review from a8m and giautm February 28, 2024 11:41
@a8m a8m changed the title atlasaction: enrich run ctx with user name and id atlasaction: enrich run ctx with actor name and id Feb 28, 2024
@a8m
Copy link
Member

a8m commented Feb 28, 2024

cc @giautm for review.

@ronenlu ronenlu merged commit bfd8a66 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

3 participants