Commit Graph

73 Commits

Author SHA1 Message Date
George Joseph
854fbed8b4 .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 2b09d5bb31)
2025-06-02 13:38:14 +00:00
George Joseph
5b82ff566a .github: Refactor Releaser to use reusable workflow
(cherry picked from commit daa96bf7ba)
2025-06-02 13:38:14 +00:00
George Joseph
9bb74ecbe1 .github: Change branch of reusable workflows to main.
(cherry picked from commit 2efbe0f8e6)
2025-06-02 13:38:14 +00:00
George Joseph
48125ddf89 .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 ee9580ffdb)
2025-06-02 13:38:14 +00:00
George Joseph
042b46a098 .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 78108fae44)
2025-06-02 13:38:14 +00:00
George Joseph
0b2168afaf .github: Move PRChanged,PRChangedPriv,PRCPCheck,PRReCheck,PRMerge logic.
Moved to asterisk-ci-actions reusable workflows.

(cherry picked from commit c1ba1e5e04)
2025-06-02 13:38:14 +00:00
George Joseph
abb6d252a9 .github: OnPRCherryPickTest,OnPRStateChanged,OnPRRecheck: Add job summaries.
...and refactor environment variables.

(cherry picked from commit 60b1a23fcc)
2025-06-02 13:38:14 +00:00
George Joseph
fea5a75b3e .github: Clean up CreateDocs
(cherry picked from commit fe2123952f)
2025-06-02 13:38:14 +00:00
George Joseph
5c581c6bd1 .github: Set exit 0 in CherryPick and Recheck workflow Cleanup steps
(cherry picked from commit eaca3ef78d)
2025-06-02 13:38:13 +00:00
George Joseph
dd7ff17e7f .github: Change the run name for OnPRStateChangedPriv
(cherry picked from commit b5fac0bee4)
2025-06-02 13:38:13 +00:00
George Joseph
d2ae133919 .github: Redirect NightlyAdmin to AsteriskNightlyAdmin
(cherry picked from commit 3963364ae7)
2025-06-02 13:38:13 +00:00
George Joseph
bc09ccdb9f .github: NightlyAdmin now calls external CloseStaleIssuesAndPRs
(cherry picked from commit 777684b7aa)
2025-06-02 13:38:13 +00:00
George Joseph
549fe6062e .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 0b5e9302c1)
2025-06-02 13:38:13 +00:00
George Joseph
d1c56a4754 .github: Add WeeklyTests and make Nightlies Monday-Saturday
...and add "realtime" option.

(cherry picked from commit 078966d48d)
2025-06-02 13:38:13 +00:00
George Joseph
ad6bef924d .github: Changes required to use cached builds and shorten names
(cherry picked from commit 6469f83909)
2025-06-02 13:38:13 +00:00
George Joseph
af8838814f .github: Allow testing an Asterisk PR against a testsuite PR
(cherry picked from commit ac99434281)
2024-08-08 13:26:34 +00:00
George Joseph
abd3058149 .github: Add params to Releaser for FPBX issue creation
(cherry picked from commit 61cc8c3860)
2024-08-08 13:26:34 +00:00
George Joseph
4887f60e96 .github: Pass app_id and app_priv_key to AsteriskMergePR
(cherry picked from commit 8b5dafe39c)
2024-07-18 14:52:51 +00:00
George Joseph
de10a8fae1 .github: Change OnPRMergeApproved to use default token
(cherry picked from commit e28c7bc4b4)
2024-07-18 14:52:51 +00:00
George Joseph
05d82da614 .github: Use ASTERISKTEAM_PAT for PR merging
(cherry picked from commit 51edc5062d)
2024-07-18 14:52:51 +00:00
George Joseph
16ac05eb4d .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 e5a81346b0)
2024-07-18 14:52:51 +00:00
George Joseph
0bafe17648 .github: Refactor NightlyTests to use workflow in asterisk-ci-actions
(cherry picked from commit bafd37ed3e)
2024-07-18 14:52:51 +00:00
George Joseph
277a06d450 .github: Add PAT to PRSubmitActions/Add Reviewers
(cherry picked from commit 8ebd2bedd5)
2024-07-18 14:52:51 +00:00
George Joseph
cc5a7e1c19 .github: Add branches to workflow_dispatch for NightlyTests
(cherry picked from commit e65073d4df)
2024-07-18 14:52:51 +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
Joshua C. Colp
b7cc7e804b Update config.yml
(cherry picked from commit ef7b0f4c3b)
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