write some bash command that I can run on CI that do the following: - retrieve the…
- User
write some bash command that I can run on CI that do the following:
- retrieve the description from the last commit (just the summary line, not the detailed description)
- create a tag. The tag value is already determined by my script and is $my_tag. The tag description should be: "New release. Last commit was: "
Assistant
Here are two possible bash commands that you can run on CI to achieve your goal:
# Get the description from the last commit last_commit_description=$(git log -1 --pretty=%B) # Create a tag with the given value and description git tag -a "$my_tag" -m "New release. Last commit was: $last_commit_description"
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.