Data Source: oci_devops_repository_commits
This data source provides the list of Repository Commits in Oracle Cloud Infrastructure Devops service.
Returns a list of commits.
Example Usage
data "oci_devops_repository_commits" "test_repository_commits" {
	#Required
	repository_id = oci_devops_repository.test_repository.id
	#Optional
	author_name = var.repository_commit_author_name
	commit_message = var.repository_commit_commit_message
	exclude_ref_name = var.repository_commit_exclude_ref_name
	file_path = var.repository_commit_file_path
	ref_name = var.repository_commit_ref_name
	timestamp_greater_than_or_equal_to = var.repository_commit_timestamp_greater_than_or_equal_to
	timestamp_less_than_or_equal_to = var.repository_commit_timestamp_less_than_or_equal_to
}
Argument Reference
The following arguments are supported:
- author_name- (Optional) A filter to return any commits that are pushed by the requested author.
- commit_message- (Optional) A filter to return any commits that contains the given message.
- exclude_ref_name- (Optional) A filter to exclude commits that match the given reference name.
- file_path- (Optional) A filter to return only commits that affect any of the specified paths.
- ref_name- (Optional) A filter to return only resources that match the given reference name.
- repository_id- (Required) Unique repository identifier.
- timestamp_greater_than_or_equal_to- (Optional) A filter to return commits only created after the specified timestamp value.
- timestamp_less_than_or_equal_to- (Optional) A filter to return commits only created before the specified timestamp value.
Attributes Reference
The following attributes are exported:
- repository_commit_collection- The list of repository_commit_collection.
RepositoryCommit Reference
The following attributes are exported:
- author_email- Email of the author of the repository.
- author_name- Name of the author of the repository.
- commit_id- Commit hash pointed to by reference name.
- commit_message- The commit message.
- committer_email- Email of who creates the commit.
- committer_name- Name of who creates the commit.
- parent_commit_ids- An array of parent commit IDs of created commit.
- time_created- The time at which commit was created.
- tree_id- Tree information for the specified commit.