GitHub Action Bot 冷知識

讓 GitHub Actions Bot 的 Commit 變成 Verified 今天才知道,原來 GitHub Actions 自動 commit 的時候,是可以讓那個 commit 顯示 verified 標籤的。 關鍵就是把 git 的 user email 設成 GitHub Actions bot 專屬的 email: git config user.name "github-a...

By · · 1 min read
GitHub Action Bot 冷知識

Source: DEV Community

讓 GitHub Actions Bot 的 Commit 變成 Verified 今天才知道,原來 GitHub Actions 自動 commit 的時候,是可以讓那個 commit 顯示 verified 標籤的。 關鍵就是把 git 的 user email 設成 GitHub Actions bot 專屬的 email: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" 設完之後正常 commit 就好,GitHub 會自動認得這是它家的 bot,直接幫你掛上 verified。 建立 PR 也適用 如果你跟我一樣,除了 commit 還需要 action 自動開 PR,一樣可以用這組 email。像我是用 peter-evans/create-pull-request 這個 action: - name: Create Pull Request uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.GITHUB_TOKEN }} committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 那個 41898282 是什麼? 這串數字是 GitHub Actions bot 的 user ID。每個 bot 帳號都有自己的 ID,email 格式就是 {id}+{username}@users.noreply.github.com。 這個 ID 看起來沒有公開的官方文件記錄,不過可以直接用 GitHub API 查: # GitHub Actions bot curl -s https://api.github.com/users/github-actions%5Bbot%5D | grep

Related Posts

Similar Topics

#developer skills (253)#github actions (40)#features (30)#ai (25)#research (25)#python (16)#automation (16)#machine learning (15)#software development (14)#data science (9)#software engineering (7)#education (7)#ci/cd (13)#codespaces (13)#github copilot (13)#blackgirlbytes (12)#codeql (11)#github issues (9)#ladykerr (9)#forks (9)

Trending on ShareHub

  1. Understanding Modern JavaScript Frameworks in 2026
    by Alex Chen · Feb 12, 2026 · 0 likes
  2. The System Design Primer
    by Sarah Kim · Feb 12, 2026 · 0 likes
  3. Just shipped my first open-source project!
    by Alex Chen · Feb 12, 2026 · 0 likes
  4. OpenAI Blog
    by Sarah Kim · Feb 12, 2026 · 0 likes
  5. Building Accessible Web Applications: A Practical Guide
    by Alex Chen · Feb 12, 2026 · 0 likes
  6. Rapper Lil Poppa dead at 25, days after releasing new music
    Rapper Lil Poppa dead at 25, days after releasing new music
    by Anonymous User · Feb 19, 2026 · 0 likes
  7. write-for-us
    by Volt Raven · Mar 7, 2026 · 0 likes
  8. Before the Coffee Gets Cold: Heartfelt Story of Time Travel and Second Chances
    Before the Coffee Gets Cold: Heartfelt Story of Time Travel and Second Chances
    by Anonymous User · Feb 12, 2026 · 0 likes
    #coffee gets cold #the #time travel
  9. Best DoorDash Promo Code Reddit Finds for Top Discounts
    Best DoorDash Promo Code Reddit Finds for Top Discounts
    by Anonymous User · Feb 12, 2026 · 0 likes
    #doordash #promo #reddit
  10. Premium SEO Services That Boost Rankings & Revenue | VirtualSEO.Expert
    by Anonymous User · Feb 12, 2026 · 0 likes
  11. NBC under fire for commentary about Team USA women's hockey team
    NBC under fire for commentary about Team USA women's hockey team
    by Anonymous User · Feb 18, 2026 · 0 likes
  12. Where to Watch The Nanny: Streaming and Online Viewing Options
    Where to Watch The Nanny: Streaming and Online Viewing Options
    by Anonymous User · Feb 12, 2026 · 0 likes
    #streaming #the nanny #where
  13. How Much Is Kindle Unlimited? Subscription Cost and Plan Details
    How Much Is Kindle Unlimited? Subscription Cost and Plan Details
    by Anonymous User · Feb 12, 2026 · 0 likes
    #kindle unlimited #subscription #unlimited
  14. Russian skater facing backlash for comment about Amber Glenn
    Russian skater facing backlash for comment about Amber Glenn
    by Anonymous User · Feb 18, 2026 · 0 likes
  15. Google News
    Google News
    by Anonymous User · Feb 18, 2026 · 0 likes

Latest on ShareHub

Browse Topics

#artificial intelligence (31559)#data science (24017)#ai (16795)#generative ai (15034)#crypto (14995)#machine learning (14680)#bitcoin (14234)#featured (13554)#news & insights (13064)#crypto news (11083)

Around the Network