mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add commit info in action page (#23210)
Add more commit info in action detail page. 
This commit is contained in:
		@@ -13,6 +13,15 @@
 | 
			
		||||
          <i class="stop circle outline icon"/>
 | 
			
		||||
        </button>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="action-commit-summary">
 | 
			
		||||
        {{ run.commit.localeCommit }}
 | 
			
		||||
        <a :href="run.commit.link">{{ run.commit.shortSHA }}</a>
 | 
			
		||||
         <span class="ui label">
 | 
			
		||||
          <a :href="run.commit.branch.link">{{ run.commit.branch.name }}</a>
 | 
			
		||||
        </span>
 | 
			
		||||
         {{ run.commit.localePushedBy }}
 | 
			
		||||
        <a :href="run.commit.pusher.link">{{ run.commit.pusher.displayName }}</a>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="action-view-body">
 | 
			
		||||
      <div class="action-view-left">
 | 
			
		||||
@@ -105,6 +114,20 @@ const sfc = {
 | 
			
		||||
          //   canRerun: false,
 | 
			
		||||
          // },
 | 
			
		||||
        ],
 | 
			
		||||
        commit: {
 | 
			
		||||
          localeCommit: '',
 | 
			
		||||
          localePushedBy: '',
 | 
			
		||||
          shortSHA: '',
 | 
			
		||||
          link: '',
 | 
			
		||||
          pusher: {
 | 
			
		||||
            displayName: '',
 | 
			
		||||
            link: '',
 | 
			
		||||
          },
 | 
			
		||||
          branch: {
 | 
			
		||||
            name: '',
 | 
			
		||||
            link: '',
 | 
			
		||||
          },
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      currentJob: {
 | 
			
		||||
        title: '',
 | 
			
		||||
@@ -332,6 +355,10 @@ export function initRepositoryActionView() {
 | 
			
		||||
  padding: 0 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.action-commit-summary {
 | 
			
		||||
  padding: 10px 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* ================ */
 | 
			
		||||
/* action view left */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user