Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/github2gerrit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,19 +367,16 @@ jobs:
fi

# Dependabot workaround for LF projects enforcing an "issue-id" in commit message
if [ -n ${{ env.SET_ISSUE_ID }} ]; then
if [[ -n ${{ env.SET_ISSUE_ID }} && '${{ vars.ISSUEID }}' == 'true' ]]; then
# workaround to remove lines with --- or ...
sed -i -e 's#^[ ]*---##g' -e 's#^[ ]*\.\.\.##g' commit-msg.txt
issue_id="Issue-ID: ${{ env.SET_ISSUE_ID }}"
issue_id="${{ env.SET_ISSUE_ID }}"
# shellcheck disable=SC2086
git commit -s -v --no-edit --author "$author" -m "$(cat commit-msg.txt)" -m "$issue_id" -m "$(cat signed-off-by-final.txt)"
else
# shellcheck disable=SC2086
git commit -s -v --no-edit --author "$author" -m "$(cat $commit_message)"
fi

# # shellcheck disable=SC2086
# git commit -s -v --no-edit --author "$author" -m "$(cat $commit_message)"
git log -n1
env:
SET_ISSUE_ID: ${{ env.SET_ISSUE_ID }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Set the following under Organization or repository variables.

## Optional Variables

- `ISSUEID`: Set to `true` to add an `Issue-ID: <ISSUE-NO>` in the commit footer. The variable needs the [`inject-issue-id-action`](https://github.com/lfit/releng-reusable-workflows/tree/main/.github/actions/inject-issue-id-action) action from the releng-reusable-workflows repository.
- `ISSUEID`: Set to `true` to add an `Issue-ID: <ISSUE-NO>` in the commit footer. The variable needs the [`inject-issue-id-action`](https://github.com/lfit/releng-reusable-workflows/tree/main/.github/actions/inject-issue-id-action) action from the releng-reusable-workflows repository. The `inject-issue-id-action` injects the issue-id string into the `env.SET_ISSUE_ID` Github environment variable that is referenced and set into the commit message.

## Optional Inputs

Expand Down