debian-mirror-gitlab/app/assets/javascripts/projects/commit_box/info/index.js

22 lines
688 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
import { fetchCommitMergeRequests } from '~/commit_merge_requests';
import MiniPipelineGraph from '~/mini_pipeline_graph_dropdown';
2021-03-11 19:13:27 +05:30
import { initDetailsButton } from './init_details_button';
import { loadBranches } from './load_branches';
2021-01-03 14:25:43 +05:30
export const initCommitBoxInfo = (containerSelector = '.js-commit-box-info') => {
const containerEl = document.querySelector(containerSelector);
// Display commit related branches
loadBranches(containerEl);
// Related merge requests to this commit
fetchCommitMergeRequests();
// Display pipeline info for this commit
new MiniPipelineGraph({
container: '.js-commit-pipeline-graph',
}).bindEvents();
2021-01-29 00:20:46 +05:30
initDetailsButton();
2021-01-03 14:25:43 +05:30
};