Skip to content

Can you collect and display multiple commit message? #499

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
NaturAlex opened this issue Jun 18, 2020 · 2 comments
Closed

Can you collect and display multiple commit message? #499

NaturAlex opened this issue Jun 18, 2020 · 2 comments

Comments

@NaturAlex
Copy link

The latest commit information is not enough.
When there are more than ten developments in my project, check whether the code has been submitted.

@TheSnoozer
Copy link
Collaborator

Hello, thank you for creating this issue.

Yes that is possible.
For a multiple execution see the example outlined in:
#137 (comment)

For an evaluation on different commits refer to the evaluateOnCommit-setting outlined in the docs.

A full config might look like the following:

<!-- GIT COMMIT ID PLUGIN CONFIGURATION -->
<plugin>
	<groupId>pl.project13.maven</groupId>
	<artifactId>git-commit-id-plugin</artifactId>
	<version>4.0.0</version>
	<executions>
		<execution>
			<phase>initialize</phase>
			<id>get-the-git-infos-for-repository-one</id>
			<goals>
				<goal>revision</goal>
			</goals>
			<configuration>
                                <prefix>git1</prefix>
                                <evaluateOnCommit>HEAD</evaluateOnCommit>
				<generateGitPropertiesFilename>${project.build.outputDirectory}/eval_one_git.properties</generateGitPropertiesFilename>
			</configuration>
		</execution>
		<execution>
			<phase>initialize</phase>
			<id>get-the-git-infos-for-repository-two</id>
			<goals>
				<goal>revision</goal>
			</goals>
			<configuration>
                                <prefix>git2</prefix>
                                <evaluateOnCommit>HEAD~1</evaluateOnCommit>
				<generateGitPropertiesFilename>${project.build.outputDirectory}/eval_two_git.properties</generateGitPropertiesFilename>
			</configuration>
		</execution>
	</executions>
	<configuration>
		<verbose>false</verbose>
		<skipPoms>false</skipPoms>
		<generateGitPropertiesFile>true</generateGitPropertiesFile>
	</configuration>
</plugin>

@TheSnoozer
Copy link
Collaborator

Closing as answered feel free to reopen if something is not clear.

@TheSnoozer TheSnoozer added this to the 4.0.1 milestone Jul 14, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants