Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Refactor commit status for Actions jobs (#23786) #24060

Merged
merged 2 commits into from
Apr 12, 2023

Commits on Apr 11, 2023

  1. Backport go-gitea#23786 to v1.19

    Refactor commit status for Actions jobs (go-gitea#23786)
    
    Before:
    <img width="353" alt="xnip_230329_163852"
    src="https://user-images.githubusercontent.com/9418365/228479807-424452df-10fa-45cf-ae4b-09939c0ed54c.png">
    After:
    <img width="508" alt="xnip_230329_163358"
    src="https://user-images.githubusercontent.com/9418365/228479923-537b54fe-9564-4105-a068-bcc75fa2a7ea.png">
    
    Highlights:
    - Treat `StatusSkipped` as `CommitStatusSuccess` instead of
    `CommitStatusFailure`, so it fixed go-gitea#23599.
    - Use the bot user `gitea-actions` instead of the trigger as the creator
    of commit status.
    - New format `<run_name> / <job_name> / (<event>)` for the context of
    commit status to avoid conflicts.
    - Add descriptions for commit status.
    - Add the missing calls to `CreateCommitStatus`.
    - Refactor `CreateCommitStatus` to make it easier to use.
    wolfogre authored and denyskon committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    43fbda4 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Configuration menu
    Copy the full SHA
    52890b5 View commit details
    Browse the repository at this point in the history