Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

autogenerated-apimanagementapidiagnostic #87

Merged
merged 18 commits into from
Aug 6, 2019

Conversation

zikalino
Copy link

No description provided.

@metacpp metacpp added the P0 P0 work items label Aug 4, 2019
Copy link
Contributor

@metacpp metacpp left a comment

Choose a reason for hiding this comment

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

@houkms Please address the comments.

@@ -4,7 +4,7 @@ cd `dirname $0`
for file in `ls ./specs`; do
work_dir=./specs/$file
if [ -d $work_dir ]; then
if [ -n "$(git status -s $work_dir)" ];
if [ -n "$(git diff --name-only remotes/origin/master remotes/origin/$source_branch -- $work_dir)" ];
Copy link
Contributor

Choose a reason for hiding this comment

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

What if we need to run it in local environment ? Can we add a fallback logic ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add the fallback logic in script.

  • We can run make build SOURCE_BRANCH=branchname, to generate codes for new added/modified resources in local branch
  • If SOURCE_BRANCH is not set, it uses current branch as default, and generates codes for new added/modified resources in current branch
  • For uncommitted changes, just uses make build RESOURCE=resourcename as before

@@ -79,6 +79,7 @@ steps:
failOnStderr: true

- bash: |
export source_branch=$(System.PullRequest.SourceBranch)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would recommend pass the source_branch as argument to Makefile instead of using environment variable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK. Now the source_branch is passed as argument.

@houkms
Copy link
Collaborator

houkms commented Aug 6, 2019

Codes are modified according to the comments.

Copy link
Contributor

@metacpp metacpp left a comment

Choose a reason for hiding this comment

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

LGTM

@metacpp metacpp merged commit 0994eba into master Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P0 P0 work items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants