Skip to content

jenkins: test jenkins in a loop #3

jenkins: test jenkins in a loop

jenkins: test jenkins in a loop #3

Workflow file for this run

name: Get Commit Status on PR
on:
pull_request:
types: [opened, synchronize]
jobs:
get-status:
runs-on: ubuntu-latest
steps:
- name: Get Commit Status
uses: actions/github-script@v6
with:
script: |
const response = await github.request('GET /repos/{owner}/{repo}/commits/{ref}/status', {
owner: 'commaai',
repo: 'openpilot',
ref: 'heads/master',
headers: {
'Accept': 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28'
}
});
console.log(response.data.statuses[0].context);
console.log(response.data.statuses[0].state);