Skip to content

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in /test-scripts/test-go #7829

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in /test-scripts/test-go

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in /test-scripts/test-go #7829

Workflow file for this run

name: PR Test Label Manager
on:
pull_request_target:
branches: [ 'main' ]
types: [ opened ]
jobs:
pr_test_label_manager:
name: PR Test Label Manager
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request_target' &&
contains(fromJson('["opened", "synchronize", "reopened"]'), github.event.action)
steps:
- name: "Check Membership and Label PR"
uses: actions/github-script@v6
id: check-membership
with:
github-token: ${{ secrets.PR_TOKEN }}
script: |
let prNumber = context.payload.pull_request && context.payload.pull_request.number;
try {
let orgResp = await github.rest.orgs.checkMembershipForUser({org: "viamrobotics", username: context.payload.sender.login});
if (orgResp.status === 204) {
await github.rest.issues.addLabels({owner: "viamrobotics", repo: "docs", issue_number: prNumber, labels: ["safe to build"]});
}
} catch (error) {
console.log("here");
await github.rest.issues.createComment({
issue_number: prNumber,
owner: "viamrobotics",
repo: "docs",
body: '👋 Thanks for contributing! A reviewer will look at it on the next working day!'
})
}