26 matches across 1 files for func main path:.github/workflows/require_issue_link.yml
snippet_mode: auto · sorted by relevance
.github/workflows/require_issue_link.yml YAML 26 matches · showing 5 view file →
3# labeled "missing-issue-link", commented on, and closed.
4#
5# Maintainer override: an org member can reopen the PR or remove
6# "missing-issue-link" — both add "bypass-issue-check" and reopen.
7#
· · ·
32 check-issue-link:
33 # Run when the "external" label is added, on edit/reopen if already labeled,
34 # or when "missing-issue-link" is removed (triggers maintainer override check).
35 # Skip entirely when the PR already carries "trusted-contributor" or
36 # "bypass-issue-check".
· · ·
60
61 // ── Helper: ensure a label exists, then add it to the PR ────────
62 async function ensureAndAddLabel(labelName, color) {
63 try {
64 await github.rest.issues.getLabel({ owner, repo, name: labelName });
· · ·
84 // to be an org member, which GITHUB_TOKEN (an app installation
85 // token) never is — so it always returns 403.
86 async function senderIsOrgMember() {
87 const sender = context.payload.sender?.login;
88 if (!sender) {
· · ·
94 });
95 const perm = data.permission;
96 if (['admin', 'maintain', 'write'].includes(perm)) {
97 console.log(`${sender} has ${perm} permission — treating as maintainer`);
98 return { isMember: true, login: sender };
+ 21 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.