Commit Graph

70 Commits

Author SHA1 Message Date
George Joseph
19683b6027 .github: Change concurrency group ids so they're unique.
GitHub strikes again.  Apparently the github.ref context variable only
contains the PR number if the workflow is triggered by "pull_request" so
since we just changed the trigger to "pull_request_target" the variable
no longer contains the PR number and is therefore not unique and can't be
used as a concurrency group id.  We now use
`github.triggering_actor-github.head_ref`.

(cherry picked from commit 32b0b47348)
2025-03-20 18:18:29 +00:00
George Joseph
01f24b0a87 .github: Refactor Releaser to use reusable workflow
(cherry picked from commit f4d881803a)
2025-03-20 18:18:29 +00:00
George Joseph
49bf285613 .github: Change branch of reusable workflows to main.
(cherry picked from commit a5d37e5ecb)
2025-03-20 18:18:29 +00:00
George Joseph
5b8dcba9c4 .github: Refactor to use pull_request_target trigger.
After careful review, we believe we can now use the "pull_request_target"
workflow trigger instead of "pull_request" which required a separate
privliged workflow to add labels and comments to PRs when they are submitted
or updated.  This allows us to greatly streamline our workflows and remove
unneeded ones.

* The OnPRChanged workflow was...
  * Renamed to OnPRCheck
  * Changed to trigger on pull_request_target and the "recheckpr" label.
  * Changed to simply call reusable workflows in asterisk-ci-actions.
  * Changed to use better concurrency groups.
* The OnPRCPCheck and OnPRMergeApproved workflows were also...
  * Changed to simply call reusable workflows in asterisk-ci-actions.
  * Changed to use better concurrency groups.
* The NightlyTest and CreateDocs were also tweaked

