-
Notifications
You must be signed in to change notification settings - Fork 6
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: allow the SCM client control the comment format #279
Conversation
Atlas Lint ReportAnalyzed migrations
Migrations automatically reviewed by Atlas |
|
Atlas Lint ReportAnalyzed migrations2
Migrations automatically reviewed by Atlas |
Atlas detected changes to the desired schemaMigration Plan (View on Atlas Cloud)-- Create "t1" table
CREATE TABLE `t1` (
`c1` integer NOT NULL
);
-- Create "t2" table
CREATE TABLE `t2` (
`c1` integer NOT NULL
);
-- Create "t3" table
CREATE TABLE `t3` (
`c1` integer NOT NULL,
`c2` integer NOT NULL
); Atlas lint results
📝 Steps to edit this migration plan1. Run the following command to pull the generated plan to your local workstation: atlas schema plan pull --url "atlas://atlas-action/plans/pr-272-R1cGcSfo" > pr-272-R1cGcSfo.plan.hcl 2. Open 3. Push the updated plan to the registry using the following command: atlas schema plan push --pending --file pr-272-R1cGcSfo.plan.hcl |
@@ -24,7 +24,7 @@ the database with the desired state. Otherwise, Atlas will report a schema drift | |||
|
|||
3\. Push the updated plan to the registry using the following command: | |||
```bash | |||
atlas schema plan push --pending --env {{ .EnvName }} --file {{ .Plan.File.Name }}.plan.hcl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env
isn't require input. So, it empty if the user provides flags via inputs.
3b61557
to
c3fec19
Compare
default: | ||
return nil, ErrNoSCM // Not implemented yet. | ||
} | ||
} | ||
|
||
// addChecks runs annotations to the trigger event pull request for the given payload. | ||
func (a *Actions) addChecks(lint *atlasexec.SummaryReport) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you removing this functionality?
can you move it to github SCM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to the ghActions
. Because Checks
are GH's specific implement.
@@ -125,6 +130,42 @@ func (a *ghAction) WithFieldsMap(m map[string]string) Logger { | |||
return &ghAction{a.Action.WithFieldsMap(m)} | |||
} | |||
|
|||
// addChecks runs annotations to the trigger event pull request for the given payload. | |||
func (a *ghAction) addChecks(lint *atlasexec.SummaryReport) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ronenlu here is it.
No description provided.