Skip to content

Commit

Permalink
Merge pull request #82 from Clever/update-status-with-remote
Browse files Browse the repository at this point in the history
Update status with remote.. follow-up nits
  • Loading branch information
nathanleiby authored May 15, 2021
2 parents b3a7e54 + b6f2e98 commit f9d9392
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ release/
# microplane init creates files in the mp/ dir
# let's ignore this so we don't accidentally commit debug runs to the mp repo
mp/

# text editor files
./vscode
25 changes: 0 additions & 25 deletions .vscode/launch.json

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# changelog

2021-05-14 - v0.0.30

- Fixes - `mp sync` bug in Gitlab, due to ID vs IID

2021-05-14 - v0.0.29

- Adds - Command `mp sync` to sync local status with remote status [#81](https://github.com/Clever/microplane/pull/81)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.29
0.0.30
15 changes: 15 additions & 0 deletions integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,29 @@ echo "$owner/2" >> $tmpfile
./bin/mp init --provider $provider -f $tmpfile
rm $tmpfile

echo ""
echo "[Clone]"
./bin/mp clone
ts=`date +"%T"`

./bin/mp status
./bin/mp sync

echo ""
echo "[Plan]"
./bin/mp plan -b plan -m "plan" -- sh -c "echo $ts >> README.md"

./bin/mp status
./bin/mp sync

echo ""
echo "[Push]"
./bin/mp push --throttle 2s -a nathanleiby

./bin/mp status
./bin/mp sync

echo ""
echo "[Merge]"
cmd='./bin/mp merge --throttle 2s --ignore-build-status --ignore-review-approval'
duration=10
Expand All @@ -71,3 +83,6 @@ until $cmd; do
sleep $duration
done

echo ""
./bin/mp status
./bin/mp sync
2 changes: 1 addition & 1 deletion push/pushGitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func GitlabPush(ctx context.Context, input Input, repoLimiter *time.Ticker, push
return Output{
Success: true,
CommitSHA: pr.SHA,
PullRequestNumber: pr.ID,
PullRequestNumber: pr.IID,
PullRequestURL: pr.WebURL,
PullRequestCombinedStatus: pipelineStatus,
PullRequestAssignee: input.PRAssignee,
Expand Down

0 comments on commit f9d9392

Please sign in to comment.