(cherry picked from commit 1f56d5fe7e)
2025-03-20 18:18:29 +00:00
George Joseph
af966a98a1 .github: Remove concurrency check in on-labelled workflows.
Apparently you can't use `${{ github.event.number }}` in a concurrency
block in a job that calls a reusable workflow. :(

(cherry picked from commit 00af359ea9)
2025-03-20 18:18:29 +00:00
George Joseph
b709b339ed .github: Move PRChanged,PRChangedPriv,PRCPCheck,PRReCheck,PRMerge logic.
Moved to asterisk-ci-actions reusable workflows.

(cherry picked from commit eedb73968b)
2025-03-20 18:18:29 +00:00
George Joseph
f172231072 .github: OnPRCherryPickTest,OnPRStateChanged,OnPRRecheck: Add job summaries.
...and refactor environment variables.

(cherry picked from commit a5b3709455)
2025-03-20 18:18:29 +00:00
George Joseph
4de58e345d .github: Clean up CreateDocs
(cherry picked from commit 00bf3aaaec)
2025-03-20 18:18:29 +00:00
George Joseph
4cfcca8916 .github: Set exit 0 in CherryPick and Recheck workflow Cleanup steps
(cherry picked from commit 510dd89511)
2025-01-23 18:36:03 +00:00
George Joseph
e47fb67e5a .github: Change the run name for OnPRStateChangedPriv
(cherry picked from commit 10adfa920a)
2025-01-23 18:36:03 +00:00
George Joseph
d16ace5465 .github: Redirect NightlyAdmin to AsteriskNightlyAdmin
(cherry picked from commit 0cdf5a2bb9)
2024-11-14 20:01:00 +00:00
George Joseph
09dc9d274b .github: NightlyAdmin now calls external CloseStaleIssuesAndPRs
(cherry picked from commit 79c478219b)
2024-11-14 20:01:00 +00:00
George Joseph
cefb055e66 .github: Fix realtime param on Weekly and Nightly tests and...
Rename the "Cleanup" job in the cherry-pick and recheck jobs
to "Summary".

(cherry picked from commit fd0cee1a05)
2024-11-14 20:01:00 +00:00
George Joseph
6951f147de .github: Add WeeklyTests and make Nightlies Monday-Saturday
...and add "realtime" option.

(cherry picked from commit be8c251d33)
2024-11-14 20:01:00 +00:00
George Joseph
66213578bb .github: Changes required to use cached builds and shorten names
(cherry picked from commit f51b5fb5bf)
2024-11-14 20:01:00 +00:00
George Joseph
1e925509fe .github: Allow testing an Asterisk PR against a testsuite PR
(cherry picked from commit 1ca9661c6d)
2024-09-12 18:45:46 +00:00
George Joseph
ec88a63a86 .github: Add params to Releaser for FPBX issue creation
(cherry picked from commit 0bd105fdee)
2024-09-12 18:45:46 +00:00
George Joseph
56b0c48afe .github: Pass app_id and app_priv_key to AsteriskMergePR
(cherry picked from commit 502d8a8811)
2024-07-11 13:22:44 +00:00
George Joseph
524e7db2fd .github: Change OnPRMergeApproved to use default token
(cherry picked from commit 2350117539)
2024-07-11 13:22:44 +00:00
George Joseph
2efe4011d5 .github: Use ASTERISKTEAM_PAT for PR merging
(cherry picked from commit 17c3080945)
2024-07-11 13:22:44 +00:00
George Joseph
a9f4bf7abb .github: Replace PR workflows with stubs that call reusables
The PR workflows now are just stubs that call reusable
workflows located in the asterisk-ci-actions repo.

(cherry picked from commit b4eb773d5e)
2024-07-11 13:22:44 +00:00
George Joseph
c972bb964a .github: Refactor NightlyTests to use workflow in asterisk-ci-actions
(cherry picked from commit d991b22dd8)
2024-07-11 13:22:44 +00:00
George Joseph
78a142db81 .github: Add branches to workflow_dispatch for NightlyTests
(cherry picked from commit c6e82783da)
2024-07-11 13:22:44 +00:00
George Joseph
e4af0eaa47 .github: Add PAT to PRSubmitActions/Add Reviewers
(cherry picked from commit 12d2bd23d5)
2024-05-09 13:56:11 +00:00
George Joseph
f02ac33364 .github: Remove timeout-minutes from gatetests
(cherry picked from commit 9f182e9f58)
2024-03-07 14:17:23 +00:00
George Joseph
be5fd6180c .github: Pass only single GATETEST_COMMAND to AsteriskGateComposite
(cherry picked from commit eed8288d0c)
2024-03-07 14:17:23 +00:00
George Joseph
4152f67a0b .github: Add force_cherry_pick option to Releaser
(cherry picked from commit bbafb63bb5)
2024-03-07 14:17:23 +00:00
George Joseph
41ae2d754f .github: Remove start_version from Releaser
(cherry picked from commit 7bd9f2b5a5)
2024-03-07 14:17:23 +00:00
George Joseph
36fd2ac5b6 .github: Update github-script to v7 and fix a rest bug
Need to update the github-script to v7 to squash deprecation
warnings.

Also fixed the API name for github.rest.pulls.requestReviewers.

(cherry picked from commit 0f3f0f3529)
2024-03-07 14:17:22 +00:00
George Joseph
98a44b95df MergeApproved.yml: Remove unneeded concurrency
The concurrency parameter on the MergeAndCherryPick job has
been rmeoved.  It was a hold-over from earlier days.

(cherry picked from commit 0005aa2995)
2024-01-12 18:29:19 +00:00
George Joseph
95656c409d .github: PRSubmitActions: Fix adding reviewers to PR
(cherry picked from commit be1e83a6ac)
2024-01-12 18:29:19 +00:00
George Joseph
13f2d126fd .github: New PR Submit workflows
The workflows that get triggered when PRs are submitted or updated
have been replaced with ones that are more secure and have
a higher level of parallelism.

(cherry picked from commit 289aa1840e)
2024-01-12 18:29:19 +00:00
George Joseph
2cb140f801 .github: New PR Submit workflows
The workflows that get triggered when PRs are submitted or updated
have been replaced with ones that are more secure and have
a higher level of parallelism.

(cherry picked from commit 0c1c6e9ada)
2024-01-12 18:29:19 +00:00
George Joseph
fd487b48a3 .github: Fix job prereqs in PROpenedUpdated
(cherry picked from commit 20398e8e95)
2024-01-12 18:29:18 +00:00
George Joseph
e1ce35c3f5 .github: Block PR tests until approved
(cherry picked from commit e9abf11a26)
2024-01-12 18:29:18 +00:00
George Joseph
f7fd2c8e20 ari-stubs: Fix more local anchor references
Also allow CreateDocs job to be run manually with default branches.

(cherry picked from commit a64718c32c)
2023-09-06 16:56:00 +00:00
George Joseph
1d9ea90058 ari-stubs: Fix more local anchor references
Also allow CreateDocs job to be run manually with default branches.

(cherry picked from commit b7dae87d1d)
2023-09-06 16:56:00 +00:00
George Joseph
abc84c6618 .github: Update workflow-application-token-action to v2
(cherry picked from commit ddbc56505e)
2023-09-06 16:56:00 +00:00
George Joseph
b145430957 .github: Use generic releaser
(cherry picked from commit d9494ca392)
2023-09-06 16:56:00 +00:00
George Joseph
c0898cb265 .github: Fix cherry-pick reminder issues
(cherry picked from commit 12f231c717)
2023-09-06 16:55:59 +00:00
George Joseph
5cf2c9f0e4 .github: Minor tweak to Asterisk Releaser
(cherry picked from commit 0f9de8a3f0)
2023-09-06 16:55:59 +00:00
George Joseph
e33e6c6429 .github: Suppress cherry-pick reminder for some situations
In PROpenedOrUpdated, the cherry-pick reminder will now be
suppressed if there are already valid 'cherry-pick-to' comments
in the PR or the PR contained a 'cherry-pick-to: none' comment.

(cherry picked from commit cd7e513087)
2023-09-06 16:55:59 +00:00
George Joseph
1491da61eb .github: Updates for AsteriskReleaser
(cherry picked from commit 31663fed53)
2023-07-10 11:49:48 +00:00
George Joseph
244e0b69ea .github: Back out triggering PROpenedOrUpdated by label
(cherry picked from commit 4ff17f44a4)
2023-07-10 11:49:48 +00:00
George Joseph
37d2378073 .github: Move publish docs to new file CreateDocs.yml
(cherry picked from commit caf0fd357c)
2023-07-10 11:49:48 +00:00
George Joseph
64ecad8309 .github: Remove result check from PROpenUpdateGateTests
(cherry picked from commit b008fd5919)
2023-07-10 11:49:48 +00:00
George Joseph
f6630916f4 .github: Fix use of 'contains'
(cherry picked from commit 44c0e1b756)
2023-07-10 11:49:48 +00:00
George Joseph
157d478b27 .github: Add recheck label test to additional jobs
(cherry picked from commit 91503078ff)
2023-07-10 11:49:48 +00:00
George Joseph
8a152fb4aa .github: Fix recheck label typos
(cherry picked from commit de40ea0f79)
2023-07-10 11:49:48 +00:00
George Joseph
37dce12781 .github: Fix recheck label manipulation
(cherry picked from commit 07a3784745)
2023-07-10 11:49:48 +00:00