Skip to content

Commit

Permalink
Replace usage of COMMITER with COMMITTER (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaac authored and ofalvai committed Jan 3, 2023
1 parent 21b76ae commit b671ff2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ You can also run this step directly with [Bitrise CLI](https://github.com/bitris
<details>
<summary>Outputs</summary>

| Environment Variable | Description |
| --- | --- |
| `GIT_CLONE_COMMIT_HASH` | SHA hash of the checked-out commit. |
| `GIT_CLONE_COMMIT_MESSAGE_SUBJECT` | Commit message of the checked-out commit. |
| `GIT_CLONE_COMMIT_MESSAGE_BODY` | Commit message body of the checked-out commit. |
| `GIT_CLONE_COMMIT_COUNT` | Commit count after checkout. Count will only work properly if no `--depth` option is set. If `--depth` is set then the history truncated to the specified number of commits. Count will **not** fail but will be the clone depth. |
| `GIT_CLONE_COMMIT_AUTHOR_NAME` | Author of the checked-out commit. |
| `GIT_CLONE_COMMIT_AUTHOR_EMAIL` | Email of the checked-out commit. |
| `GIT_CLONE_COMMIT_COMMITER_NAME` | Committer name of the checked-out commit. |
| `GIT_CLONE_COMMIT_COMMITER_EMAIL` | Email of the checked-out commit. |
| Environment Variable | Description |
|------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `GIT_CLONE_COMMIT_HASH` | SHA hash of the checked-out commit. |
| `GIT_CLONE_COMMIT_MESSAGE_SUBJECT` | Commit message of the checked-out commit. |
| `GIT_CLONE_COMMIT_MESSAGE_BODY` | Commit message body of the checked-out commit. |
| `GIT_CLONE_COMMIT_COUNT` | Commit count after checkout. Count will only work properly if no `--depth` option is set. If `--depth` is set then the history truncated to the specified number of commits. Count will **not** fail but will be the clone depth. |
| `GIT_CLONE_COMMIT_AUTHOR_NAME` | Author of the checked-out commit. |
| `GIT_CLONE_COMMIT_AUTHOR_EMAIL` | Email of the checked-out commit. |
| `GIT_CLONE_COMMIT_COMMITTER_NAME` | Committer name of the checked-out commit. |
| `GIT_CLONE_COMMIT_COMMITTER_EMAIL` | Email of the checked-out commit. |
</details>

## 🙋 Contributing
Expand Down
12 changes: 6 additions & 6 deletions e2e/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ workflows:
check "GIT_CLONE_COMMIT_COUNT" "25"
check "GIT_CLONE_COMMIT_AUTHOR_NAME" "Krisztian Dobmayer"
check "GIT_CLONE_COMMIT_AUTHOR_EMAIL" "[email protected]"
check "GIT_CLONE_COMMIT_COMMITER_NAME" "Krisztian Dobmayer"
check "GIT_CLONE_COMMIT_COMMITER_EMAIL" "[email protected]"
check "GIT_CLONE_COMMIT_COMMITTER_NAME" "Krisztian Dobmayer"
check "GIT_CLONE_COMMIT_COMMITTER_EMAIL" "[email protected]"
_check_too_long_message:
steps:
Expand Down Expand Up @@ -548,8 +548,8 @@ workflows:
echo "GIT_CLONE_COMMIT_COUNT: ${GIT_CLONE_COMMIT_COUNT}"
echo "GIT_CLONE_COMMIT_AUTHOR_NAME: ${GIT_CLONE_COMMIT_AUTHOR_NAME}"
echo "GIT_CLONE_COMMIT_AUTHOR_EMAIL: ${GIT_CLONE_COMMIT_AUTHOR_EMAIL}"
echo "GIT_CLONE_COMMIT_COMMITER_NAME: ${GIT_CLONE_COMMIT_COMMITER_NAME}"
echo "GIT_CLONE_COMMIT_COMMITER_EMAIL: ${GIT_CLONE_COMMIT_COMMITER_EMAIL}"
echo "GIT_CLONE_COMMIT_COMMITTER_NAME: ${GIT_CLONE_COMMIT_COMMITTER_NAME}"
echo "GIT_CLONE_COMMIT_COMMITTER_EMAIL: ${GIT_CLONE_COMMIT_COMMITTER_EMAIL}"
_setup:
steps:
Expand Down Expand Up @@ -579,8 +579,8 @@ workflows:
envman unset --key GIT_CLONE_COMMIT_COUNT
envman unset --key GIT_CLONE_COMMIT_AUTHOR_NAME
envman unset --key GIT_CLONE_COMMIT_AUTHOR_EMAIL
envman unset --key GIT_CLONE_COMMIT_COMMITER_NAME
envman unset --key GIT_CLONE_COMMIT_COMMITER_EMAIL
envman unset --key GIT_CLONE_COMMIT_COMMITTER_NAME
envman unset --key GIT_CLONE_COMMIT_COMMITTER_EMAIL
_run:
steps:
Expand Down
4 changes: 2 additions & 2 deletions gitclone/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/bitrise-io/go-utils/v2/command"
)

const outputCommitterName = "GIT_CLONE_COMMIT_COMMITER_NAME"
const outputCommitterEmail = "GIT_CLONE_COMMIT_COMMITER_EMAIL"
const outputCommitterName = "GIT_CLONE_COMMIT_COMMITTER_NAME"
const outputCommitterEmail = "GIT_CLONE_COMMIT_COMMITTER_EMAIL"
const outputCommitCount = "GIT_CLONE_COMMIT_COUNT"

type gitOutput struct {
Expand Down
4 changes: 2 additions & 2 deletions gitclone/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func Test_gitOutputs(t *testing.T) {
gitCmd: gitCmd.Log("%b", "ref/tags/1.0.0"),
},
{
envKey: "GIT_CLONE_COMMIT_COMMITER_NAME",
envKey: "GIT_CLONE_COMMIT_COMMITTER_NAME",
gitCmd: gitCmd.Log("%cn", "ref/tags/1.0.0"),
},
{
envKey: "GIT_CLONE_COMMIT_COMMITER_EMAIL",
envKey: "GIT_CLONE_COMMIT_COMMITTER_EMAIL",
gitCmd: gitCmd.Log("%ce", "ref/tags/1.0.0"),
},
{
Expand Down
4 changes: 2 additions & 2 deletions step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ outputs:
opts:
title: Commit author email
description: Email of the checked-out commit.
- GIT_CLONE_COMMIT_COMMITER_NAME:
- GIT_CLONE_COMMIT_COMMITTER_NAME:
opts:
title: Committer name
description: Committer name of the checked-out commit.
- GIT_CLONE_COMMIT_COMMITER_EMAIL:
- GIT_CLONE_COMMIT_COMMITTER_EMAIL:
opts:
title: Committer email
description: Email of the checked-out commit.

0 comments on commit b671ff2

Please sign in to comment.